/[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 157599 by fwang, Mon Oct 24 02:18:31 2011 UTC revision 187740 by fwang, Mon Dec 26 07:09:01 2011 UTC
# Line 8  Line 8 
8    
9  Summary:        Perl-compatible regular expression library  Summary:        Perl-compatible regular expression library
10  Name:           pcre  Name:           pcre
11  Version:        8.20  Version:        8.21
12  Release:        %mkrel 1  Release:        %mkrel 1
13  License:        BSD-Style  License:        BSD-Style
14  Group:          File tools  Group:          File tools
15  URL:            http://www.pcre.org/  URL:            http://www.pcre.org/
16  Source0:        ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%name-%version.tar.bz2  Source0:        http://downloads.sourceforge.net/pcre/%{name}-%{version}.tar.bz2
17  Source1:        ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%name-%version.tar.bz2.sig  Source1:        http://downloads.sourceforge.net/pcre/%{name}-%{version}.tar.bz2.sig
18  Requires:       %{libname} = %{version}-%{release}  Requires:       %{libname} = %{version}-%{release}
19  BuildRequires:  automake  BuildRequires:  automake
20  Patch1:         pcre-0.6.5-fix-detect-into-kdelibs.patch  Patch1:         pcre-0.6.5-fix-detect-into-kdelibs.patch
# Line 98  export LC_ALL=C Line 98  export LC_ALL=C
98  make check  make check
99    
100  %install  %install
 rm -rf $RPM_BUILD_ROOT  
101  %if %{build_pcreposix_compat}  %if %{build_pcreposix_compat}
102  %makeinstall_std -C pcre-with-pcreposix_compat  %makeinstall_std -C pcre-with-pcreposix_compat
103  %endif  %endif
104  %makeinstall_std  %makeinstall_std
105    
106  %multiarch_binaries $RPM_BUILD_ROOT%{_bindir}/pcre-config  %multiarch_binaries %{buildroot}%{_bindir}/pcre-config
107    
108  mkdir -p $RPM_BUILD_ROOT/%_lib  mkdir -p %{buildroot}/%_lib
109  mv $RPM_BUILD_ROOT/%_libdir/lib%{name}.so.%{major}.* $RPM_BUILD_ROOT/%_lib  mv %{buildroot}/%_libdir/lib%{name}.so.%{major}.* $RPM_BUILD_ROOT/%_lib
110  cd $RPM_BUILD_ROOT/%_libdir  cd %{buildroot}/%_libdir
111  ln -s ../../%_lib/lib%{name}.so.%{major}.* .  ln -s ../../%_lib/lib%{name}.so.%{major}.* .
112    
113  # Remove unwanted files  # Remove unwanted files
114  rm -f $RPM_BUILD_ROOT/%_docdir/pcre/{AUTHORS,ChangeLog,COPYING,LICENCE,NEWS}  rm -f %{buildroot}/%_docdir/pcre/{AUTHORS,ChangeLog,COPYING,LICENCE,NEWS}
115  rm -f $RPM_BUILD_ROOT/%_docdir/pcre/{pcre-config.txt,pcre.txt,pcregrep.txt}  rm -f %{buildroot}/%_docdir/pcre/{pcre-config.txt,pcre.txt,pcregrep.txt}
116  rm -f $RPM_BUILD_ROOT/%_docdir/pcre/{pcretest.txt,README}  rm -f %{buildroot}/%_docdir/pcre/{pcretest.txt,README}
117  rm -rf $RPM_BUILD_ROOT/%_docdir/pcre/html  rm -rf %{buildroot}/%_docdir/pcre/html
118    rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/*.a
 %clean  
 rm -rf $RPM_BUILD_ROOT  
119    
120  %files  %files
 %defattr(-,root,root)  
   
121  %_mandir/man1/pcregrep.1*  %_mandir/man1/pcregrep.1*
122  %_mandir/man1/pcretest.1*  %_mandir/man1/pcretest.1*
123  %_bindir/pcregrep    %_bindir/pcregrep  
124  %_bindir/pcretest  %_bindir/pcretest
125    
   
 #  
126  %files -n %{libname}  %files -n %{libname}
 %defattr(-,root,root)  
127  %doc AUTHORS COPYING LICENCE NEWS README  %doc AUTHORS COPYING LICENCE NEWS README
   
128  /%_lib/lib*.so.%{major}*  /%_lib/lib*.so.%{major}*
129  %_libdir/lib*.so.%{major}*  %_libdir/lib*.so.%{major}*
130  %_libdir/libpcreposix.so.%{pcreposix_major}*  %_libdir/libpcreposix.so.%{pcreposix_major}*
131    
   
 #  
132  %files -n %{develname}  %files -n %{develname}
 %defattr(-,root,root)  
133  %doc doc/html  %doc doc/html
134  %doc ChangeLog  %doc ChangeLog
   
 %_libdir/lib*.a  
 %_libdir/lib*.la  
135  %_libdir/lib*.so  %_libdir/lib*.so
136  %_includedir/*.h  %_includedir/*.h
137  %_libdir/pkgconfig/libpcre.pc  %_libdir/pkgconfig/libpcre.pc
138  %_libdir/pkgconfig/libpcrecpp.pc  %_libdir/pkgconfig/libpcrecpp.pc
139  %_libdir/pkgconfig/libpcreposix.pc  %_libdir/pkgconfig/libpcreposix.pc
   
140  %_bindir/pcre-config  %_bindir/pcre-config
141  %multiarch %{multiarch_bindir}/pcre-config  %multiarch %{multiarch_bindir}/pcre-config
   
142  %_mandir/man1/pcre-config.1*  %_mandir/man1/pcre-config.1*
143  %_mandir/man3/*.3*  %_mandir/man3/*.3*
   
   

Legend:
Removed from v.157599  
changed lines
  Added in v.187740

  ViewVC Help
Powered by ViewVC 1.1.30