]> git.pld-linux.org Git - packages/crossmingw32-pcre.git/blame - crossmingw32-pcre.spec
- updated to 8.37
[packages/crossmingw32-pcre.git] / crossmingw32-pcre.spec
CommitLineData
2876ab7f 1%define realname pcre
d9829e32
JB
2Summary: Perl-Compatible Regular Expression library - MinGW32 cross version
3Summary(pl.UTF-8): Biblioteka perlowych wyrażeń regularnych - wersja skrośna dla MinGW32
2876ab7f 4Name: crossmingw32-%{realname}
7a875c6b
JB
5Version: 8.37
6Release: 1
b7e23f90 7License: BSD (see LICENCE)
24089856 8Group: Development/Libraries
2876ab7f 9Source0: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{realname}-%{version}.tar.bz2
7a875c6b 10# Source0-md5: ed91be292cb01d21bc7e526816c26981
a8625b8f 11URL: http://www.pcre.org/
07565286 12BuildRequires: autoconf >= 2.57
2876ab7f 13BuildRequires: automake
c09a8252 14BuildRequires: crossmingw32-gcc-c++
2876ab7f 15BuildRequires: crossmingw32-w32api
cc3e5e61 16BuildRequires: libtool >= 2:2
c09a8252 17Requires: crossmingw32-runtime
2876ab7f 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define no_install_post_strip 1
21
22%define target i386-mingw32
23%define target_platform i386-pc-mingw32
24089856
JB
24
25%define _prefix /usr/%{target}
2f7fb64a 26%define _libdir %{_prefix}/lib
24089856
JB
27%define _pkgconfigdir %{_prefix}/lib/pkgconfig
28%define _dlldir /usr/share/wine/windows/system
2876ab7f 29%define __cc %{target}-gcc
30%define __cxx %{target}-g++
4d0dc3a0 31%define __pkgconfig_provides %{nil}
38c769b0 32%define __pkgconfig_requires %{nil}
2876ab7f 33
e810adc9
JB
34%ifnarch %{ix86}
35# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
1bb0a7f6 36%define optflags -O2
37%endif
38b25bc4 38# -z options are invalid for mingw linker, most of -f options are Linux-specific
e810adc9 39%define filterout_ld -Wl,-z,.*
38b25bc4 40%define filterout_c -f[-a-z0-9=]*
a15d2725 41%define filterout_cxx -f[-a-z0-9=]*
1bb0a7f6 42
2876ab7f 43%description
44PCRE stands for the Perl Compatible Regular Expression library. It
45contains routines to match text against regular expressions similar to
46Perl's. It also contains a POSIX compatibility library.
47
3dc1d236
JR
48%description -l pl.UTF-8
49PCRE (Perl-Compatible Regular Expression) oznacza bibliotekę wyrażeń
50regularnych kompatybilnych z perlowymi. Zawiera funkcje dopasowujące
51tekst do wyrażeń regularnych podobnych do tych znanych z Perla.
52Zawiera także bibliotekę kompatybilną z POSIX.
2876ab7f 53
24089856 54%package static
d9829e32
JB
55Summary: Static PCRE libraries (cross MinGW32 version)
56Summary(pl.UTF-8): Statyczne biblioteki PCRE (wersja skrośna MinGW32)
24089856
JB
57Group: Development/Libraries
58Requires: %{name} = %{version}-%{release}
59
60%description static
d9829e32 61Static PCRE libraries (cross MinGW32 version).
24089856
JB
62
63%description static -l pl.UTF-8
d9829e32 64Statyczne biblioteki PCRE (wersja skrośna MinGW32).
24089856 65
2876ab7f 66%package dll
481ebdca 67Summary: %{realname} - DLL libraries for Windows
627f2614 68Summary(pl.UTF-8): %{realname} - biblioteki DLL dla Windows
2876ab7f 69Group: Applications/Emulators
24089856 70Requires: wine
2876ab7f 71
72%description dll
481ebdca 73%{realname} - DLL libraries for Windows.
2876ab7f 74
3dc1d236 75%description dll -l pl.UTF-8
481ebdca 76%{realname} - biblioteki DLL dla Windows.
2876ab7f 77
78%prep
79%setup -q -n %{realname}-%{version}
2876ab7f 80
81%build
2876ab7f 82%{__libtoolize}
9e8e4d2d 83%{__aclocal} -I m4
2876ab7f 84%{__autoconf}
24089856
JB
85%{__autoheader}
86%{__automake}
2876ab7f 87%configure \
24089856 88 --host=%{target} \
1bb0a7f6 89 --target=%{target} \
7a875c6b 90 --disable-silent-rules \
efbabe07 91 --enable-pcre16 \
24089856
JB
92 --enable-unicode-properties \
93 --enable-utf8
94
95%{__make}
96
97%install
98rm -rf $RPM_BUILD_ROOT
2876ab7f 99
24089856
JB
100%{__make} install \
101 DESTDIR=$RPM_BUILD_ROOT
1bb0a7f6 102
24089856
JB
103install -d $RPM_BUILD_ROOT%{_dlldir}
104mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
2876ab7f 105
106%if 0%{!?debug:1}
24089856
JB
107%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
108%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
2876ab7f 109%endif
110
efbabe07 111%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{doc,man}
2876ab7f 112
113%clean
114rm -rf $RPM_BUILD_ROOT
115
116%files
117%defattr(644,root,root,755)
24089856
JB
118%doc AUTHORS ChangeLog LICENCE NEWS NON-UNIX-USE README
119%{_libdir}/libpcre.dll.a
efbabe07 120%{_libdir}/libpcre16.dll.a
24089856
JB
121%{_libdir}/libpcrecpp.dll.a
122%{_libdir}/libpcreposix.dll.a
123%{_libdir}/libpcre.la
efbabe07 124%{_libdir}/libpcre16.la
24089856
JB
125%{_libdir}/libpcrecpp.la
126%{_libdir}/libpcreposix.la
127%{_includedir}/pcre*.h
128%{_pkgconfigdir}/libpcre.pc
efbabe07 129%{_pkgconfigdir}/libpcre16.pc
24089856 130%{_pkgconfigdir}/libpcrecpp.pc
59b8d627 131%{_pkgconfigdir}/libpcreposix.pc
24089856
JB
132
133%files static
134%defattr(644,root,root,755)
135%{_libdir}/libpcre.a
efbabe07 136%{_libdir}/libpcre16.a
24089856
JB
137%{_libdir}/libpcrecpp.a
138%{_libdir}/libpcreposix.a
2876ab7f 139
140%files dll
141%defattr(644,root,root,755)
efbabe07
JB
142%{_dlldir}/libpcre-1.dll
143%{_dlldir}/libpcre16-0.dll
144%{_dlldir}/libpcrecpp-0.dll
145%{_dlldir}/libpcreposix-0.dll
This page took 0.307001 seconds and 4 git commands to generate.