nspr-vl.spec 7.9 KB

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