author | yippi |
Thu, 31 May 2012 20:16:52 +0000 | |
changeset 22481 | 1ff6784d9b6f |
parent 17864 | 337913e88a9d |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package gettext |
|
3 |
# |
|
12105 | 4 |
# Copyright 2008 Sun Microsystems, Inc. |
9397 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
16434 | 8 |
%define owner laca |
11393 | 9 |
# bugdb: https://savannah.gnu.org/bugs/?group=gettext |
9397 | 10 |
# |
16426 | 11 |
|
12 |
%define OSR 5588&7675:0.16.1 |
|
13 |
||
9397 | 14 |
Name: gettext-tools |
15 |
License: GPL |
|
16 |
Group: system/library |
|
12105 | 17 |
# Don't upgrade to 0.17 and later for now as it's licensed GPLv3 |
18 |
# and we don't have a policy around GPLv3 code yet (as of 2008-04-14) |
|
19 |
Version: 0.16.1 |
|
11311 | 20 |
Release: 1 |
9397 | 21 |
Distribution: Sun Java Desktop System |
17864 | 22 |
Vendor: gnu.org |
9397 | 23 |
Summary: GNU gettext tools |
10143
0dab6ed32e3d
* base-specs/gettext.spec: Use http url since ftp need authorization.
halton
parents:
9531
diff
changeset
|
24 |
Source: http://ftp.gnu.org/pub/gnu/gettext/gettext-%{version}.tar.gz |
9397 | 25 |
URL: http://www.gnu.org/ |
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
27 |
||
28 |
%define gettextdir %{_libdir}/intltool/gettext-tools |
|
29 |
||
30 |
%description |
|
31 |
GNU gettext tools for use in intltool in the JDS build environment |
|
32 |
||
33 |
%prep |
|
34 |
%setup -q -n gettext-%{version} |
|
35 |
||
36 |
%build |
|
37 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
38 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
39 |
CPUS=1 |
|
40 |
fi |
|
11311 | 41 |
CFLAGS="$RPM_OPT_FLAGS" \ |
9397 | 42 |
./configure --disable-nls \ |
43 |
--prefix=%{_prefix} \ |
|
44 |
--bindir=%{gettextdir} \ |
|
45 |
--libdir=%{gettextdir}/lib \ |
|
46 |
--datadir=%{gettextdir}/share \ |
|
9531 | 47 |
--includedir=%{gettextdir}/include \ |
48 |
--without-emacs |
|
9397 | 49 |
old_IFS="$IFS" |
50 |
IFS=: |
|
51 |
for d in $PATH; do |
|
52 |
test -x $d/libtool || continue |
|
53 |
cp $d/libtool gettext-runtime/libasprintf |
|
54 |
break |
|
55 |
done |
|
56 |
IFS="$old_IFS" |
|
57 |
perl -pi -e 's,^LTCC=".*/(cc|gcc)"$,LTCC="'"$CC"'",' \ |
|
58 |
gettext-runtime/libasprintf/libtool |
|
59 |
perl -pi -e 's,^CC=".*/(cc|gcc)"$,CC="'"$CC"'",' \ |
|
60 |
gettext-runtime/libasprintf/libtool |
|
61 |
perl -pi -e 's,^LTCC=".*/(CC|g\+\+)"$,LTCC="'"$CXX"'",' \ |
|
62 |
gettext-runtime/libasprintf/libtool |
|
63 |
perl -pi -e 's,^CC=".*/(CC|g\+\+)"$,CC="'"$CXX"'",' \ |
|
64 |
gettext-runtime/libasprintf/libtool |
|
65 |
||
66 |
make -j$CPUS |
|
67 |
||
68 |
%install |
|
69 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
70 |
rm -rf $RPM_BUILD_ROOT%{gettextdir}/share |
|
71 |
rm -rf $RPM_BUILD_ROOT%{gettextdir}/include |
|
72 |
rm -f $RPM_BUILD_ROOT%{gettextdir}/gettext |
|
73 |
rm -f $RPM_BUILD_ROOT%{gettextdir}/msgfmt |
|
74 |
rm -f $RPM_BUILD_ROOT%{gettextdir}/lib/*a |
|
75 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/info |
|
76 |
rm -rf $RPM_BUILD_ROOT%{gettextdir}/share/emacs |
|
77 |
||
78 |
rm -f $RPM_BUILD_ROOT%{gettextdir}/autopoint |
|
79 |
rm -f $RPM_BUILD_ROOT%{gettextdir}/envsubst |
|
80 |
rm -f $RPM_BUILD_ROOT%{gettextdir}/gettext* |
|
81 |
rm -f $RPM_BUILD_ROOT%{gettextdir}/msg[acefgiu]* |
|
82 |
rm -f $RPM_BUILD_ROOT%{gettextdir}/ngettext |
|
83 |
||
84 |
rm -f $RPM_BUILD_ROOT%{gettextdir}/lib/libas* |
|
85 |
rm -f $RPM_BUILD_ROOT%{gettextdir}/lib/preloa* |
|
86 |
rm -rf $RPM_BUILD_ROOT%{gettextdir}/lib/gettext |
|
87 |
rm -f $RPM_BUILD_ROOT%{gettextdir}/lib/libgettextpo* |
|
88 |
||
10634 | 89 |
# Change /usr/bin/perl to /usr/perl5/bin/perl. Preempting bugs like 5100958. |
90 |
export PERL=/usr/perl5/bin/perl |
|
91 |
cd $RPM_BUILD_ROOT%{_datadir}/doc/gettext/examples/hello-c++-kde/admin |
|
92 |
for f in debianrules conf.change.pl cvs-clean.pl am_edit config.pl |
|
93 |
do |
|
94 |
sed "s|/usr/bin/perl|$PERL|" $f >$f.$$ |
|
95 |
mv $f.$$ $f |
|
96 |
done |
|
97 |
||
9397 | 98 |
%clean |
99 |
rm -rf $RPM_BUILD_ROOT |
|
100 |
||
101 |
%files |
|
102 |
# this is just a skeleton spec file for use in SUNWgnome-common-devel.spec |
|
103 |
||
104 |
%changelog |
|
12105 | 105 |
* Mon Apr 14 2008 - [email protected] |
106 |
- unbump to 0.16.1 |
|
11311 | 107 |
* Mon Dec 10 2007 - [email protected] |
108 |
- Bump to 0.17. Add patch gettext-01-fixlink.diff to fix build issue. |
|
10634 | 109 |
* Wed Oct 10 2007 - [email protected] |
110 |
- Add code to %install to change the #!/usr/bin/perl to #!/usr/perl5/bin/perl |
|
111 |
to preempt bugs like 5100958. |
|
9531 | 112 |
* Mon Mar 12 2007 - [email protected] |
113 |
- add --without-emacs option |
|
9397 | 114 |
* Tue Feb 27 2007 <[email protected]> |
115 |
- Bump to 0.16.1. Remove upstream patch. |
|
116 |
* Mon May 01 2006 <[email protected]> |
|
117 |
- integrate into the JDS build (copied from the JDS CBE) |
|
118 |
* Fri Sep 02 2004 <[email protected]> |
|
119 |
- remove unpackaged files |
|
120 |
* Sat Oct 02 2004 <[email protected]> |
|
121 |
- add %_datadir/gettext to %files |
|
122 |
* Sun Sep 05 2004 <[email protected]> |
|
123 |
- update to 0.14.1 |
|
124 |
- build and package the tools |
|
125 |
- enable parallel build |
|
126 |
* Fri Mar 05 2004 <[email protected]> |
|
127 |
- fix %files |
|
128 |
- change the pkg category |