equal
deleted
inserted
replaced
1 # |
1 # |
2 # spec file for package SFEgeoip |
2 # spec file for package SFEgeoip |
3 # |
3 # |
4 # |
4 # |
5 %include Solaris.inc |
5 %include Solaris.inc |
|
6 %include osdistro.inc |
6 |
7 |
7 Name: SFEgeoip |
8 Name: SFEgeoip |
8 IPS_Package_Name: library/geoip |
9 IPS_Package_Name: library/geoip |
9 Summary: The GeoIP library and cli tools |
10 Summary: The GeoIP library and cli tools |
10 Version: 1.4.8 |
11 Version: 1.4.8 |
36 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
37 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
37 if test "x$CPUS" = "x" -o $CPUS = 0; then |
38 if test "x$CPUS" = "x" -o $CPUS = 0; then |
38 CPUS=1 |
39 CPUS=1 |
39 fi |
40 fi |
40 |
41 |
|
42 %if %{SXCE} |
41 libtoolize --copy --force |
43 libtoolize --copy --force |
42 aclocal |
44 aclocal |
43 automake -a -f |
45 automake -a -f |
44 autoconf -f |
46 autoconf -f |
|
47 %endif |
45 |
48 |
46 ./configure --prefix=%{_prefix} \ |
49 ./configure --prefix=%{_prefix} \ |
47 --bindir=%{_bindir} \ |
50 --bindir=%{_bindir} \ |
48 --sysconfdir=%{_sysconfdir} \ |
51 --sysconfdir=%{_sysconfdir} \ |
49 --libdir=%{_libdir} \ |
52 --libdir=%{_libdir} \ |
50 --includedir=%{_includedir} \ |
53 --includedir=%{_includedir} \ |
51 --mandir=%{_mandir} \ |
54 --mandir=%{_mandir} \ |
52 --infodir=%{_infodir} \ |
55 --infodir=%{_infodir} \ |
53 --disable-static |
56 --disable-static |
|
57 |
|
58 %if %{SXCE} |
|
59 sed -i -e 's?LIBTOOL =.*?LIBTOOL = /usr/bin/libtool?' `find . -type f -name Makefile` |
|
60 %endif |
54 |
61 |
55 make -j$CPUS |
62 make -j$CPUS |
56 |
63 |
57 %install |
64 %install |
58 rm -rf $RPM_BUILD_ROOT |
65 rm -rf $RPM_BUILD_ROOT |
79 %defattr (-, root, bin) |
86 %defattr (-, root, bin) |
80 %dir %attr (0755, root, bin) %{_includedir}/* |
87 %dir %attr (0755, root, bin) %{_includedir}/* |
81 |
88 |
82 |
89 |
83 %changelog |
90 %changelog |
|
91 * Thu Apr 11 2013 - Thomas Wagner |
|
92 - make use libtoolize/* conditional (S10/SXCE) |
84 * Sun Dec 11 2011 - Milan Jurik |
93 * Sun Dec 11 2011 - Milan Jurik |
85 - bump to 1.4.8 |
94 - bump to 1.4.8 |
86 * Sat Jul 23 2011 - Guido Berhoerster <[email protected]> |
95 * Sat Jul 23 2011 - Guido Berhoerster <[email protected]> |
87 - added License and SUNW_Copyright tags |
96 - added License and SUNW_Copyright tags |
88 * Sat May 30 2009 - Andras Barna ([email protected]) |
97 * Sat May 30 2009 - Andras Barna ([email protected]) |