pcre-vl.spec 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. Name: pcre
  2. Version: 8.38
  3. Release: 1%{?_dist_release}
  4. Summary: Perl-compatible regular expression library
  5. Summary(ja): Perl 互換の正規表現ライブラリ
  6. Group: System Environment/Libraries
  7. License: BSD
  8. URL: http://www.pcre.org/
  9. Source0: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
  10. # Upstream thinks RPATH is good idea.
  11. Patch0: pcre-8.21-multilib.patch
  12. # Refused by upstream, bug #675477
  13. Patch1: pcre-8.32-refused_spelling_terminated.patch
  14. # to fix CVE-2016-3191
  15. Patch1000: CVE-2016-3191.patch
  16. # to fix CVE-2016-1283
  17. Patch1001: CVE-2016-1283.patch
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: zlib-devel
  20. BuildRequires: bzip2-devel
  21. BuildRequires: libedit-devel
  22. # New libtool to get rid of rpath
  23. BuildRequires: autoconf, automake, libtool
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. Packager: inagaki
  27. %description
  28. Perl-compatible regular expression library.
  29. PCRE has its own native API, but a set of "wrapper" functions that are based on
  30. the POSIX API are also supplied in the library libpcreposix. Note that this
  31. just provides a POSIX calling interface to PCRE: the regular expressions
  32. themselves still follow Perl syntax and semantics. The header file
  33. for the POSIX-style functions is called pcreposix.h.
  34. %package devel
  35. Summary: Development files for %{name}
  36. Summary(ja): %{name} の開発用ファイル
  37. Group: Development/Libraries
  38. Requires: %{name} = %{version}-%{release}
  39. %description devel
  40. Development files (Headers, libraries for static linking, etc) for %{name}.
  41. %prep
  42. %setup -q
  43. # Get rid of rpath
  44. %patch0 -p1 -b .multilib
  45. %patch1 -p1 -b .terminated_typos
  46. %patch1000 -p0 -b .CVE-2016-3191
  47. %patch1001 -p0 -b .CVE-2016-1283
  48. # Because of rpath patch
  49. libtoolize --copy --force && autoreconf -vif
  50. # One contributor's name is non-UTF-8
  51. for F in ChangeLog; do
  52. iconv -f latin1 -t utf8 "$F" >"${F}.utf8"
  53. touch --reference "$F" "${F}.utf8"
  54. mv "${F}.utf8" "$F"
  55. done
  56. %build
  57. %configure \
  58. --enable-jit \
  59. --disable-static \
  60. --enable-utf8 \
  61. --enable-unicode-properties \
  62. --enable-pcregrep-libz \
  63. --enable-pcregrep-libbz2 \
  64. --enable-pcretest-libedit \
  65. --enable-pcre8 \
  66. --enable-pcre16 \
  67. --enable-pcre32
  68. make %{?_smp_mflags}
  69. %install
  70. rm -rf $RPM_BUILD_ROOT
  71. make install DESTDIR=$RPM_BUILD_ROOT
  72. rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
  73. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  74. %check
  75. %ifarch s390 s390x ppc
  76. # larger stack is needed on s390, ppc
  77. ulimit -s 10240
  78. %endif
  79. make %{?_smp_mflags} check VERBOSE=yes
  80. %clean
  81. rm -rf $RPM_BUILD_ROOT
  82. %post -p /sbin/ldconfig
  83. %postun -p /sbin/ldconfig
  84. %files
  85. %defattr(-,root,root)
  86. %doc AUTHORS COPYING ChangeLog LICENCE NEWS README
  87. %{_bindir}/pcregrep
  88. %{_libdir}/*.so.*
  89. %{_mandir}/man1/pcregrep.*
  90. %files devel
  91. %defattr(-,root,root)
  92. %doc doc/html/*
  93. %{_bindir}/pcre-config
  94. %{_bindir}/pcretest
  95. %{_includedir}/*
  96. %{_libdir}/*.so
  97. %{_libdir}/pkgconfig/*.pc
  98. %{_mandir}/man1/pcre-config.*
  99. %{_mandir}/man1/pcretest.*
  100. %{_mandir}/man3/*
  101. %changelog
  102. * Wed Mar 23 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.38-1
  103. - new upstream release.
  104. - removed Patch2,Patch3 (no longer needed).
  105. - added Patch1000 to fix CVE-2016-1283.
  106. * Sun Apr 5 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 8.36-1
  107. - new upstream release
  108. - added patches including security fix from Fedora (CVE-2014-8964)
  109. * Thu Nov 20 2014 Petr Pisar <ppisar@redhat.com> - 8.36-3
  110. - Fix CVE-2014-8964 (unused memory usage on zero-repeat assertion condition)
  111. (bug #1165626)
  112. * Fri Nov 07 2014 Petr Pisar <ppisar@redhat.com> - 8.36-2
  113. - Reset non-matched groups within capturing group up to forced match
  114. (bug #1161587)
  115. * Mon May 09 2011 Petr Pisar <ppisar@redhat.com> - 8.12-3
  116. - Fix typos in manual pages (bugs #675476, #675477)
  117. * Thu Sep 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 8.35-1
  118. - new upstream release
  119. - add --enable-pcre32 and --enable-pcretest-libedit
  120. * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 8.31-1
  121. - new upstream release
  122. - add --enable-pcre16 --enable-pcre8 --enable-jit
  123. - API change
  124. - change includedir to /usr/include
  125. * Sat Sep 10 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.13-1
  126. - new upstream release
  127. * Tue Mar 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.12-1
  128. - new upstream release
  129. * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 8.10-2
  130. - rebuilt with rpm-4.8.1 for pkg-config
  131. * Thu Aug 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.10-1
  132. - new upstream release
  133. * Mon May 10 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 8.02-1
  134. - new upstream release with security fix
  135. * Sat Feb 6 2010 Ryoiochi INAGAKI <ryo1@bc.wakwak.com> 8.01-1
  136. - new upstream release
  137. * Sat Jan 16 2010 Ryoiochi INAGAKI <ryo1@bc.wakwak.com> 8.00-1
  138. - new upstream release
  139. * Tue Jul 07 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 7.9-2
  140. - add --enable-unicode-properties to configure option
  141. * Wed Jun 10 2009 Ryoiochi INAGAKI <ryo1@bc.wakwak.com> 7.9-1
  142. - new upstream release
  143. - added BR: zlib-devel, bzip2-devel
  144. - removed static libraries from devel package
  145. - added Packager tag
  146. * Sat Jan 24 2009 Ryoiochi INAGAKI <ryo1@bc.wakwak.com> 7.8-1vl5
  147. - new upstream release
  148. - spec in UTF-8
  149. * Sun Jul 6 2008 Ryoiochi INAGAKI <ryo1@bc.wakwak.com> 7.7-1vl5
  150. - new upstream release
  151. * Tue May 13 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 7.6-1vl5
  152. - use macro for Release
  153. * Fri May 09 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 7.6-1vl5
  154. - apply new virsioning policy.
  155. - remove *.la
  156. * Thu Feb 7 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 7.6-0vl1
  157. - new upstream release
  158. * Wed Nov 7 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 7.4-0vl1
  159. - new upstream release
  160. * Sun Aug 19 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 7.2-0vl1
  161. - new upstream release
  162. * Fri May 11 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 6.6-0vl2
  163. - rebuild with new environment/toolchain
  164. * Wed Feb 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.6-0vl1
  165. - new upstream release
  166. * Mon Sep 5 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.3-0vl2
  167. - added --enable-utf8 option
  168. * Sun Sep 4 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.3-0vl1
  169. - new upstream release
  170. * Thu Jan 27 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.0-0vl1
  171. - new upstream release
  172. - added Japanese summary
  173. * Sun Apr 18 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.5-0vl1
  174. - new upstream release
  175. * Mon Oct 13 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 4.4-0vl1
  176. - new upstream release
  177. * Mon May 5 2003 Tomoya TAKA <taka@vinelinux.org> 4.1-0vl3
  178. - skip 'make check' on alpha
  179. * Fri Mar 28 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 4.1-0vl2
  180. - change install section
  181. - change files section
  182. * Fri Mar 28 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 4.1-0vl1
  183. - update to 4.1
  184. - add %{_bindir}/pcretest
  185. - add %doc AUTHORS COPYING ChangeLog INSTALL LICENCE NEWS README
  186. * Sun Dec 15 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.9-0vl2
  187. - rebuild with new toolchains
  188. * Sat Mar 16 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 3.9-0vl1
  189. - Update to 3.9
  190. * Wed Dec 26 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 3.7-0vl1
  191. - Update to 3.7
  192. * Sun Oct 14 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 3.5-0vl1
  193. - Update to 3.5
  194. * Wed Oct 10 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 3.4-2vl1
  195. - Build for VineSeed
  196. * Thu May 17 2001 Bernhard Rosenkraenzer <bero@redhat.com> 3.4-2
  197. - Move libpcre to /lib, grep uses it these days (#41104)
  198. * Wed Apr 18 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  199. - Move this to a separate package, used to be in kdesupport, but it's
  200. generally useful...