/[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 531861 by umeabot, Sat Oct 19 12:55:35 2013 UTC revision 821978 by neoclust, Tue May 12 23:10:16 2015 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.33  Version:        8.37
24  Release:        %mkrel 2  Release:        %mkrel 1
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:        http://downloads.sourceforge.net/pcre/%{name}-%{version}.tar.bz2  Source0:        ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
29  Source1:        http://downloads.sourceforge.net/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  Patch1:         pcre-0.6.5-fix-detect-into-kdelibs.patch  Patch0:         pcre-0.6.5-fix-detect-into-kdelibs.patch
33  Patch2:         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    
37    
38  %description  %description
39  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
40  the POSIX API are also supplied in the library libpcreposix. Note that this  the POSIX API are also supplied in the library libpcreposix. Note that this
# Line 49  Provides:      %{libname_orig} = %{version}-% Line 51  Provides:      %{libname_orig} = %{version}-%
51  %description -n %{libname}  %description -n %{libname}
52  This package contains the shared library libpcre.  This package contains the shared library libpcre.
53    
54  %package -n %{libname16}  %package -n     %{libname16}
55  Group:      System/Libraries  Group:          System/Libraries
56  Summary:    Perl-compatible regular expression library  Summary:        Perl-compatible regular expression library
57  Requires(pre):  filesystem >= 2.1.9-18  Requires(pre):  filesystem >= 2.1.9-18
58  Provides:   %{libname16_orig} = %{version}-%{release}  Provides:       %{libname16_orig} = %{version}-%{release}
59  Obsoletes:      %{_lib}pcre16_1 < %{version}-%{release}  Obsoletes:      %{_lib}pcre16_1 < %{version}-%{release}
60    
61  %description -n %{libname16}  %description -n %{libname16}
62  This package contains the shared library libpcre.  This package contains the shared library libpcre.
63    
64  %package -n %{libname32}  %package -n     %{libname32}
65  Group:      System/Libraries  Group:          System/Libraries
66  Summary:    Perl-compatible regular expression library  Summary:        Perl-compatible regular expression library
67  Requires(pre):  filesystem >= 2.1.9-18  Requires(pre):  filesystem >= 2.1.9-18
68  Provides:   %{libname32_orig} = %{version}-%{release}  Provides:       %{libname32_orig} = %{version}-%{release}
69  Obsoletes:      %{_lib}pcre32_1 < %{version}-%{release}  Obsoletes:      %{_lib}pcre32_1 < %{version}-%{release}
70    
71  %description -n %{libname32}  %description -n %{libname32}
72  This package contains the shared library libpcre.  This package contains the shared library libpcre.
73    
74  %package -n     %{libnamecpp}  %package -n     %{libnamecpp}
75  Group:          System/Libraries  Group:          System/Libraries
76  Summary:        Perl-compatible regular expression library  Summary:        Perl-compatible regular expression library
77  Conflicts:      %{_lib}pcre0 < 8.21-3  Conflicts:      %{_lib}pcre0 < 8.21-3
78    
# Line 79  This package contains the shared library Line 81  This package contains the shared library
81    
82    
83  %package -n     %{libnameposix}  %package -n     %{libnameposix}
84  Group:          System/Libraries  Group:          System/Libraries
85  Summary:        Perl-compatible regular expression library  Summary:        Perl-compatible regular expression library
86  Conflicts:      %{_lib}pcre0 < 8.21-3  Conflicts:      %{_lib}pcre0 < 8.21-3
87    
# Line 88  This package contains the shared library Line 90  This package contains the shared library
90    
91    
92  %package -n     %{libnameposix_compat}  %package -n     %{libnameposix_compat}
93  Group:          System/Libraries  Group:          System/Libraries
94  Summary:        Perl-compatible regular expression library  Summary:        Perl-compatible regular expression library
95  Conflicts:      %{_lib}pcre0 < 8.21-3  Conflicts:      %{_lib}pcre0 < 8.21-3
96    
# Line 100  This package contains the shared library Line 102  This package contains the shared library
102  Group:          Development/C  Group:          Development/C
103  Summary:        Headers and static lib for pcre development  Summary:        Headers and static lib for pcre development
104  Requires:       %{libname} = %{version}-%{release}  Requires:       %{libname} = %{version}-%{release}
105  Requires:   %{libname16} = %{version}-%{release}  Requires:       %{libname16} = %{version}-%{release}
106  Requires:   %{libname32} = %{version}-%{release}  Requires:       %{libname32} = %{version}-%{release}
107  Provides:       %{libname_orig}-devel = %{version}-%{release}  Provides:       %{libname_orig}-devel = %{version}-%{release}
108  Provides:       %{name}-devel = %{version}-%{release}  Provides:       %{name}-devel = %{version}-%{release}
109  Obsoletes:      %mklibname pcre 0 -d  Obsoletes:      %{olddevelname} < 8.21-3
110    
111  %description -n %{develname}  %description -n %{develname}
112  Install this package if you want do compile applications using the pcre  Install this package if you want do compile applications using the pcre
113  library.  library.
114    
115  %package -n %{develcpp}  %package -n     %{develcpp}
116  Group:          Development/C++  Group:          Development/C++
117  Summary:        Headers and static lib for pcrecpp development  Summary:        Headers and static lib for pcrecpp development
118  Provides:       pcrecpp-devel = %{version}-%{release}  Provides:       pcrecpp-devel = %{version}-%{release}
# Line 118  Requires:      %{libnamecpp} = %{version}-%{r Line 120  Requires:      %{libnamecpp} = %{version}-%{r
120  Requires:       %{develname} = %{version}-%{release}  Requires:       %{develname} = %{version}-%{release}
121  Conflicts:      pcre-devel < 8.32-4  Conflicts:      pcre-devel < 8.32-4
122    
123  %description -n %{develcpp}  %description -n %{develcpp}
124  Install this package if you want do compile applications using the pcrecpp  Install this package if you want do compile applications using the pcrecpp
125  library.  library.
126    
127  %package -n %{develposix}  %package -n     %{develposix}
128  Group:          Development/C  Group:          Development/C
129  Summary:        Headers and static lib for pcreposix development  Summary:        Headers and static lib for pcreposix development
130  Provides:       pcreposix-devel = %{version}-%{release}  Provides:       pcreposix-devel = %{version}-%{release}
# Line 130  Requires:      %{libnameposix} = %{version}-% Line 132  Requires:      %{libnameposix} = %{version}-%
132  Requires:       %{develname} = %{version}-%{release}  Requires:       %{develname} = %{version}-%{release}
133  Conflicts:      pcre-devel < 8.32-4  Conflicts:      pcre-devel < 8.32-4
134    
135  %description -n %{develposix}  %description -n %{develposix}
136  Install this package if you want do compile applications using the pcre  Install this package if you want do compile applications using the pcre
137  library.  library.
138    
# Line 142  at by a link. Line 144  at by a link.
144    
145  %prep  %prep
146  %setup -q  %setup -q
147  %patch1 -p1 -b .detect_into_kdelibs  %patch0 -p1 -b .detect-into-kdelibs
148  %patch2 -p0  %patch1 -p1 -b .linkage-fix
149    
150  %if %{build_pcreposix_compat}  %if %{build_pcreposix_compat}
151    # pcre-pcreposix-glibc-conflict patch below breaks compatibility,    # pcre-pcreposix-glibc-conflict patch below breaks compatibility,
# Line 163  for i in $dirs; do Line 165  for i in $dirs; do
165    mkdir -p m4    mkdir -p m4
166    autoreconf -fi    autoreconf -fi
167    %configure2_5x \    %configure2_5x \
168          --disable-static \          --disable-static \
169          --enable-utf \          --enable-utf \
170          --enable-unicode-properties \          --enable-unicode-properties \
171      --enable-pcre8 \          --enable-pcre8 \
172      --enable-pcre16 \          --enable-pcre16 \
173      --enable-pcre32 \          --enable-pcre32 \
174          --enable-jit          --enable-jit
175    %make    %make
176    cd -    cd -
# Line 176  done Line 178  done
178    
179  %check  %check
180  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*  
181  make check  make check
182    
183  %install  %install

Legend:
Removed from v.531861  
changed lines
  Added in v.821978

  ViewVC Help
Powered by ViewVC 1.1.30