/[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 323581 by fwang, Fri Nov 30 23:27:40 2012 UTC revision 594784 by oden, Wed Feb 19 14:09:32 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}
14  %define develname %mklibname -d pcre  %define develname %mklibname -d pcre
15    %define develcpp %mklibname -d pcrecpp
16    %define develposix %mklibname -d pcreposix
17    
18  %define build_pcreposix_compat 1  %define build_pcreposix_compat 1
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.34
23  Release:        %mkrel 2  Release:        %mkrel 2
24  License:        BSD-Style  License:        BSD-Style
25  Group:          File tools  Group:          File tools
# Line 22  Source0:       http://downloads.sourceforge.ne Line 28  Source0:       http://downloads.sourceforge.ne
28  Source1:        http://downloads.sourceforge.net/pcre/%{name}-%{version}.tar.bz2.sig  Source1:        http://downloads.sourceforge.net/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    Patch2:         pcre-8.34-stack_guard.diff
34  # from debian:  # from debian:
35  Patch4:         pcre-pcreposix-glibc-conflict.patch  Patch4:         pcre-pcreposix-glibc-conflict.patch
36    
# Line 43  Provides:      %{libname_orig} = %{version}-% Line 50  Provides:      %{libname_orig} = %{version}-%
50  %description -n %{libname}  %description -n %{libname}
51  This package contains the shared library libpcre.  This package contains the shared library libpcre.
52    
53    %package -n %{libname16}
54    Group:      System/Libraries
55    Summary:    Perl-compatible regular expression library
56    Requires(pre):  filesystem >= 2.1.9-18
57    Provides:   %{libname16_orig} = %{version}-%{release}
58    Obsoletes:      %{_lib}pcre16_1 < %{version}-%{release}
59    
60    %description -n %{libname16}
61    This package contains the shared library libpcre.
62    
63    %package -n %{libname32}
64    Group:      System/Libraries
65    Summary:    Perl-compatible regular expression library
66    Requires(pre):  filesystem >= 2.1.9-18
67    Provides:   %{libname32_orig} = %{version}-%{release}
68    Obsoletes:      %{_lib}pcre32_1 < %{version}-%{release}
69    
70    %description -n %{libname32}
71    This package contains the shared library libpcre.
72    
73  %package -n     %{libnamecpp}  %package -n     %{libnamecpp}
74  Group:          System/Libraries  Group:          System/Libraries
# Line 75  This package contains the shared library Line 101  This package contains the shared library
101  Group:          Development/C  Group:          Development/C
102  Summary:        Headers and static lib for pcre development  Summary:        Headers and static lib for pcre development
103  Requires:       %{libname} = %{version}-%{release}  Requires:       %{libname} = %{version}-%{release}
104  Requires:       %{libnamecpp} = %{version}-%{release}  Requires:   %{libname16} = %{version}-%{release}
105  Requires:       %{libnameposix} = %{version}-%{release}  Requires:   %{libname32} = %{version}-%{release}
 Requires:       %{libnameposix_compat} = %{version}-%{release}  
106  Provides:       %{libname_orig}-devel = %{version}-%{release}  Provides:       %{libname_orig}-devel = %{version}-%{release}
107  Provides:       %{name}-devel = %{version}-%{release}  Provides:       %{name}-devel = %{version}-%{release}
108  Obsoletes:      %mklibname pcre 0 -d  Obsoletes:      %mklibname pcre 0 -d
# Line 86  Obsoletes:     %mklibname pcre 0 -d Line 111  Obsoletes:     %mklibname pcre 0 -d
111  Install this package if you want do compile applications using the pcre  Install this package if you want do compile applications using the pcre
112  library.  library.
113    
114    %package -n %{develcpp}
115    Group:          Development/C++
116    Summary:        Headers and static lib for pcrecpp development
117    Provides:       pcrecpp-devel = %{version}-%{release}
118    Requires:       %{libnamecpp} = %{version}-%{release}
119    Requires:       %{develname} = %{version}-%{release}
120    Conflicts:      pcre-devel < 8.32-4
121    
122    %description -n %{develcpp}
123    Install this package if you want do compile applications using the pcrecpp
124    library.
125    
126    %package -n %{develposix}
127    Group:          Development/C
128    Summary:        Headers and static lib for pcreposix development
129    Provides:       pcreposix-devel = %{version}-%{release}
130    Requires:       %{libnameposix} = %{version}-%{release}
131    Requires:       %{develname} = %{version}-%{release}
132    Conflicts:      pcre-devel < 8.32-4
133    
134    %description -n %{develposix}
135    Install this package if you want do compile applications using the pcre
136    library.
137    
138  The header file for the POSIX-style functions is called pcreposix.h. The  The header file for the POSIX-style functions is called pcreposix.h. The
139  official POSIX name is regex.h, but I didn't want to risk possible problems  official POSIX name is regex.h, but I didn't want to risk possible problems
140  with existing files of that name by distributing it that way. To use it with an  with existing files of that name by distributing it that way. To use it with an
# Line 94  at by a link. Line 143  at by a link.
143    
144  %prep  %prep
145  %setup -q  %setup -q
146  %patch1 -p1 -b .detect_into_kdelibs  %patch0 -p1 -b .detect_into_kdelibs
147  %patch2 -p0  %patch1 -p0
148    %patch2 -p1
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 118  for i in $dirs; do Line 168  for i in $dirs; do
168          --disable-static \          --disable-static \
169          --enable-utf \          --enable-utf \
170          --enable-unicode-properties \          --enable-unicode-properties \
171        --enable-pcre8 \
172        --enable-pcre16 \
173        --enable-pcre32 \
174          --enable-jit          --enable-jit
175    %make    %make
176    cd -    cd -
# Line 146  rm -f %{buildroot}%{_docdir}/pcre/{pcre- Line 199  rm -f %{buildroot}%{_docdir}/pcre/{pcre-
199  rm -f %{buildroot}%{_docdir}/pcre/{pcretest.txt,README}  rm -f %{buildroot}%{_docdir}/pcre/{pcretest.txt,README}
200  rm -rf %{buildroot}%{_docdir}/pcre/html  rm -rf %{buildroot}%{_docdir}/pcre/html
201  rm -f %{buildroot}%{_libdir}/*.la  rm -f %{buildroot}%{_libdir}/*.la
 rm -f %{buildroot}%{_bindir}/pcretest  
202    
203  %files  %files
204  %doc AUTHORS COPYING LICENCE NEWS README  %doc AUTHORS COPYING LICENCE NEWS README
205  %{_mandir}/man1/pcregrep.1*  %{_mandir}/man1/pcregrep.1*
206  %{_mandir}/man1/pcretest.1*  %{_mandir}/man1/pcretest.1*
207  %{_bindir}/pcregrep    %{_bindir}/pcregrep  
208  #%{_bindir}/pcretest  %{_bindir}/pcretest
209    
210  %files -n %{libname}  %files -n %{libname}
211  %{_libdir}/libpcre.so.%{pcre_major}*  %{_libdir}/libpcre.so.%{pcre_major}*
212    
213    %files -n %{libname16}
214    %{_libdir}/libpcre16.so.%{pcrecpp_major}*
215    
216    %files -n %{libname32}
217    %{_libdir}/libpcre32.so.%{pcrecpp_major}*
218    
219  %files -n %{libnamecpp}  %files -n %{libnamecpp}
220  %{_libdir}/libpcrecpp.so.%{pcrecpp_major}*  %{_libdir}/libpcrecpp.so.%{pcrecpp_major}*
221    
# Line 172  rm -f %{buildroot}%{_bindir}/pcretest Line 230  rm -f %{buildroot}%{_bindir}/pcretest
230  %files -n %{develname}  %files -n %{develname}
231  %doc doc/html  %doc doc/html
232  %doc ChangeLog  %doc ChangeLog
233  %{_libdir}/lib*.so  %{_libdir}/libpcre.so
234  %{_includedir}/*.h  %{_libdir}/libpcre16.so
235    %{_libdir}/libpcre32.so
236    %{_includedir}/pcre.h
237    %{_includedir}/pcre_*.h
238  %{_libdir}/pkgconfig/libpcre.pc  %{_libdir}/pkgconfig/libpcre.pc
239  %{_libdir}/pkgconfig/libpcrecpp.pc  %{_libdir}/pkgconfig/libpcre16.pc
240  %{_libdir}/pkgconfig/libpcreposix.pc  %{_libdir}/pkgconfig/libpcre32.pc
241  %{_bindir}/pcre-config  %{_bindir}/pcre-config
242  %multiarch %{multiarch_bindir}/pcre-config  %multiarch %{multiarch_bindir}/pcre-config
243  %{_mandir}/man1/pcre-config.1*  %{_mandir}/man1/pcre-config.1*
244  %{_mandir}/man3/*.3*  %{_mandir}/man3/*.3*
245    %exclude %{_libdir}/libpcreposix.so
246    %exclude %{_mandir}/man3/pcreposix.3*
247    
248    %files -n %{develcpp}
249    %{_includedir}/pcrecpp*.h
250    %{_libdir}/libpcrecpp.so
251    %{_libdir}/pkgconfig/libpcrecpp.pc
252    %{_mandir}/man3/pcrecpp.3*
253    
254    %files -n %{develposix}
255    %{_includedir}/pcreposix.h
256    %{_libdir}/libpcreposix.so
257    %{_libdir}/pkgconfig/libpcreposix.pc
258    %{_mandir}/man3/pcreposix.3*

Legend:
Removed from v.323581  
changed lines
  Added in v.594784

  ViewVC Help
Powered by ViewVC 1.1.30