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