1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Summary: Netscape Portable Runtime |
---|
4 | Summary(ja): Netscape ポータブルランタイム |
---|
5 | Name: nspr |
---|
6 | Version: 4.29 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | Group: system |
---|
9 | Vendor: Project Vine |
---|
10 | Distribution: Vine Linux |
---|
11 | Packager: daisuke |
---|
12 | |
---|
13 | License: MPLv2.0 |
---|
14 | URL: http://www.mozilla.org/projects/nspr/ |
---|
15 | Source0: https://archive.mozilla.org/pub/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz |
---|
16 | |
---|
17 | Patch1: nspr-config-pc.patch |
---|
18 | |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
20 | Provides: mozilla-nspr |
---|
21 | Obsoletes: mozilla-nspr |
---|
22 | |
---|
23 | %description |
---|
24 | NSPR provides platform independence for non-GUI operating system |
---|
25 | facilities. These facilities include threads, thread synchronization, |
---|
26 | normal file and network I/O, interval timing and calendar time, basic |
---|
27 | memory management (malloc and free) and shared library linking. |
---|
28 | |
---|
29 | |
---|
30 | %package devel |
---|
31 | Summary: Development libraries for the Netscape Portable Runtime |
---|
32 | Group: programming |
---|
33 | Requires: nspr = %{version}-%{release} |
---|
34 | Requires: pkgconfig |
---|
35 | Provides: mozilla-nspr-devel |
---|
36 | Obsoletes: mozilla-nspr-devel |
---|
37 | |
---|
38 | %description devel |
---|
39 | Header files for doing development with the Netscape Portable Runtime. |
---|
40 | |
---|
41 | |
---|
42 | ## to build compat32 for x86_64 architecture support |
---|
43 | %package -n compat32-%{name} |
---|
44 | Summary: Netscape Portable Runtime |
---|
45 | Group: system |
---|
46 | |
---|
47 | %description -n compat32-%{name} |
---|
48 | NSPR provides platform independence for non-GUI operating system |
---|
49 | facilities. These facilities include threads, thread synchronization, |
---|
50 | normal file and network I/O, interval timing and calendar time, basic |
---|
51 | memory management (malloc and free) and shared library linking. |
---|
52 | |
---|
53 | |
---|
54 | %debug_package |
---|
55 | |
---|
56 | |
---|
57 | %prep |
---|
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 ./nspr/config/nspr-config.in ./nspr/config/nspr-config-pc.in |
---|
68 | %patch1 -p0 |
---|
69 | |
---|
70 | |
---|
71 | %build |
---|
72 | |
---|
73 | LDFLAGS+=-Wl,-z,relro |
---|
74 | export LDFLAGS |
---|
75 | |
---|
76 | %define _configure ./nspr/configure |
---|
77 | %configure \ |
---|
78 | --prefix=%{_prefix} \ |
---|
79 | --libdir=%{_libdir} \ |
---|
80 | --includedir=%{_includedir}/nspr4 \ |
---|
81 | %ifarch x86_64 ppc64 ia64 s390x |
---|
82 | --enable-64bit \ |
---|
83 | %endif |
---|
84 | --enable-optimize="$RPM_OPT_FLAGS" \ |
---|
85 | --disable-debug |
---|
86 | |
---|
87 | make |
---|
88 | |
---|
89 | %install |
---|
90 | |
---|
91 | %{__rm} -Rf $RPM_BUILD_ROOT |
---|
92 | |
---|
93 | DESTDIR=$RPM_BUILD_ROOT \ |
---|
94 | make install |
---|
95 | |
---|
96 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 |
---|
97 | |
---|
98 | NSPR_LIBS=`./config/nspr-config --libs` |
---|
99 | NSPR_CFLAGS=`./config/nspr-config --cflags` |
---|
100 | NSPR_VERSION=`./config/nspr-config --version` |
---|
101 | %{__mkdir_p} $RPM_BUILD_ROOT/%{_libdir}/pkgconfig |
---|
102 | |
---|
103 | # Get rid of the things we don't want installed (per upstream) |
---|
104 | %{__rm} -rf \ |
---|
105 | $RPM_BUILD_ROOT/%{_bindir}/compile-et.pl \ |
---|
106 | $RPM_BUILD_ROOT/%{_bindir}/prerr.properties \ |
---|
107 | $RPM_BUILD_ROOT/%{_libdir}/libnspr4.a \ |
---|
108 | $RPM_BUILD_ROOT/%{_libdir}/libplc4.a \ |
---|
109 | $RPM_BUILD_ROOT/%{_libdir}/libplds4.a \ |
---|
110 | $RPM_BUILD_ROOT/%{_datadir}/aclocal/nspr.m4 \ |
---|
111 | $RPM_BUILD_ROOT/%{_includedir}/nspr4/md |
---|
112 | |
---|
113 | %clean |
---|
114 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
115 | |
---|
116 | %post |
---|
117 | /sbin/ldconfig >/dev/null 2>/dev/null |
---|
118 | |
---|
119 | %postun |
---|
120 | /sbin/ldconfig >/dev/null 2>/dev/null |
---|
121 | |
---|
122 | %files |
---|
123 | %defattr(-,root,root) |
---|
124 | %{_libdir}/libnspr4.so |
---|
125 | %{_libdir}/libplc4.so |
---|
126 | %{_libdir}/libplds4.so |
---|
127 | |
---|
128 | %files devel |
---|
129 | %defattr(-, root, root) |
---|
130 | %{_includedir}/nspr4 |
---|
131 | %{_libdir}/pkgconfig/nspr.pc |
---|
132 | %{_bindir}/nspr-config |
---|
133 | |
---|
134 | %if %{build_compat32} |
---|
135 | %files -n compat32-%{name} |
---|
136 | %defattr(-,root,root) |
---|
137 | %{_libdir}/*.so |
---|
138 | %endif |
---|
139 | |
---|
140 | |
---|
141 | %changelog |
---|
142 | * Fri Oct 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.29-1 |
---|
143 | - update to 4.29. |
---|
144 | |
---|
145 | * Sun Apr 26 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.25-1 |
---|
146 | - update to 4.25. |
---|
147 | |
---|
148 | * Fri Sep 27 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.22-1 |
---|
149 | - update to 4.22. |
---|
150 | |
---|
151 | * Thu Nov 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.20-1 |
---|
152 | - update to 4.20. |
---|
153 | - dropped Patch2. |
---|
154 | |
---|
155 | * Sat Oct 07 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.13.1-1 |
---|
156 | - update to 4.13.1. |
---|
157 | |
---|
158 | * Tue May 10 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11-1 |
---|
159 | - update to 4.11 |
---|
160 | |
---|
161 | * Thu Jun 12 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 4.10.6-1 |
---|
162 | - update to 4.10.6 |
---|
163 | |
---|
164 | * Thu Oct 17 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 4.10.1-1 |
---|
165 | - update to 4.10.1 |
---|
166 | |
---|
167 | * Thu Apr 04 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 4.9.6-1 |
---|
168 | - update to 4.9.6 |
---|
169 | |
---|
170 | * Wed Jan 09 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 4.9.4-1 |
---|
171 | - update to 4.9.4 |
---|
172 | |
---|
173 | * Mon Sep 03 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 4.9.2 |
---|
174 | - new upstream release |
---|
175 | |
---|
176 | * Sun Mar 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9-1 |
---|
177 | - new upstram release |
---|
178 | - update Patch1 (nspr-config-pc.patch) |
---|
179 | |
---|
180 | * Wed Sep 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8.9-1 |
---|
181 | - new upstram release |
---|
182 | |
---|
183 | * Wed Jun 01 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8.8-1 |
---|
184 | - new upstream release |
---|
185 | |
---|
186 | * Mon Mar 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8.7-1 |
---|
187 | - new upstream release |
---|
188 | |
---|
189 | * Thu Sep 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.8.6-2 |
---|
190 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
191 | |
---|
192 | * Tue Sep 14 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8.6-1 |
---|
193 | - new upstream release |
---|
194 | |
---|
195 | * Wed Apr 7 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.8.4-1 |
---|
196 | - new upstream release |
---|
197 | |
---|
198 | * Sat Jan 09 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8.2-1 |
---|
199 | - new upstream release |
---|
200 | |
---|
201 | * Sat Jul 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 4.8-2 |
---|
202 | - added compat32 subpackages |
---|
203 | |
---|
204 | * Sun Jun 21 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8-1 |
---|
205 | - new upstream release |
---|
206 | |
---|
207 | * Wed Apr 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.7.4-1 |
---|
208 | - new upstream release |
---|
209 | |
---|
210 | * Wed Jul 02 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 4.7.1-1 |
---|
211 | - new upstream release |
---|
212 | |
---|
213 | * Fri Oct 19 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 4.6.7-0vl1 |
---|
214 | - new upstream release |
---|
215 | |
---|
216 | * Fri May 18 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 4.6.6-0vl1 |
---|
217 | - initial build for Vine Linux |
---|
218 | |
---|
219 | * Wed Mar 07 2007 Kai Engert <kengert@redhat.com> - 4.6.6-1 |
---|
220 | - Update to 4.6.6 |
---|
221 | - Adjust IPv6 patch to latest upstream version |
---|
222 | |
---|
223 | * Sat Feb 24 2007 Kai Engert <kengert@redhat.com> - 4.6.5-2 |
---|
224 | - Update to latest ipv6 upstream patch |
---|
225 | - Add upstream patch to fix a thread cleanup issue |
---|
226 | - Now requires pkgconfig |
---|
227 | |
---|
228 | * Mon Jan 22 2007 Wan-Teh Chang <wtchang@redhat.com> - 4.6.5-1 |
---|
229 | - Update to 4.6.5 |
---|
230 | |
---|
231 | * Tue Jan 16 2007 Kai Engert <kengert@redhat.com> - 4.6.4-2 |
---|
232 | - Include upstream patch to fix ipv6 support (rhbz 222554) |
---|
233 | |
---|
234 | * Tue Nov 21 2006 Kai Engert <kengert@redhat.com> - 4.6.4-1 |
---|
235 | - Update to 4.6.4 |
---|
236 | |
---|
237 | * Thu Sep 14 2006 Kai Engert <kengert@redhat.com> - 4.6.3-1 |
---|
238 | - Update to 4.6.3 |
---|
239 | |
---|
240 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.6.2-1.1 |
---|
241 | - rebuild |
---|
242 | |
---|
243 | * Fri May 26 2006 Kai Engert <kengert@redhat.com> - 4.6.2-1 |
---|
244 | - Update to 4.6.2 |
---|
245 | - Tweak nspr-config to be identical on all platforms. |
---|
246 | |
---|
247 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.6.1-2.2 |
---|
248 | - bump again for double-long bug on ppc(64) |
---|
249 | |
---|
250 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.6.1-2.1 |
---|
251 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
252 | |
---|
253 | * Thu Jan 5 2006 Kai Engert <kengert@redhat.com> 4.6.1-2 |
---|
254 | - Do not use -ansi when compiling, because of a compilation |
---|
255 | problem with latest glibc and anonymous unions. |
---|
256 | See also bugzilla.mozilla.org # 322427. |
---|
257 | |
---|
258 | * Wed Jan 4 2006 Kai Engert <kengert@redhat.com> |
---|
259 | - Add an upstream patch to fix gcc visibility issues. |
---|
260 | |
---|
261 | * Tue Jan 3 2006 Christopher Aillon <caillon@redhat.com> |
---|
262 | - Stop shipping static libraries; NSS and dependencies no longer |
---|
263 | require static libraries to build. |
---|
264 | |
---|
265 | * Thu Dec 15 2005 Christopher Aillon <caillon@redhat.com> 4.6.1-1 |
---|
266 | - Update to 4.6.1 |
---|
267 | |
---|
268 | * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> |
---|
269 | - rebuilt |
---|
270 | |
---|
271 | * Fri Jul 15 2005 Christopher Aillon <caillon@redhat.com> 4.6-4 |
---|
272 | - Use the NSPR version numbering scheme reported by NSPR, |
---|
273 | which unfortunately is not exactly the same as the real |
---|
274 | version (4.6 != 4.6.0 according to RPM and pkgconfig). |
---|
275 | |
---|
276 | * Fri Jul 15 2005 Christopher Aillon <caillon@redhat.com> 4.6-3 |
---|
277 | - Correct the CFLAGS reported by pkgconfig |
---|
278 | |
---|
279 | * Tue Jul 12 2005 Christopher Aillon <caillon@redhat.com> 4.6-2 |
---|
280 | - Temporarily include the static libraries allowing nss and |
---|
281 | its dependencies to build. |
---|
282 | |
---|
283 | * Tue Jul 12 2005 Christopher Aillon <caillon@redhat.com> 4.6-1 |
---|
284 | - Update to NSPR 4.6 |
---|
285 | |
---|
286 | * Wed Apr 20 2005 Christopher Aillon <caillon@redhat.com> 4.4.1-2 |
---|
287 | - NSPR doesn't have make install, but it has make real_install. Use it. |
---|
288 | |
---|
289 | * Thu Apr 14 2005 Christopher Aillon <caillon@redhat.com> 4.4.1-1 |
---|
290 | - Let's make an RPM. |
---|