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