/[packages]/cauldron/pcre/current/SPECS/pcre.spec
ViewVC logotype

Diff of /cauldron/pcre/current/SPECS/pcre.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 611775 by luigiwalser, Fri Apr 4 21:21:47 2014 UTC revision 683371 by umeabot, Tue Sep 16 17:47:58 2014 UTC
# Line 2  Line 2 
2  %define pcrecpp_major 0  %define pcrecpp_major 0
3  %define pcreposix_major 1  %define pcreposix_major 1
4  %define pcreposix_compat_major 0  %define pcreposix_compat_major 0
5  %define libname_orig    lib%{name}  %define libname_orig lib%{name}
6  %define libname16_orig    lib%{name}16  %define libname16_orig lib%{name}16
7  %define libname32_orig    lib%{name}32  %define libname32_orig lib%{name}32
8  %define libname %mklibname pcre %{pcre_major}  %define libname %mklibname pcre %{pcre_major}
9  %define libname16 %mklibname pcre 16 %{pcrecpp_major}  %define libname16 %mklibname pcre 16 %{pcrecpp_major}
10  %define libname32 %mklibname pcre 32 %{pcrecpp_major}  %define libname32 %mklibname pcre 32 %{pcrecpp_major}
# Line 14  Line 14 
14  %define develname %mklibname -d pcre  %define develname %mklibname -d pcre
15  %define develcpp %mklibname -d pcrecpp  %define develcpp %mklibname -d pcrecpp
16  %define develposix %mklibname -d pcreposix  %define develposix %mklibname -d pcreposix
17    %define olddevelname %mklibname %{name} 0 -d
18    
19  %define build_pcreposix_compat 1  %define build_pcreposix_compat 1
20    
21  Summary:        Perl-compatible regular expression library  Summary:        Perl-compatible regular expression library
22  Name:           pcre  Name:           pcre
23  Version:        8.35  Version:        8.35
24  Release:        %mkrel 1  Release:        %mkrel 3
25  License:        BSD-Style  License:        BSD-Style
26  Group:          File tools  Group:          File tools
27  URL:            http://www.pcre.org/  URL:            http://www.pcre.org/
28  Source0:        ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2  Source0:        ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
29  Source1:        ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2.sig  Source1:        ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2.sig
30  Requires:       %{libname} = %{version}-%{release}  Requires:       %{libname} = %{version}-%{release}
31  BuildRequires:  automake  BuildRequires:  automake
32  Patch0:         pcre-0.6.5-fix-detect-into-kdelibs.patch  Patch0:         pcre-0.6.5-fix-detect-into-kdelibs.patch
33  Patch1:         pcre-linkage_fix.diff  Patch1:         pcre-8.33-linkage-fix.patch
34  # from debian:  # from debian:
35  Patch4:         pcre-pcreposix-glibc-conflict.patch  Patch4:         pcre-pcreposix-glibc-conflict.patch
36    # from fedora
37    # upstream bug #1463
38    Patch5:         pcre-8.35-Do-not-rely-on-wrapping-signed-integer-while-parsein.patch
39    # upstream bug #1492
40    Patch6:         pcre-8.35-Fix-bad-starting-data-when-char-with-more-than-one-o.patch
41    # upstream bug #1493
42    Patch7:         pcre-8.35-Fix-not-including-VT-in-starting-characters-for-s.patch
43    # upstream bug #1494
44    Patch8:         pcre-8.35-Fix-bad-compile-of-Qx-.-where-x-is-any-character.patch
45    # upstream bug #1500
46    Patch9:         pcre-8.35-Fix-empty-matching-possessive-zero-repeat-groups-bug.patch
47    # upstream bug #1502
48    Patch10:        pcre-8.35-Fixed-several-memory-leaks-in-pcregrep.patch
49    # upstream bug #1503
50    Patch11:        pcre-8.35-Fix-compiler-crash-misbehaviour-for-zero-repeated-gr.patch
51    # upstream bug #1515
52    Patch12:        pcre-8.35-Fix-compile-time-loop-for-recursive-reference-within.patch
53    
54    
55  %description  %description
56  PCRE has its own native API, but a set of "wrapper" functions that are based on  PCRE has its own native API, but a set of "wrapper" functions that are based on
# Line 49  Provides:      %{libname_orig} = %{version}-% Line 68  Provides:      %{libname_orig} = %{version}-%
68  %description -n %{libname}  %description -n %{libname}
69  This package contains the shared library libpcre.  This package contains the shared library libpcre.
70    
71  %package -n %{libname16}  %package -n     %{libname16}
72  Group:      System/Libraries  Group:          System/Libraries
73  Summary:    Perl-compatible regular expression library  Summary:        Perl-compatible regular expression library
74  Requires(pre):  filesystem >= 2.1.9-18  Requires(pre):  filesystem >= 2.1.9-18
75  Provides:   %{libname16_orig} = %{version}-%{release}  Provides:       %{libname16_orig} = %{version}-%{release}
76  Obsoletes:      %{_lib}pcre16_1 < %{version}-%{release}  Obsoletes:      %{_lib}pcre16_1 < %{version}-%{release}
77    
78  %description -n %{libname16}  %description -n %{libname16}
79  This package contains the shared library libpcre.  This package contains the shared library libpcre.
80    
81  %package -n %{libname32}  %package -n     %{libname32}
82  Group:      System/Libraries  Group:          System/Libraries
83  Summary:    Perl-compatible regular expression library  Summary:        Perl-compatible regular expression library
84  Requires(pre):  filesystem >= 2.1.9-18  Requires(pre):  filesystem >= 2.1.9-18
85  Provides:   %{libname32_orig} = %{version}-%{release}  Provides:       %{libname32_orig} = %{version}-%{release}
86  Obsoletes:      %{_lib}pcre32_1 < %{version}-%{release}  Obsoletes:      %{_lib}pcre32_1 < %{version}-%{release}
87    
88  %description -n %{libname32}  %description -n %{libname32}
89  This package contains the shared library libpcre.  This package contains the shared library libpcre.
90    
91  %package -n     %{libnamecpp}  %package -n     %{libnamecpp}
92  Group:          System/Libraries  Group:          System/Libraries
93  Summary:        Perl-compatible regular expression library  Summary:        Perl-compatible regular expression library
94  Conflicts:      %{_lib}pcre0 < 8.21-3  Conflicts:      %{_lib}pcre0 < 8.21-3
95    
# Line 79  This package contains the shared library Line 98  This package contains the shared library
98    
99    
100  %package -n     %{libnameposix}  %package -n     %{libnameposix}
101  Group:          System/Libraries  Group:          System/Libraries
102  Summary:        Perl-compatible regular expression library  Summary:        Perl-compatible regular expression library
103  Conflicts:      %{_lib}pcre0 < 8.21-3  Conflicts:      %{_lib}pcre0 < 8.21-3
104    
# Line 88  This package contains the shared library Line 107  This package contains the shared library
107    
108    
109  %package -n     %{libnameposix_compat}  %package -n     %{libnameposix_compat}
110  Group:          System/Libraries  Group:          System/Libraries
111  Summary:        Perl-compatible regular expression library  Summary:        Perl-compatible regular expression library
112  Conflicts:      %{_lib}pcre0 < 8.21-3  Conflicts:      %{_lib}pcre0 < 8.21-3
113    
# Line 100  This package contains the shared library Line 119  This package contains the shared library
119  Group:          Development/C  Group:          Development/C
120  Summary:        Headers and static lib for pcre development  Summary:        Headers and static lib for pcre development
121  Requires:       %{libname} = %{version}-%{release}  Requires:       %{libname} = %{version}-%{release}
122  Requires:   %{libname16} = %{version}-%{release}  Requires:       %{libname16} = %{version}-%{release}
123  Requires:   %{libname32} = %{version}-%{release}  Requires:       %{libname32} = %{version}-%{release}
124  Provides:       %{libname_orig}-devel = %{version}-%{release}  Provides:       %{libname_orig}-devel = %{version}-%{release}
125  Provides:       %{name}-devel = %{version}-%{release}  Provides:       %{name}-devel = %{version}-%{release}
126  Obsoletes:      %mklibname pcre 0 -d  Obsoletes:      %{olddevelname} < 8.21-3
127    
128  %description -n %{develname}  %description -n %{develname}
129  Install this package if you want do compile applications using the pcre  Install this package if you want do compile applications using the pcre
130  library.  library.
131    
132  %package -n %{develcpp}  %package -n     %{develcpp}
133  Group:          Development/C++  Group:          Development/C++
134  Summary:        Headers and static lib for pcrecpp development  Summary:        Headers and static lib for pcrecpp development
135  Provides:       pcrecpp-devel = %{version}-%{release}  Provides:       pcrecpp-devel = %{version}-%{release}
# Line 118  Requires:      %{libnamecpp} = %{version}-%{r Line 137  Requires:      %{libnamecpp} = %{version}-%{r
137  Requires:       %{develname} = %{version}-%{release}  Requires:       %{develname} = %{version}-%{release}
138  Conflicts:      pcre-devel < 8.32-4  Conflicts:      pcre-devel < 8.32-4
139    
140  %description -n %{develcpp}  %description -n %{develcpp}
141  Install this package if you want do compile applications using the pcrecpp  Install this package if you want do compile applications using the pcrecpp
142  library.  library.
143    
144  %package -n %{develposix}  %package -n     %{develposix}
145  Group:          Development/C  Group:          Development/C
146  Summary:        Headers and static lib for pcreposix development  Summary:        Headers and static lib for pcreposix development
147  Provides:       pcreposix-devel = %{version}-%{release}  Provides:       pcreposix-devel = %{version}-%{release}
# Line 130  Requires:      %{libnameposix} = %{version}-% Line 149  Requires:      %{libnameposix} = %{version}-%
149  Requires:       %{develname} = %{version}-%{release}  Requires:       %{develname} = %{version}-%{release}
150  Conflicts:      pcre-devel < 8.32-4  Conflicts:      pcre-devel < 8.32-4
151    
152  %description -n %{develposix}  %description -n %{develposix}
153  Install this package if you want do compile applications using the pcre  Install this package if you want do compile applications using the pcre
154  library.  library.
155    
# Line 142  at by a link. Line 161  at by a link.
161    
162  %prep  %prep
163  %setup -q  %setup -q
164  %patch0 -p1 -b .detect_into_kdelibs  %patch0 -p1 -b .detect-into-kdelibs
165  %patch1 -p0  %patch1 -p1 -b .linkage-fix
166    %patch5 -p1 -b .do-not-rely
167    %patch6 -p1 -b .bad-start
168    %patch7 -p1 -b .vt-not-included
169    %patch8 -p1 -b .bad-Qx-compile
170    %patch9 -p1 -b .empty-matching
171    %patch10 -p1 -b .memory-leaks
172    %patch11 -p1 -b .zero-grs
173    %patch12 -p1 -b .recurse-within
174    
175  %if %{build_pcreposix_compat}  %if %{build_pcreposix_compat}
176    # pcre-pcreposix-glibc-conflict patch below breaks compatibility,    # pcre-pcreposix-glibc-conflict patch below breaks compatibility,
# Line 163  for i in $dirs; do Line 190  for i in $dirs; do
190    mkdir -p m4    mkdir -p m4
191    autoreconf -fi    autoreconf -fi
192    %configure2_5x \    %configure2_5x \
193          --disable-static \          --disable-static \
194          --enable-utf \          --enable-utf \
195          --enable-unicode-properties \          --enable-unicode-properties \
196      --enable-pcre8 \          --enable-pcre8 \
197      --enable-pcre16 \          --enable-pcre16 \
198      --enable-pcre32 \          --enable-pcre32 \
199          --enable-jit          --enable-jit
200    %make    %make
201    cd -    cd -
# Line 176  done Line 203  done
203    
204  %check  %check
205  export LC_ALL=C  export LC_ALL=C
 # Tests, patch out actual pcre_study_size in expected results  
 #echo 'int main() { printf("%d", sizeof(pcre_study_data)); return 0; }' | \  
 #%{__cc} -xc - -include "pcre_internal.h" -I. -o study_size  
 #STUDY_SIZE=`./study_size`  
 #perl -pi -e "s,(Study size\s+=\s+)\d+,\${1}$STUDY_SIZE," testdata/testoutput*  
206  make check  make check
207    
208  %install  %install

Legend:
Removed from v.611775  
changed lines
  Added in v.683371

  ViewVC Help
Powered by ViewVC 1.1.30