nspr-vl.spec 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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.11
  6. Release: 1%{?_dist_release}
  7. License: MPLv1.1/GPLv2+/LGPLv2+
  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. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Provides: mozilla-nspr
  14. Obsoletes: mozilla-nspr
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: daisuke
  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. ./nspr/configure \
  53. --prefix=%{_prefix} \
  54. --libdir=%{_libdir} \
  55. --includedir=%{_includedir}/nspr4 \
  56. %ifarch x86_64 ppc64 ia64 s390x
  57. --enable-64bit \
  58. %endif
  59. --enable-optimize="$RPM_OPT_FLAGS" \
  60. --disable-debug
  61. make
  62. %install
  63. %{__rm} -Rf $RPM_BUILD_ROOT
  64. DESTDIR=$RPM_BUILD_ROOT \
  65. make install
  66. NSPR_LIBS=`./config/nspr-config --libs`
  67. NSPR_CFLAGS=`./config/nspr-config --cflags`
  68. NSPR_VERSION=`./config/nspr-config --version`
  69. %{__mkdir_p} $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
  70. # Get rid of the things we don't want installed (per upstream)
  71. %{__rm} -rf \
  72. $RPM_BUILD_ROOT/%{_bindir}/compile-et.pl \
  73. $RPM_BUILD_ROOT/%{_bindir}/prerr.properties \
  74. $RPM_BUILD_ROOT/%{_libdir}/libnspr4.a \
  75. $RPM_BUILD_ROOT/%{_libdir}/libplc4.a \
  76. $RPM_BUILD_ROOT/%{_libdir}/libplds4.a \
  77. $RPM_BUILD_ROOT/%{_datadir}/aclocal/nspr.m4 \
  78. $RPM_BUILD_ROOT/%{_includedir}/nspr4/md
  79. %clean
  80. %{__rm} -rf $RPM_BUILD_ROOT
  81. %post
  82. /sbin/ldconfig >/dev/null 2>/dev/null
  83. %postun
  84. /sbin/ldconfig >/dev/null 2>/dev/null
  85. %files
  86. %defattr(-,root,root)
  87. %{_libdir}/libnspr4.so
  88. %{_libdir}/libplc4.so
  89. %{_libdir}/libplds4.so
  90. %files devel
  91. %defattr(-, root, root)
  92. %{_includedir}/nspr4
  93. %{_libdir}/pkgconfig/nspr.pc
  94. %{_bindir}/nspr-config
  95. %if %{build_compat32}
  96. %files -n compat32-%{name}
  97. %defattr(-,root,root)
  98. %{_libdir}/*.so
  99. %endif
  100. %changelog
  101. * Tue May 10 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11-1
  102. - update to 4.11
  103. * Thu Jun 12 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 4.10.6-1
  104. - update to 4.10.6
  105. * Thu Oct 17 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 4.10.1-1
  106. - update to 4.10.1
  107. * Thu Apr 04 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 4.9.6-1
  108. - update to 4.9.6
  109. * Wed Jan 09 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 4.9.4-1
  110. - update to 4.9.4
  111. * Mon Sep 03 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 4.9.2
  112. - new upstream release
  113. * Sun Mar 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9-1
  114. - new upstram release
  115. - update Patch1 (nspr-config-pc.patch)
  116. * Wed Sep 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8.9-1
  117. - new upstram release
  118. * Wed Jun 01 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8.8-1
  119. - new upstream release
  120. * Mon Mar 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8.7-1
  121. - new upstream release
  122. * Thu Sep 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.8.6-2
  123. - rebuild with rpm-4.8.1 for pkg-config file
  124. * Tue Sep 14 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8.6-1
  125. - new upstream release
  126. * Wed Apr 7 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.8.4-1
  127. - new upstream release
  128. * Sat Jan 09 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8.2-1
  129. - new upstream release
  130. * Sat Jul 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 4.8-2
  131. - added compat32 subpackages
  132. * Sun Jun 21 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.8-1
  133. - new upstream release
  134. * Wed Apr 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.7.4-1
  135. - new upstream release
  136. * Wed Jul 02 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 4.7.1-1
  137. - new upstream release
  138. * Fri Oct 19 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 4.6.7-0vl1
  139. - new upstream release
  140. * Fri May 18 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 4.6.6-0vl1
  141. - initial build for Vine Linux
  142. * Wed Mar 07 2007 Kai Engert <kengert@redhat.com> - 4.6.6-1
  143. - Update to 4.6.6
  144. - Adjust IPv6 patch to latest upstream version
  145. * Sat Feb 24 2007 Kai Engert <kengert@redhat.com> - 4.6.5-2
  146. - Update to latest ipv6 upstream patch
  147. - Add upstream patch to fix a thread cleanup issue
  148. - Now requires pkgconfig
  149. * Mon Jan 22 2007 Wan-Teh Chang <wtchang@redhat.com> - 4.6.5-1
  150. - Update to 4.6.5
  151. * Tue Jan 16 2007 Kai Engert <kengert@redhat.com> - 4.6.4-2
  152. - Include upstream patch to fix ipv6 support (rhbz 222554)
  153. * Tue Nov 21 2006 Kai Engert <kengert@redhat.com> - 4.6.4-1
  154. - Update to 4.6.4
  155. * Thu Sep 14 2006 Kai Engert <kengert@redhat.com> - 4.6.3-1
  156. - Update to 4.6.3
  157. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.6.2-1.1
  158. - rebuild
  159. * Fri May 26 2006 Kai Engert <kengert@redhat.com> - 4.6.2-1
  160. - Update to 4.6.2
  161. - Tweak nspr-config to be identical on all platforms.
  162. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.6.1-2.2
  163. - bump again for double-long bug on ppc(64)
  164. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.6.1-2.1
  165. - rebuilt for new gcc4.1 snapshot and glibc changes
  166. * Thu Jan 5 2006 Kai Engert <kengert@redhat.com> 4.6.1-2
  167. - Do not use -ansi when compiling, because of a compilation
  168. problem with latest glibc and anonymous unions.
  169. See also bugzilla.mozilla.org # 322427.
  170. * Wed Jan 4 2006 Kai Engert <kengert@redhat.com>
  171. - Add an upstream patch to fix gcc visibility issues.
  172. * Tue Jan 3 2006 Christopher Aillon <caillon@redhat.com>
  173. - Stop shipping static libraries; NSS and dependencies no longer
  174. require static libraries to build.
  175. * Thu Dec 15 2005 Christopher Aillon <caillon@redhat.com> 4.6.1-1
  176. - Update to 4.6.1
  177. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  178. - rebuilt
  179. * Fri Jul 15 2005 Christopher Aillon <caillon@redhat.com> 4.6-4
  180. - Use the NSPR version numbering scheme reported by NSPR,
  181. which unfortunately is not exactly the same as the real
  182. version (4.6 != 4.6.0 according to RPM and pkgconfig).
  183. * Fri Jul 15 2005 Christopher Aillon <caillon@redhat.com> 4.6-3
  184. - Correct the CFLAGS reported by pkgconfig
  185. * Tue Jul 12 2005 Christopher Aillon <caillon@redhat.com> 4.6-2
  186. - Temporarily include the static libraries allowing nss and
  187. its dependencies to build.
  188. * Tue Jul 12 2005 Christopher Aillon <caillon@redhat.com> 4.6-1
  189. - Update to NSPR 4.6
  190. * Wed Apr 20 2005 Christopher Aillon <caillon@redhat.com> 4.4.1-2
  191. - NSPR doesn't have make install, but it has make real_install. Use it.
  192. * Thu Apr 14 2005 Christopher Aillon <caillon@redhat.com> 4.4.1-1
  193. - Let's make an RPM.