source: spec/trunk/SPECS/pcre.spec@ 1010

Last change on this file since 1010 was 168, checked in by Yuri Dario, 14 years ago

spec: massive rebuild due to new rpm lx parser updates (see changeset:167).

File size: 2.8 KB
Line 
1Name: pcre
2Version: 8.12
3Release: 2%{?dist}
4Summary: Perl-compatible regular expression library
5URL: http://www.pcre.org/
6Source: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.gz
7License: BSD
8Group: System Environment/Libraries
9
10Patch0: pcre-os2.diff
11
12BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
13# New libtool to get rid of rpath
14#BuildRequires: autoconf, automake, libtool
15
16%description
17Perl-compatible regular expression library.
18PCRE has its own native API, but a set of "wrapper" functions that are based on
19the POSIX API are also supplied in the library libpcreposix. Note that this
20just provides a POSIX calling interface to PCRE: the regular expressions
21themselves still follow Perl syntax and semantics. The header file
22for the POSIX-style functions is called pcreposix.h.
23
24%package devel
25Summary: Development files for %{name}
26Group: Development/Libraries
27Requires: %{name} = %{version}-%{release}
28
29%description devel
30Development files (Headers, libraries for dynamic linking, etc) for %{name}.
31
32%package static
33Summary: Static library for %{name}
34Group: Development/Libraries
35
36%description static
37Library for static linking for %{name}.
38
39%prep
40%setup -q
41# Get rid of rpath
42%patch0 -p1 -b .os2~
43
44#libtoolize --copy --force && autoreconf
45# One contributor's name is non-UTF-8
46#for F in ChangeLog; do
47# iconv -f latin1 -t utf8 "$F" >"${F}.utf8"
48# touch --reference "$F" "${F}.utf8"
49# mv "${F}.utf8" "$F"
50#done
51
52%build
53export CONFIG_SHELL="/bin/sh"
54export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
55%configure \
56 --disable-shared --enable-static \
57 --enable-newline-is-any \
58 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
59
60make %{?_smp_mflags}
61
62%install
63rm -rf $RPM_BUILD_ROOT
64
65make install DESTDIR=$RPM_BUILD_ROOT
66
67cp .libs/pcre_s.a $RPM_BUILD_ROOT%{_libdir}
68cp pcre*.dll $RPM_BUILD_ROOT%{_libdir}
69
70# libpcre.so.*() needed by grep during system start (bug #41104)
71#mkdir -p $RPM_BUILD_ROOT/%{_lib}
72#mv $RPM_BUILD_ROOT%{_libdir}/libpcre.so.* $RPM_BUILD_ROOT/%{_lib}/
73#pushd $RPM_BUILD_ROOT%{_libdir}
74#ln -fs ../../%{_lib}/libpcre.so.0 libpcre.so
75#popd
76
77# get rid of unneeded *.la files
78rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
79
80# These are handled by %%doc in %%files
81rm -rf $RPM_BUILD_ROOT%{_docdir}/pcre
82
83#%check
84#make check
85
86#%post -p /sbin/ldconfig
87
88#%postun -p /sbin/ldconfig
89
90%clean
91rm -rf $RPM_BUILD_ROOT
92
93%files
94%defattr(-,root,root)
95%{_libdir}/*.dll
96%{_mandir}/man1/*
97%{_bindir}/pcregrep.exe
98%{_bindir}/pcretest.exe
99%doc AUTHORS COPYING LICENCE NEWS README ChangeLog
100
101%files devel
102%defattr(-,root,root)
103%{_libdir}/*.dll
104%{_libdir}/*.a
105%{_libdir}/pkgconfig/*
106%{_includedir}/*.h
107%{_mandir}/man3/*
108%{_bindir}/pcre-config
109%doc doc/*.txt doc/html
110%doc HACKING
111
112%files static
113%defattr(-,root,root)
114%{_libdir}/pcre_s.a
115%doc COPYING LICENCE
116
117%changelog
Note: See TracBrowser for help on using the repository browser.