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