/[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 95272 by ahmad, Fri May 6 01:16:19 2011 UTC revision 170356 by fwang, Mon Nov 21 06:42:24 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.12  Version:        8.20
12  Release:        %mkrel 3  Release:        %mkrel 2
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/
# Line 64  library. Line 64  library.
64  %setup -q  %setup -q
65  %patch1 -p1 -b .detect_into_kdelibs  %patch1 -p1 -b .detect_into_kdelibs
66  %patch2 -p0  %patch2 -p0
 #%patch3 -p0 -b .format_not_a_string_literal_and_no_format_arguments  
67    
68    
69  %if %{build_pcreposix_compat}  %if %{build_pcreposix_compat}
# Line 83  dirs="." Line 82  dirs="."
82  for i in $dirs; do  for i in $dirs; do
83    cd $i    cd $i
84    mkdir -p m4    mkdir -p m4
85    autoreconf -fis    autoreconf -fi
86    %configure2_5x --enable-utf8 --enable-unicode-properties    %configure2_5x --enable-utf8 --enable-unicode-properties
87    %make    %make
88    cd -    cd -
# Line 99  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  
# Line 132  rm -rf $RPM_BUILD_ROOT Line 126  rm -rf $RPM_BUILD_ROOT
126    
127  #  #
128  %files -n %{libname}  %files -n %{libname}
 %defattr(-,root,root)  
129  %doc AUTHORS COPYING LICENCE NEWS README  %doc AUTHORS COPYING LICENCE NEWS README
130    
131  /%_lib/lib*.so.%{major}*  /%_lib/lib*.so.%{major}*
# Line 142  rm -rf $RPM_BUILD_ROOT Line 135  rm -rf $RPM_BUILD_ROOT
135    
136  #  #
137  %files -n %{develname}  %files -n %{develname}
 %defattr(-,root,root)  
138  %doc doc/html  %doc doc/html
139  %doc ChangeLog  %doc ChangeLog
140    
 %_libdir/lib*.a  
 %_libdir/lib*.la  
141  %_libdir/lib*.so  %_libdir/lib*.so
142  %_includedir/*.h  %_includedir/*.h
143  %_libdir/pkgconfig/libpcre.pc  %_libdir/pkgconfig/libpcre.pc
# Line 159  rm -rf $RPM_BUILD_ROOT Line 149  rm -rf $RPM_BUILD_ROOT
149    
150  %_mandir/man1/pcre-config.1*  %_mandir/man1/pcre-config.1*
151  %_mandir/man3/*.3*  %_mandir/man3/*.3*
   
   

Legend:
Removed from v.95272  
changed lines
  Added in v.170356

  ViewVC Help
Powered by ViewVC 1.1.30