[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
| 3 | Summary: Netscape Portable Runtime |
---|
| 4 | Summary(ja): Netscape ポータブルランタイム |
---|
| 5 | Name: nspr |
---|
[753] | 6 | Version: 4.8.4 |
---|
[521] | 7 | Release: 1%{?_dist_release} |
---|
| 8 | License: MPLv1.1/GPLv2+/LGPLv2+ |
---|
| 9 | URL: http://www.mozilla.org/projects/nspr/ |
---|
| 10 | Group: System Environment/Libraries |
---|
| 11 | Source0: %{name}-%{version}.tar.gz |
---|
| 12 | Source1: nspr.pc.in |
---|
| 13 | Source2: nspr-config-vars.in |
---|
| 14 | |
---|
| 15 | Patch1: nspr-config-pc.patch |
---|
| 16 | |
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | Provides: mozilla-nspr |
---|
| 19 | Obsoletes: mozilla-nspr |
---|
| 20 | |
---|
| 21 | Vendor: Project Vine |
---|
| 22 | Distribution: Vine Linux |
---|
| 23 | Packager: daisuke |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | NSPR provides platform independence for non-GUI operating system |
---|
| 27 | facilities. These facilities include threads, thread synchronization, |
---|
| 28 | normal file and network I/O, interval timing and calendar time, basic |
---|
| 29 | memory management (malloc and free) and shared library linking. |
---|
| 30 | |
---|
| 31 | %package devel |
---|
| 32 | Summary: Development libraries for the Netscape Portable Runtime |
---|
| 33 | Group: Development/Libraries |
---|
| 34 | Requires: nspr = %{version}-%{release} |
---|
| 35 | Requires: pkgconfig |
---|
| 36 | Provides: mozilla-nspr-devel |
---|
| 37 | Obsoletes: mozilla-nspr-devel |
---|
| 38 | |
---|
| 39 | %description devel |
---|
| 40 | Header files for doing development with the Netscape Portable Runtime. |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | ## to build compat32 for x86_64 architecture support |
---|
| 44 | %package -n compat32-%{name} |
---|
| 45 | Summary: Netscape Portable Runtime |
---|
| 46 | Group: System Environment/Libraries |
---|
| 47 | |
---|
| 48 | %description -n compat32-%{name} |
---|
| 49 | NSPR provides platform independence for non-GUI operating system |
---|
| 50 | facilities. These facilities include threads, thread synchronization, |
---|
| 51 | normal file and network I/O, interval timing and calendar time, basic |
---|
| 52 | memory management (malloc and free) and shared library linking. |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | %prep |
---|
| 57 | |
---|
| 58 | %setup -q |
---|
| 59 | |
---|
| 60 | # Original nspr-config is not suitable for our distribution, |
---|
| 61 | # because on different platforms it contains different dynamic content. |
---|
| 62 | # Therefore we produce an adjusted copy of nspr-config that will be |
---|
| 63 | # identical on all platforms. |
---|
| 64 | # However, we need to use original nspr-config to produce some variables |
---|
| 65 | # that go into nspr.pc for pkg-config. |
---|
| 66 | |
---|
| 67 | cp ./mozilla/nsprpub/config/nspr-config.in ./mozilla/nsprpub/config/nspr-config-pc.in |
---|
| 68 | %patch1 -p0 |
---|
| 69 | |
---|
| 70 | cp %{SOURCE2} ./mozilla/nsprpub/config/ |
---|
| 71 | |
---|
| 72 | %build |
---|
| 73 | |
---|
| 74 | ./mozilla/nsprpub/configure \ |
---|
| 75 | --prefix=%{_prefix} \ |
---|
| 76 | --libdir=%{_libdir} \ |
---|
| 77 | --includedir=%{_includedir}/nspr4 \ |
---|
| 78 | %ifarch x86_64 ppc64 ia64 s390x |
---|
| 79 | --enable-64bit \ |
---|
| 80 | %endif |
---|
| 81 | --enable-optimize="$RPM_OPT_FLAGS" \ |
---|
| 82 | --disable-debug |
---|
| 83 | |
---|
| 84 | make |
---|
| 85 | |
---|
| 86 | %install |
---|
| 87 | |
---|
| 88 | %{__rm} -Rf $RPM_BUILD_ROOT |
---|
| 89 | |
---|
| 90 | DESTDIR=$RPM_BUILD_ROOT \ |
---|
| 91 | make install |
---|
| 92 | |
---|
| 93 | NSPR_LIBS=`./config/nspr-config --libs` |
---|
| 94 | NSPR_CFLAGS=`./config/nspr-config --cflags` |
---|
| 95 | NSPR_VERSION=`./config/nspr-config --version` |
---|
| 96 | %{__mkdir_p} $RPM_BUILD_ROOT/%{_libdir}/pkgconfig |
---|
| 97 | |
---|
| 98 | cat ./config/nspr-config-vars > \ |
---|
| 99 | $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/nspr.pc |
---|
| 100 | |
---|
| 101 | cat %{SOURCE1} | sed -e "s,%%libdir%%,%{_libdir},g" \ |
---|
| 102 | -e "s,%%prefix%%,%{_prefix},g" \ |
---|
| 103 | -e "s,%%exec_prefix%%,%{_prefix},g" \ |
---|
| 104 | -e "s,%%includedir%%,%{_includedir}/nspr4,g" \ |
---|
| 105 | -e "s,%%NSPR_VERSION%%,$NSPR_VERSION,g" \ |
---|
| 106 | -e "s,%%FULL_NSPR_LIBS%%,$NSPR_LIBS,g" \ |
---|
| 107 | -e "s,%%FULL_NSPR_CFLAGS%%,$NSPR_CFLAGS,g" >> \ |
---|
| 108 | $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/nspr.pc |
---|
| 109 | |
---|
| 110 | %{__mkdir_p} $RPM_BUILD_ROOT/%{_bindir} |
---|
| 111 | %{__cp} ./config/nspr-config-pc $RPM_BUILD_ROOT/%{_bindir}/nspr-config |
---|
| 112 | |
---|
| 113 | # Get rid of the things we don't want installed (per upstream) |
---|
| 114 | %{__rm} -rf \ |
---|
| 115 | $RPM_BUILD_ROOT/%{_bindir}/compile-et.pl \ |
---|
| 116 | $RPM_BUILD_ROOT/%{_bindir}/prerr.properties \ |
---|
| 117 | $RPM_BUILD_ROOT/%{_libdir}/libnspr4.a \ |
---|
| 118 | $RPM_BUILD_ROOT/%{_libdir}/libplc4.a \ |
---|
| 119 | $RPM_BUILD_ROOT/%{_libdir}/libplds4.a \ |
---|
| 120 | $RPM_BUILD_ROOT/%{_datadir}/aclocal/nspr.m4 \ |
---|
| 121 | $RPM_BUILD_ROOT/%{_includedir}/nspr4/md |
---|
| 122 | |
---|
| 123 | %clean |
---|
| 124 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 125 | |
---|
| 126 | %post |
---|
| 127 | /sbin/ldconfig >/dev/null 2>/dev/null |
---|
| 128 | |
---|
| 129 | %postun |
---|
| 130 | /sbin/ldconfig >/dev/null 2>/dev/null |
---|
| 131 | |
---|
| 132 | %files |
---|
| 133 | %defattr(-,root,root) |
---|
| 134 | %{_libdir}/libnspr4.so |
---|
| 135 | %{_libdir}/libplc4.so |
---|
| 136 | %{_libdir}/libplds4.so |
---|
| 137 | |
---|
| 138 | %files devel |
---|
| 139 | %defattr(-, root, root) |
---|
| 140 | %{_includedir}/nspr4 |
---|
| 141 | %{_libdir}/pkgconfig/nspr.pc |
---|
| 142 | %{_bindir}/nspr-config |
---|
| 143 | |
---|
| 144 | %if %{build_compat32} |
---|
| 145 | %files -n compat32-%{name} |
---|
| 146 | %defattr(-,root,root) |
---|
| 147 | %{_libdir}/*.so |
---|
| 148 | %endif |
---|
| 149 | |
---|
| 150 | |
---|
| 151 | %changelog |
---|
[753] | 152 | * Wed Apr 7 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.8.4-1 |
---|
| 153 | - new upstream release |
---|
| 154 | |
---|
[521] | 155 | * Sat Jan 09 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8.2-1 |
---|
| 156 | - new upstream release |
---|
| 157 | |
---|
| 158 | * Sat Jul 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 4.8-2 |
---|
| 159 | - added compat32 subpackages |
---|
| 160 | |
---|
| 161 | * Sun Jun 21 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8-1 |
---|
| 162 | - new upstream release |
---|
| 163 | |
---|
| 164 | * Wed Apr 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.7.4-1 |
---|
| 165 | - new upstream release |
---|
| 166 | |
---|
| 167 | * Wed Jul 02 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 4.7.1-1 |
---|
| 168 | - new upstream release |
---|
| 169 | |
---|
| 170 | * Fri Oct 19 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 4.6.7-0vl1 |
---|
| 171 | - new upstream release |
---|
| 172 | |
---|
| 173 | * Fri May 18 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 4.6.6-0vl1 |
---|
| 174 | - initial build for Vine Linux |
---|
| 175 | |
---|
| 176 | * Wed Mar 07 2007 Kai Engert <kengert@redhat.com> - 4.6.6-1 |
---|
| 177 | - Update to 4.6.6 |
---|
| 178 | - Adjust IPv6 patch to latest upstream version |
---|
| 179 | |
---|
| 180 | * Sat Feb 24 2007 Kai Engert <kengert@redhat.com> - 4.6.5-2 |
---|
| 181 | - Update to latest ipv6 upstream patch |
---|
| 182 | - Add upstream patch to fix a thread cleanup issue |
---|
| 183 | - Now requires pkgconfig |
---|
| 184 | |
---|
| 185 | * Mon Jan 22 2007 Wan-Teh Chang <wtchang@redhat.com> - 4.6.5-1 |
---|
| 186 | - Update to 4.6.5 |
---|
| 187 | |
---|
| 188 | * Tue Jan 16 2007 Kai Engert <kengert@redhat.com> - 4.6.4-2 |
---|
| 189 | - Include upstream patch to fix ipv6 support (rhbz 222554) |
---|
| 190 | |
---|
| 191 | * Tue Nov 21 2006 Kai Engert <kengert@redhat.com> - 4.6.4-1 |
---|
| 192 | - Update to 4.6.4 |
---|
| 193 | |
---|
| 194 | * Thu Sep 14 2006 Kai Engert <kengert@redhat.com> - 4.6.3-1 |
---|
| 195 | - Update to 4.6.3 |
---|
| 196 | |
---|
| 197 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.6.2-1.1 |
---|
| 198 | - rebuild |
---|
| 199 | |
---|
| 200 | * Fri May 26 2006 Kai Engert <kengert@redhat.com> - 4.6.2-1 |
---|
| 201 | - Update to 4.6.2 |
---|
| 202 | - Tweak nspr-config to be identical on all platforms. |
---|
| 203 | |
---|
| 204 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.6.1-2.2 |
---|
| 205 | - bump again for double-long bug on ppc(64) |
---|
| 206 | |
---|
| 207 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.6.1-2.1 |
---|
| 208 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
| 209 | |
---|
| 210 | * Thu Jan 5 2006 Kai Engert <kengert@redhat.com> 4.6.1-2 |
---|
| 211 | - Do not use -ansi when compiling, because of a compilation |
---|
| 212 | problem with latest glibc and anonymous unions. |
---|
| 213 | See also bugzilla.mozilla.org # 322427. |
---|
| 214 | |
---|
| 215 | * Wed Jan 4 2006 Kai Engert <kengert@redhat.com> |
---|
| 216 | - Add an upstream patch to fix gcc visibility issues. |
---|
| 217 | |
---|
| 218 | * Tue Jan 3 2006 Christopher Aillon <caillon@redhat.com> |
---|
| 219 | - Stop shipping static libraries; NSS and dependencies no longer |
---|
| 220 | require static libraries to build. |
---|
| 221 | |
---|
| 222 | * Thu Dec 15 2005 Christopher Aillon <caillon@redhat.com> 4.6.1-1 |
---|
| 223 | - Update to 4.6.1 |
---|
| 224 | |
---|
| 225 | * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> |
---|
| 226 | - rebuilt |
---|
| 227 | |
---|
| 228 | * Fri Jul 15 2005 Christopher Aillon <caillon@redhat.com> 4.6-4 |
---|
| 229 | - Use the NSPR version numbering scheme reported by NSPR, |
---|
| 230 | which unfortunately is not exactly the same as the real |
---|
| 231 | version (4.6 != 4.6.0 according to RPM and pkgconfig). |
---|
| 232 | |
---|
| 233 | * Fri Jul 15 2005 Christopher Aillon <caillon@redhat.com> 4.6-3 |
---|
| 234 | - Correct the CFLAGS reported by pkgconfig |
---|
| 235 | |
---|
| 236 | * Tue Jul 12 2005 Christopher Aillon <caillon@redhat.com> 4.6-2 |
---|
| 237 | - Temporarily include the static libraries allowing nss and |
---|
| 238 | its dependencies to build. |
---|
| 239 | |
---|
| 240 | * Tue Jul 12 2005 Christopher Aillon <caillon@redhat.com> 4.6-1 |
---|
| 241 | - Update to NSPR 4.6 |
---|
| 242 | |
---|
| 243 | * Wed Apr 20 2005 Christopher Aillon <caillon@redhat.com> 4.4.1-2 |
---|
| 244 | - NSPR doesn't have make install, but it has make real_install. Use it. |
---|
| 245 | |
---|
| 246 | * Thu Apr 14 2005 Christopher Aillon <caillon@redhat.com> 4.4.1-1 |
---|
| 247 | - Let's make an RPM. |
---|