nspr-vl.spec 8.2 KB

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