author | fujiwara |
Thu, 03 Apr 2008 05:45:25 +0000 | |
changeset 12012 | 36d40615f3e3 |
parent 11965 | acd528faf5ad |
child 12031 | 8ed3afd23a6f |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWlibpopt |
|
3 |
# |
|
4 |
# includes module(s): popt |
|
5 |
# |
|
6 |
# Copyright (c) 2004 Sun Microsystems, Inc. |
|
7 |
# This file and all modifications and additions to the pristine |
|
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
10 |
# Owner: laca |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
||
14 |
%define _prefix /usr |
|
15 |
||
16 |
Name: SUNWlibpopt |
|
17 |
Summary: Command line parsing library |
|
18 |
Version: 1.7 |
|
11341
c9c8a9df758b
Change FTP location from ftp.rpm.org to ftp.mirrorservices.org.
pale
parents:
9565
diff
changeset
|
19 |
Source: ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/popt-%{version}.tar.gz |
9397 | 20 |
Source1: %{name}-manpages-0.1.tar.gz |
21 |
Source2: l10n-configure.sh |
|
11345 | 22 |
# date:2007-12-21 owner:fujiwara type:bug bugster:6186542 bugzilla:178413 state:upstream |
23 |
Patch1: popt-01-g11n-i18n-stdio.diff |
|
9397 | 24 |
SUNW_BaseDir: %{_prefix} |
11965 | 25 |
SUNW_Copyright: %{name}.copyright |
9397 | 26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
27 |
||
28 |
%include default-depend.inc |
|
29 |
||
30 |
%package devel |
|
31 |
Summary: %{summary} - development files |
|
32 |
SUNW_BaseDir: %{_prefix} |
|
33 |
%include default-depend.inc |
|
34 |
||
35 |
%prep |
|
36 |
%setup -c -n %name-%version |
|
37 |
gzcat %SOURCE1 | tar xf - |
|
11345 | 38 |
cd popt-%version |
39 |
%patch1 -p1 |
|
40 |
cd .. |
|
9397 | 41 |
|
42 |
%ifarch amd64 sparcv9 |
|
43 |
cp -rp popt-%version popt-%version-64 |
|
44 |
%endif |
|
45 |
||
46 |
cd popt-%version |
|
12012 | 47 |
bash -x %SOURCE2 --enable-sun-linguas |
9397 | 48 |
|
49 |
%build |
|
50 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
51 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
52 |
CPUS=1 |
|
53 |
fi |
|
54 |
||
55 |
CONFLAGS="--prefix=%{_prefix} --mandir=%{_mandir} --disable-nls" |
|
56 |
export LDFLAGS="%_ldflags" |
|
57 |
||
58 |
%ifarch amd64 sparcv9 |
|
59 |
cd popt-%version-64 |
|
60 |
CFLAGS32="$RPM_OPT_FLAGS" |
|
61 |
RPM_OPT_FLAGS="%optflags64" |
|
62 |
export RPM_OPT_FLAGS |
|
63 |
CFLAGS="$RPM_OPT_FLAGS" |
|
64 |
export CFLAGS |
|
65 |
||
11345 | 66 |
libtoolize -f |
67 |
aclocal $ACLOCAL_FLAGS |
|
68 |
autoconf |
|
69 |
automake -a -c -f |
|
9397 | 70 |
./configure $CONFLAGS \ |
71 |
--libdir=%{_libdir}/%{_arch64} \ |
|
72 |
--libexecdir=%{_libexecdir}/%{_arch64} \ |
|
73 |
--sysconfdir=%{_sysconfdir}/%{_arch64} |
|
74 |
||
75 |
make -j $CPUS |
|
76 |
cd .. |
|
77 |
%endif |
|
78 |
||
79 |
cd popt-%version |
|
11345 | 80 |
libtoolize -f |
81 |
aclocal $ACLOCAL_FLAGS |
|
82 |
autoconf |
|
83 |
automake -a -c -f |
|
9397 | 84 |
CFLAGS="$CFLAGS32" \ |
85 |
./configure $CONFLAGS |
|
86 |
make -j $CPUS |
|
87 |
||
88 |
||
89 |
%install |
|
90 |
%ifarch amd64 sparcv9 |
|
91 |
cd popt-%version-64 |
|
92 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
93 |
cd .. |
|
94 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a |
|
95 |
%endif |
|
96 |
||
97 |
cd popt-%version |
|
98 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
99 |
||
100 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
101 |
cd ../sun-manpages |
|
102 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
103 |
||
104 |
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a |
|
105 |
||
106 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
107 |
||
108 |
%clean |
|
109 |
rm -rf $RPM_BUILD_ROOT |
|
110 |
||
111 |
%files |
|
112 |
%defattr (-, root, bin) |
|
113 |
%dir %attr (0755, root, bin) %{_libdir} |
|
114 |
%{_libdir}/lib*.so* |
|
115 |
%ifarch amd64 sparcv9 |
|
116 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
117 |
%{_libdir}/%{_arch64}/lib*.so* |
|
118 |
%endif |
|
119 |
%dir %attr(0755, root, sys) %{_datadir} |
|
120 |
%dir %attr(0755, root, bin) %{_mandir} |
|
121 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
|
122 |
%{_mandir}/man3/* |
|
123 |
||
124 |
%files devel |
|
125 |
%defattr (-, root, bin) |
|
126 |
%dir %attr (0755, root, bin) %{_includedir} |
|
127 |
%{_includedir}/* |
|
128 |
||
129 |
||
130 |
%changelog |
|
11345 | 131 |
* Fri Dec 21 2007 - [email protected] |
132 |
- Add popt-01-g11n-i18n-stdio.diff. Fixes '--help' option on none UTF-8. |
|
133 |
CR 6186542 |
|
11341
c9c8a9df758b
Change FTP location from ftp.rpm.org to ftp.mirrorservices.org.
pale
parents:
9565
diff
changeset
|
134 |
* Wed Dec 19 2007 - [email protected] |
c9c8a9df758b
Change FTP location from ftp.rpm.org to ftp.mirrorservices.org.
pale
parents:
9565
diff
changeset
|
135 |
- Change FTP location to ftp.mirrorservices.org. |
c9c8a9df758b
Change FTP location from ftp.rpm.org to ftp.mirrorservices.org.
pale
parents:
9565
diff
changeset
|
136 |
ftp.rpm.org does not longer seem available/to exist |
9565 | 137 |
* Wed Mar 15 2007 - [email protected] |
138 |
- Removed CC64 and CC32. They are not needed anymore |
|
9397 | 139 |
* Sun Feb 11 2007 - [email protected] |
140 |
- delete PATH changes in the 64-bit build: not needed anymore and break |
|
141 |
the build on SXDE |
|
142 |
* Mon Sep 04 2006 - [email protected] |
|
143 |
- New Manpage tarball |
|
144 |
* Sun Jun 11 2006 - [email protected] |
|
145 |
- change group from other to bin/sys |
|
146 |
* Wed May 10 2006 - [email protected] |
|
147 |
- merge -share pkg(s) into the base pkg(s) |
|
148 |
* Fri Sep 02 2005 - [email protected] |
|
149 |
- remove unpackaged files |
|
150 |
* Fri Oct 29 2004 - [email protected] |
|
151 |
- use $CC64 as the 64-bit C compiler, if defined |
|
152 |
* Sat Oct 02 2004 - [email protected] |
|
153 |
- added %pkgbuild_postprocess |
|
154 |
* Sat Oct 2 2004 - [email protected] |
|
155 |
- Create 64bit libraries for Solaris |
|
156 |
* Mon Aug 30 2004 - [email protected] |
|
157 |
- Bug 5091588 : include files should be in a separate devel package |
|
158 |
renamed SUNWlibpopt-share to SUNWlibpopt-devel-share |
|
159 |
removed SUNWlibpopt depend on SUNWlibpopt-share |
|
160 |
* Wed Aug 18 2004 - [email protected] |
|
161 |
- Change manpage perms for Solaris integration. |
|
162 |
* Wed May 19 2004 - [email protected] |
|
163 |
- added man page. |
|
164 |
* Fri Feb 13 2004 - [email protected] |
|
165 |
- added 64-bit version |
|
166 |
* Mon Jan 28 2004 - [email protected] |
|
167 |
- initial version added to CVS |