Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 7e5d95335c6a0e146cd409a9b6b6690b > files > 8

pcre-8.45-3.mga9.src.rpm

%define pcre_major 1
%define pcrecpp_major 0
%define pcreposix_major 1
%define pcreposix_compat_major 0
%define libname_orig lib%{name}
%define libname16_orig lib%{name}16
%define libname32_orig lib%{name}32
%define libname	%mklibname pcre %{pcre_major}
%define libname16 %mklibname pcre 16 %{pcrecpp_major}
%define libname32 %mklibname pcre 32 %{pcrecpp_major}
%define libnamecpp %mklibname pcrecpp %{pcrecpp_major}
%define libnameposix %mklibname pcreposix %{pcreposix_major}
%define libnameposix_compat %mklibname pcreposix %{pcreposix_compat_major}
%define develname %mklibname -d pcre
%define staticname %mklibname -s -d pcre
%define develcpp %mklibname -d pcrecpp
%define develposix %mklibname -d pcreposix
%define olddevelname %mklibname %{name} 0 -d

%define build_pcreposix_compat 1

Summary:	Perl-compatible regular expression library
Name:		pcre
Version:	8.45
Release:	%mkrel 3
License:	BSD-Style
Group:		File tools
URL:		http://www.pcre.org/
Source0:	ftp://ftp.pcre.org/pub/pcre/%{name}-%{version}.tar.bz2
Source1:	ftp://ftp.pcre.org/pub/pcre/%{name}-%{version}.tar.bz2.sig
Patch0:		pcre-0.6.5-fix-detect-into-kdelibs.patch
Patch1:		pcre-8.33-linkage-fix.patch
# from debian
Patch4:		pcre-pcreposix-glibc-conflict.patch
Patch5:		bug2173.patch
Patch6:		pcre-8.45-bsc1199232-unicode-property-matching.patch
BuildRequires:	automake
Requires:	%{libname} = %{version}-%{release}

%description
PCRE has its own native API, but a set of "wrapper" functions that are based on
the POSIX API are also supplied in the library libpcreposix. Note that this
just provides a POSIX calling interface to PCRE: the regular expressions
themselves still follow Perl syntax and semantics. 
This package contains a grep variant based on the PCRE library.

%package -n	%{libname}
Group:		System/Libraries
Summary:	Perl-compatible regular expression library
Requires(pre):	filesystem >= 2.1.9-18
Provides:	%{libname_orig} = %{version}-%{release}

%description -n	%{libname}
This package contains the shared library libpcre.

%package -n	%{libname16}
Group:		System/Libraries
Summary:	Perl-compatible regular expression library
Requires(pre):	filesystem >= 2.1.9-18
Provides:	%{libname16_orig} = %{version}-%{release}
Obsoletes:	%{_lib}pcre16_1 < %{version}-%{release}

%description -n	%{libname16}
This package contains the shared library libpcre.

%package -n	%{libname32}
Group:		System/Libraries
Summary:	Perl-compatible regular expression library
Requires(pre):	filesystem >= 2.1.9-18
Provides:	%{libname32_orig} = %{version}-%{release}
Obsoletes:	%{_lib}pcre32_1 < %{version}-%{release}

%description -n	%{libname32}
This package contains the shared library libpcre.

%package -n	%{libnamecpp}
Group:		System/Libraries
Summary:	Perl-compatible regular expression library
Conflicts:	%{_lib}pcre0 < 8.21-3

%description -n	%{libnamecpp}
This package contains the shared library libpcrecpp.


%package -n	%{libnameposix}
Group:		System/Libraries
Summary:	Perl-compatible regular expression library
Conflicts:	%{_lib}pcre0 < 8.21-3

%description -n	%{libnameposix}
This package contains the shared library libpcreposix.


%package -n	%{libnameposix_compat}
Group:		System/Libraries
Summary:	Perl-compatible regular expression library
Conflicts:	%{_lib}pcre0 < 8.21-3

%description -n	%{libnameposix_compat}
This package contains the shared library libpcreposix compat.


%package -n	%{develname}
Group:		Development/C
Summary:	Headers for pcre development
Requires:	%{libname} = %{version}-%{release}
Requires:	%{libname16} = %{version}-%{release}
Requires:	%{libname32} = %{version}-%{release}
Provides:	%{libname_orig}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{olddevelname} < 8.21-3

%description -n	%{develname}
Install this package if you want do compile applications using the pcre
library.

%package -n	%{develcpp}
Group:		Development/C++
Summary:	Headers for pcrecpp development
Provides:	pcrecpp-devel = %{version}-%{release}
Requires:	%{libnamecpp} = %{version}-%{release}
Requires:	%{develname} = %{version}-%{release}
Conflicts:	pcre-devel < 8.32-4

%description -n	%{develcpp}
Install this package if you want do compile applications using the pcrecpp
library.

%package -n	%{develposix}
Group:		Development/C
Summary:	Headers for pcreposix development
Provides:	pcreposix-devel = %{version}-%{release}
Requires:	%{libnameposix} = %{version}-%{release}
Requires:	%{develname} = %{version}-%{release}
Conflicts:	pcre-devel < 8.32-4

%description -n	%{develposix}
Install this package if you want do compile applications using the pcre
library.

The header file for the POSIX-style functions is called pcreposix.h. The
official POSIX name is regex.h, but I didn't want to risk possible problems
with existing files of that name by distributing it that way. To use it with an
existing program that uses the POSIX API, it will have to be renamed or pointed
at by a link.

%package -n	%{staticname}
Group:		Development/C
Summary:	Library file for linking statically to PCRE
Provides:	pcre-static-devel = %{version}-%{release}
Requires:	%{develname} = %{version}-%{release}

%description -n	%{staticname}
Library file for linking statically against PCRE.

%prep
%setup -q
%patch0 -p1 -b .detect-into-kdelibs
%patch1 -p1 -b .linkage-fix

%if %{build_pcreposix_compat}
  # pcre-pcreposix-glibc-conflict patch below breaks compatibility,
  # create a libpcreposix.so.0 without the patch
  cp -a . ../pcre-with-pcreposix_compat && mv ../pcre-with-pcreposix_compat .
%endif
%patch4 -p1 -b .symbol-conflict
%patch5 -p1
%patch6 -p1

%build
%if %{build_pcreposix_compat}
dirs="pcre-with-pcreposix_compat ."
%else
dirs="."
%endif
for i in $dirs; do
  cd $i
  mkdir -p m4
  autoreconf -fi
  %configure \
	--enable-static \
	--enable-utf \
	--enable-unicode-properties \
	--enable-pcre8 \
	--enable-pcre16 \
	--enable-pcre32 \
	--enable-jit
  %make_build
  cd -
done

%check
export LC_ALL=C
%__make check

%install
%if %{build_pcreposix_compat}
%make_install -C pcre-with-pcreposix_compat
%endif
%make_install

%multiarch_binaries %{buildroot}%{_bindir}/pcre-config

# Remove unwanted files
rm -f %{buildroot}%{_docdir}/pcre/{AUTHORS,ChangeLog,COPYING,LICENCE,NEWS}
rm -f %{buildroot}%{_docdir}/pcre/{pcre-config.txt,pcre.txt,pcregrep.txt}
rm -f %{buildroot}%{_docdir}/pcre/{pcretest.txt,README}
rm -rf %{buildroot}%{_docdir}/pcre/html
rm -f %{buildroot}%{_libdir}/*.la

%files
%doc AUTHORS COPYING LICENCE NEWS README
%{_mandir}/man1/pcregrep.1*
%{_mandir}/man1/pcretest.1*
%{_bindir}/pcregrep  
%{_bindir}/pcretest

%files -n %{libname}
%{_libdir}/libpcre.so.%{pcre_major}{,.*}

%files -n %{libname16}
%{_libdir}/libpcre16.so.%{pcrecpp_major}{,.*}

%files -n %{libname32}
%{_libdir}/libpcre32.so.%{pcrecpp_major}{,.*}

%files -n %{libnamecpp}
%{_libdir}/libpcrecpp.so.%{pcrecpp_major}{,.*}

%if %{build_pcreposix_compat}
%files -n %{libnameposix_compat}
%{_libdir}/libpcreposix.so.%{pcreposix_compat_major}{,.*}
%endif

%files -n %{libnameposix}
%{_libdir}/libpcreposix.so.%{pcreposix_major}{,.*}

%files -n %{develname}
%doc doc/html
%doc ChangeLog
%{_libdir}/libpcre.so
%{_libdir}/libpcre16.so
%{_libdir}/libpcre32.so
%{_includedir}/pcre.h
%{_includedir}/pcre_*.h
%{_libdir}/pkgconfig/libpcre.pc
%{_libdir}/pkgconfig/libpcre16.pc
%{_libdir}/pkgconfig/libpcre32.pc
%{_bindir}/pcre-config
%multiarch %{multiarch_bindir}/pcre-config
%{_mandir}/man1/pcre-config.1*
%{_mandir}/man3/*.3*
%exclude %{_libdir}/libpcreposix.so
%exclude %{_mandir}/man3/pcreposix.3*

%files -n %{develcpp}
%{_includedir}/pcrecpp*.h
%{_libdir}/libpcrecpp.so
%{_libdir}/pkgconfig/libpcrecpp.pc
%{_mandir}/man3/pcrecpp.3*

%files -n %{develposix}
%{_includedir}/pcreposix.h
%{_libdir}/libpcreposix.so
%{_libdir}/pkgconfig/libpcreposix.pc
%{_mandir}/man3/pcreposix.3*

%files -n %{staticname}
%{_libdir}/*.a


%changelog
* Thu Oct 20 2022 ns80 <ns80> 8.45-3.mga9
+ Revision: 1897952
- add a patch from openSUSE for CVE-2022-1586 (mga#30426)

* Tue Mar 15 2022 umeabot <umeabot> 8.45-2.mga9
+ Revision: 1793627
- Mageia 9 Mass Rebuild

* Sun Aug 08 2021 luigiwalser <luigiwalser> 8.45-1.mga9
+ Revision: 1740263
- 8.45

* Fri Feb 28 2020 daviddavid <daviddavid> 8.44-1.mga8
+ Revision: 1551592
- new version: 8.44

* Sat Feb 15 2020 umeabot <umeabot> 8.43-2.mga8
+ Revision: 1523976
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%configure2_5x

* Mon Mar 18 2019 luigiwalser <luigiwalser> 8.43-1.mga7
+ Revision: 1378511
- 8.43

* Sun Sep 23 2018 umeabot <umeabot> 8.42-2.mga7
+ Revision: 1300140
- Mageia 7 Mass Rebuild

* Tue Apr 17 2018 kekepower <kekepower> 8.42-1.mga7
+ Revision: 1219709
- Update to version 8.42
- Rediffed patches

* Thu Dec 14 2017 mokraemer <mokraemer> 8.41-3.mga7
+ Revision: 1182553
- added bugfix for correct stack frame size

* Tue Dec 12 2017 wally <wally> 8.41-2.mga7
+ Revision: 1182452
- restore and rediff P4 (pcre-pcreposix-glibc-conflict.patch)

* Tue Dec 12 2017 mjack <mjack> 8.41-1.mga7
+ Revision: 1182429
- Updated to version 8.41
- Removed already applied patches
- Removed a file in %%files section (poses problems with creation of RPMS)

* Sun Feb 26 2017 luigiwalser <luigiwalser> 8.40-2.mga6
+ Revision: 1087932
- add upstream patches via fedora to fix security issues including CVE-2017-6004

* Sat Jan 14 2017 luigiwalser <luigiwalser> 8.40-1.mga6
+ Revision: 1081685
- 8.40
- rediff patch4

* Tue Jul 19 2016 luigiwalser <luigiwalser> 8.39-1.mga6
+ Revision: 1042540
- 8.39

* Sun May 22 2016 shlomif <shlomif> 8.38-4.mga6
+ Revision: 1017763
- Add static libraries - patch from proyvind

* Sun May 22 2016 luigiwalser <luigiwalser> 8.38-3.mga6
+ Revision: 1017650
- update to latest CVS as of 20160521 (aka 8.39-RC1) to fix security bugs:
- CVE-2016-1283 and CVE-2016-3191 (mga#17438)
+ umeabot <umeabot>
- Mageia 6 Mass Rebuild

* Tue Nov 24 2015 luigiwalser <luigiwalser> 8.38-1.mga6
+ Revision: 905732
- 8.38

* Sat Sep 05 2015 luigiwalser <luigiwalser> 8.37-5.mga6
+ Revision: 872898
- update to latest CVS as of 20150902 (aka 8.38-RC1) to fix security bugs (mga#16067)

* Fri Aug 21 2015 tmb <tmb> 8.37-4.mga6
+ Revision: 867685
- rebuild for new gcc

* Fri Jun 26 2015 luigiwalser <luigiwalser> 8.37-3.mga6
+ Revision: 844507
- add upstream patch to fix CVE-2015-5073

* Sat Jun 13 2015 luigiwalser <luigiwalser> 8.37-2.mga5
+ Revision: 823076
- add upstream patches to fix various overflow issues including CVE-2015-321[07]

* Wed May 13 2015 neoclust <neoclust> 8.37-1.mga5
+ Revision: 821978
- New version
   Fixes CVE-2015-2325 and CVE-2015-2326
+ luigiwalser <luigiwalser>
- add upstream patch to fix CVE-2014-8964

* Wed Oct 15 2014 umeabot <umeabot> 8.36-2.mga5
+ Revision: 746475
- Second Mageia 5 Mass Rebuild

* Wed Oct 08 2014 luigiwalser <luigiwalser> 8.36-1.mga5
+ Revision: 737602
- 8.36
- rediff patch 4
- remove upstreamed patches

* Tue Sep 16 2014 umeabot <umeabot> 8.35-3.mga5
+ Revision: 683371
- Mageia 5 Mass Rebuild

* Thu Aug 28 2014 diogenese <diogenese> 8.35-2.mga5
+ Revision: 669002
- Added fedora patch for upstream bug #1463 so build passes tests
- Added fedora patches for upstream bugs #1492, #1493, #1494, #1500, #1502, #1503, #1515

* Fri Apr 04 2014 luigiwalser <luigiwalser> 8.35-1.mga5
+ Revision: 611775
- 8.35
- update source URLs
- remove upstreamed patch 2
- rediff patch 4

* Wed Feb 19 2014 oden <oden> 8.34-2.mga5
+ Revision: 594784
- added the stack guard function (upstream) which enables mariadb-10.x to use it

* Thu Feb 06 2014 fwang <fwang> 8.34-1.mga5
+ Revision: 584398
- new version 8.34

* Sat Oct 19 2013 umeabot <umeabot> 8.33-2.mga4
+ Revision: 531861
- Mageia 4 Mass Rebuild

* Mon Aug 12 2013 oden <oden> 8.33-1.mga4
+ Revision: 465621
- 8.33
- P4: rediff

* Sun Jan 13 2013 umeabot <umeabot> 8.32-9.mga3
+ Revision: 362661
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Dec 27 2012 fwang <fwang> 8.32-8.mga3
+ Revision: 335603
- fix libname of lib16 and lib32

* Wed Dec 26 2012 neoclust <neoclust> 8.32-7.mga3
+ Revision: 335530
- Enable pcre16/32 for Qt5

* Sat Dec 01 2012 fwang <fwang> 8.32-5.mga3
+ Revision: 323949
- add back pcretest

* Sat Dec 01 2012 fwang <fwang> 8.32-4.mga3
+ Revision: 323606
- split out cpp devel lib too

* Sat Dec 01 2012 fwang <fwang> 8.32-3.mga3
+ Revision: 323586
- split out posix devel so that we could rebuild all packages

* Sat Dec 01 2012 fwang <fwang> 8.32-2.mga3
+ Revision: 323581
- remove temporarily the pcretest to have all the packages rebuilt smoothly
- should be utf

* Fri Nov 30 2012 fwang <fwang> 8.32-1.mga3
+ Revision: 323571
- new version 8.32
+ luigiwalser <luigiwalser>
- split library package (based on mdv)
- 8.31
- libpcre major is now 1
- update patches 2 and 4 (from oden)
- remove old conflicts

* Sat Jul 21 2012 colin <colin> 8.21-2.mga3
+ Revision: 273158
- Update for usrmove

* Mon Dec 26 2011 fwang <fwang> 8.21-1.mga2
+ Revision: 187740
- new version 8.21

* Mon Nov 21 2011 fwang <fwang> 8.20-2.mga2
+ Revision: 170356
- drop .la files

* Mon Oct 24 2011 fwang <fwang> 8.20-1.mga2
+ Revision: 157599
- new version 8.20
- new version 8.13

* Fri May 06 2011 ahmad <ahmad> 8.12-3.mga1
+ Revision: 95272
- Revert the deleting of .la files, some packages don't build without it

* Thu May 05 2011 ahmad <ahmad> 8.12-2.mga1
+ Revision: 95199
- Don't ship .la

* Thu Apr 14 2011 tv <tv> 8.12-1.mga1
+ Revision: 84944
- new release

* Sat Jan 08 2011 blino <blino> 8.11-2.mga1
+ Revision: 583
- remove obsolete macros
- imported package pcre


* Thu Dec 23 2010 Oden Eriksson <oeriksson@mandriva.com> 8.11-1mdv2011.0
+ Revision: 624188
- 8.11

* Mon Jul 12 2010 Oden Eriksson <oeriksson@mandriva.com> 8.10-1mdv2011.0
+ Revision: 551258
- 8.10

* Fri Mar 19 2010 Funda Wang <fwang@mandriva.org> 8.02-1mdv2010.1
+ Revision: 525255
- update to new version 8.02

* Thu Jan 21 2010 Oden Eriksson <oeriksson@mandriva.com> 8.01-1mdv2010.1
+ Revision: 494479
- 8.01

* Fri Nov 06 2009 Oden Eriksson <oeriksson@mandriva.com> 8.00-1mdv2010.1
+ Revision: 461850
- fix build
- 8.00

* Wed Jun 10 2009 Oden Eriksson <oeriksson@mandriva.com> 7.9-1mdv2010.0
+ Revision: 384818
- 7.9
- rediff patches

* Thu Jan 15 2009 Pixel <pixel@mandriva.com> 7.8-3mdv2009.1
+ Revision: 329849
- add patch (from debian) to avoid symbol conflicts between libpcreposix and glibc
- change libpcreposix major since it is not backward compatible
- keep the previous libpcreposix.so.0 for backward compatibility

* Sun Dec 21 2008 Oden Eriksson <oeriksson@mandriva.com> 7.8-2mdv2009.1
+ Revision: 317123
- fix build with -Werror=format-security (P3)

* Fri Sep 05 2008 Frederik Himpe <fhimpe@mandriva.org> 7.8-1mdv2009.0
+ Revision: 281699
- Update to new version 7.8
- Use bz2 source tarballs instead of gz
- Remove CVE-2008-2371 patch, a fix for this security problem was
  integrated upstream

* Wed Jul 16 2008 Oden Eriksson <oeriksson@mandriva.com> 7.7-2mdv2009.0
+ Revision: 236328
- fix linkage
- P0: security fix for CVE-2008-2371

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Wed May 07 2008 Oden Eriksson <oeriksson@mandriva.com> 7.7-1mdv2009.0
+ Revision: 203261
- 7.7

* Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 7.6-2mdv2008.1
+ Revision: 171018
- rebuild
- fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake

* Tue Jan 29 2008 Funda Wang <fwang@mandriva.org> 7.6-1mdv2008.1
+ Revision: 159594
- update to new version 7.6

* Sat Jan 26 2008 Götz Waschk <waschk@mandriva.org> 7.5-3mdv2008.1
+ Revision: 158423
- enable unicode properties (bug #37183)

* Thu Jan 17 2008 Thierry Vignaud <tv@mandriva.org> 7.5-2mdv2008.1
+ Revision: 154148
- do not package big changelog

* Thu Jan 10 2008 Götz Waschk <waschk@mandriva.org> 7.5-1mdv2008.1
+ Revision: 147716
- new version

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Mon Dec 03 2007 Funda Wang <fwang@mandriva.org> 7.4-2mdv2008.1
+ Revision: 114471
- rebuild
- clean old conditions

* Sat Oct 13 2007 Funda Wang <fwang@mandriva.org> 7.4-1mdv2008.1
+ Revision: 97867
- New version 7.4

* Wed Aug 29 2007 Funda Wang <fwang@mandriva.org> 7.3-1mdv2008.0
+ Revision: 73286
- New version 7.3

  + Thierry Vignaud <tv@mandriva.org>
    - replace %%_datadir/man by %%_mandir!

* Tue Jun 19 2007 Götz Waschk <waschk@mandriva.org> 7.2-1mdv2008.0
+ Revision: 41508
- new version

* Wed May 16 2007 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 7.1-1mdv2008.0
+ Revision: 27456
- Updated to 7.1.
- Some cleanups.


* Tue Dec 19 2006 Götz Waschk <waschk@mandriva.org> 7.0-1mdv2007.0
+ Revision: 100317
- fix typo
- new version
- update file list
- unpack patch

* Tue Oct 31 2006 Oden Eriksson <oeriksson@mandriva.com> 6.7-1mdv2007.1
+ Revision: 74476
- Import pcre

* Thu Jul 06 2006 Götz Waschk <waschk@mandriva.org> 6.7-1mdk
- New release 6.7

* Mon Feb 06 2006 Götz Waschk <waschk@mandriva.org> 6.6-1mdk
- New release 6.6

* Mon Feb 06 2006 Götz Waschk <waschk@mandriva.org> 6.5-4mdk
- run tests in C locale

* Sat Feb 04 2006 Laurent MONTEL <lmontel@mandriva.com> 6.5-3mdk
- Add patch1: fix detect pcre into kdelibs

* Fri Feb 03 2006 Götz Waschk <waschk@mandriva.org> 6.5-1mdk
- New release 6.5

* Tue Oct 18 2005 Olivier Thauvin <nanardon@mandriva.org> 6.4-1mdk
- 6.4

* Tue Aug 23 2005 Götz Waschk <waschk@mandriva.org> 6.3-1mdk
- New release 6.3

* Tue Aug 02 2005 Götz Waschk <waschk@mandriva.org> 6.2-1mdk
- New release 6.2

* Thu Jun 23 2005 Götz Waschk <waschk@mandriva.org> 6.1-1mdk
- New release 6.1

* Tue Jun 14 2005 Götz Waschk <waschk@mandriva.org> 6.0-1mdk
- mv pkgconfig file to the devel package
- fix tests
- add source URL
- new version

* Mon Jan 31 2005 Laurent MONTEL <lmontel@mandrakesoft.com> 5.0-2mdk
- Fix multiarch

* Thu Nov 25 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 5.0-1mdk
- 5.0

* Mon May 24 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 4.5-5mdk
- fix buildrequires

* Mon May 24 2004 Abel Cheung <deaddog@deaddog.org> 4.5-4mdk
- (gb) fix deps
- Don't need to regen auto* stuff, cputoolize would do the job
- Use UTF-8 for spec!

* Wed Mar 24 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 4.5-3mdk
- Fix update from 9.1

* Tue Mar 02 2004 Götz Waschk <waschk@linux-mandrake.com> 4.5-2mdk
- use the mdkversion macro
- fix buildrequires