/[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 323949 by fwang, Sat Dec 1 10:19:11 2012 UTC revision 611775 by luigiwalser, Fri Apr 4 21:21:47 2014 UTC
# Line 3  Line 3 
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
7    %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}
10    %define libname32 %mklibname pcre 32 %{pcrecpp_major}
11  %define libnamecpp %mklibname pcrecpp %{pcrecpp_major}  %define libnamecpp %mklibname pcrecpp %{pcrecpp_major}
12  %define libnameposix %mklibname pcreposix %{pcreposix_major}  %define libnameposix %mklibname pcreposix %{pcreposix_major}
13  %define libnameposix_compat %mklibname pcreposix %{pcreposix_compat_major}  %define libnameposix_compat %mklibname pcreposix %{pcreposix_compat_major}
# Line 15  Line 19 
19    
20  Summary:        Perl-compatible regular expression library  Summary:        Perl-compatible regular expression library
21  Name:           pcre  Name:           pcre
22  Version:        8.32  Version:        8.35
23  Release:        %mkrel 5  Release:        %mkrel 1
24  License:        BSD-Style  License:        BSD-Style
25  Group:          File tools  Group:          File tools
26  URL:            http://www.pcre.org/  URL:            http://www.pcre.org/
27  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
28  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
29  Requires:       %{libname} = %{version}-%{release}  Requires:       %{libname} = %{version}-%{release}
30  BuildRequires:  automake  BuildRequires:  automake
31  Patch1:         pcre-0.6.5-fix-detect-into-kdelibs.patch  Patch0:         pcre-0.6.5-fix-detect-into-kdelibs.patch
32  Patch2:         pcre-linkage_fix.diff  Patch1:         pcre-linkage_fix.diff
33  # from debian:  # from debian:
34  Patch4:         pcre-pcreposix-glibc-conflict.patch  Patch4:         pcre-pcreposix-glibc-conflict.patch
35    
# Line 45  Provides:      %{libname_orig} = %{version}-% Line 49  Provides:      %{libname_orig} = %{version}-%
49  %description -n %{libname}  %description -n %{libname}
50  This package contains the shared library libpcre.  This package contains the shared library libpcre.
51    
52    %package -n %{libname16}
53    Group:      System/Libraries
54    Summary:    Perl-compatible regular expression library
55    Requires(pre):  filesystem >= 2.1.9-18
56    Provides:   %{libname16_orig} = %{version}-%{release}
57    Obsoletes:      %{_lib}pcre16_1 < %{version}-%{release}
58    
59    %description -n %{libname16}
60    This package contains the shared library libpcre.
61    
62    %package -n %{libname32}
63    Group:      System/Libraries
64    Summary:    Perl-compatible regular expression library
65    Requires(pre):  filesystem >= 2.1.9-18
66    Provides:   %{libname32_orig} = %{version}-%{release}
67    Obsoletes:      %{_lib}pcre32_1 < %{version}-%{release}
68    
69    %description -n %{libname32}
70    This package contains the shared library libpcre.
71    
72  %package -n     %{libnamecpp}  %package -n     %{libnamecpp}
73  Group:          System/Libraries  Group:          System/Libraries
# Line 77  This package contains the shared library Line 100  This package contains the shared library
100  Group:          Development/C  Group:          Development/C
101  Summary:        Headers and static lib for pcre development  Summary:        Headers and static lib for pcre development
102  Requires:       %{libname} = %{version}-%{release}  Requires:       %{libname} = %{version}-%{release}
103    Requires:   %{libname16} = %{version}-%{release}
104    Requires:   %{libname32} = %{version}-%{release}
105  Provides:       %{libname_orig}-devel = %{version}-%{release}  Provides:       %{libname_orig}-devel = %{version}-%{release}
106  Provides:       %{name}-devel = %{version}-%{release}  Provides:       %{name}-devel = %{version}-%{release}
107  Obsoletes:      %mklibname pcre 0 -d  Obsoletes:      %mklibname pcre 0 -d
# Line 117  at by a link. Line 142  at by a link.
142    
143  %prep  %prep
144  %setup -q  %setup -q
145  %patch1 -p1 -b .detect_into_kdelibs  %patch0 -p1 -b .detect_into_kdelibs
146  %patch2 -p0  %patch1 -p0
147    
148  %if %{build_pcreposix_compat}  %if %{build_pcreposix_compat}
149    # pcre-pcreposix-glibc-conflict patch below breaks compatibility,    # pcre-pcreposix-glibc-conflict patch below breaks compatibility,
# Line 141  for i in $dirs; do Line 166  for i in $dirs; do
166          --disable-static \          --disable-static \
167          --enable-utf \          --enable-utf \
168          --enable-unicode-properties \          --enable-unicode-properties \
169        --enable-pcre8 \
170        --enable-pcre16 \
171        --enable-pcre32 \
172          --enable-jit          --enable-jit
173    %make    %make
174    cd -    cd -
# Line 180  rm -f %{buildroot}%{_libdir}/*.la Line 208  rm -f %{buildroot}%{_libdir}/*.la
208  %files -n %{libname}  %files -n %{libname}
209  %{_libdir}/libpcre.so.%{pcre_major}*  %{_libdir}/libpcre.so.%{pcre_major}*
210    
211    %files -n %{libname16}
212    %{_libdir}/libpcre16.so.%{pcrecpp_major}*
213    
214    %files -n %{libname32}
215    %{_libdir}/libpcre32.so.%{pcrecpp_major}*
216    
217  %files -n %{libnamecpp}  %files -n %{libnamecpp}
218  %{_libdir}/libpcrecpp.so.%{pcrecpp_major}*  %{_libdir}/libpcrecpp.so.%{pcrecpp_major}*
219    
# Line 195  rm -f %{buildroot}%{_libdir}/*.la Line 229  rm -f %{buildroot}%{_libdir}/*.la
229  %doc doc/html  %doc doc/html
230  %doc ChangeLog  %doc ChangeLog
231  %{_libdir}/libpcre.so  %{_libdir}/libpcre.so
232    %{_libdir}/libpcre16.so
233    %{_libdir}/libpcre32.so
234  %{_includedir}/pcre.h  %{_includedir}/pcre.h
235  %{_includedir}/pcre_*.h  %{_includedir}/pcre_*.h
236  %{_libdir}/pkgconfig/libpcre.pc  %{_libdir}/pkgconfig/libpcre.pc
237    %{_libdir}/pkgconfig/libpcre16.pc
238    %{_libdir}/pkgconfig/libpcre32.pc
239  %{_bindir}/pcre-config  %{_bindir}/pcre-config
240  %multiarch %{multiarch_bindir}/pcre-config  %multiarch %{multiarch_bindir}/pcre-config
241  %{_mandir}/man1/pcre-config.1*  %{_mandir}/man1/pcre-config.1*

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

  ViewVC Help
Powered by ViewVC 1.1.30