- fix SLE 11 build
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/pcre2?expand=0&rev=19
This commit is contained in:
parent
c9faa7dc3e
commit
91ca403a03
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 5 17:34:26 UTC 2017 - astieger@suse.com
|
||||||
|
|
||||||
|
- fix SLE 11 build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 2 17:28:30 UTC 2017 - astieger@suse.com
|
Tue May 2 17:28:30 UTC 2017 - astieger@suse.com
|
||||||
|
|
||||||
|
22
pcre2.spec
22
pcre2.spec
@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define with_libedit 0%{?suse_version} > 1110
|
||||||
Name: pcre2
|
Name: pcre2
|
||||||
Version: 10.23
|
Version: 10.23
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -34,10 +35,12 @@ BuildRequires: autoconf
|
|||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libbz2-devel
|
BuildRequires: libbz2-devel
|
||||||
BuildRequires: libedit-devel
|
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
%if %{with_libedit}
|
||||||
|
BuildRequires: libedit-devel
|
||||||
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -185,7 +188,9 @@ export LDFLAGS="-Wl,-z,relro,-z,now"
|
|||||||
--enable-pcre2-32 \
|
--enable-pcre2-32 \
|
||||||
--enable-pcre2grep-libz \
|
--enable-pcre2grep-libz \
|
||||||
--enable-pcre2grep-libbz2 \
|
--enable-pcre2grep-libbz2 \
|
||||||
|
%if %{with_libedit}
|
||||||
--enable-pcre2test-libedit \
|
--enable-pcre2test-libedit \
|
||||||
|
%endif
|
||||||
--enable-unicode
|
--enable-unicode
|
||||||
make %{?_smp_mflags} V=1
|
make %{?_smp_mflags} V=1
|
||||||
|
|
||||||
@ -201,19 +206,12 @@ export LANG=POSIX
|
|||||||
make check -j1
|
make check -j1
|
||||||
|
|
||||||
%post -n libpcre2-8-0 -p /sbin/ldconfig
|
%post -n libpcre2-8-0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libpcre2-8-0 -p /sbin/ldconfig
|
%postun -n libpcre2-8-0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libpcre2-16-0 -p /sbin/ldconfig
|
%post -n libpcre2-16-0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libpcre2-16-0 -p /sbin/ldconfig
|
%postun -n libpcre2-16-0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libpcre2-32-0 -p /sbin/ldconfig
|
%post -n libpcre2-32-0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libpcre2-32-0 -p /sbin/ldconfig
|
%postun -n libpcre2-32-0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libpcre2-posix1 -p /sbin/ldconfig
|
%post -n libpcre2-posix1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libpcre2-posix1 -p /sbin/ldconfig
|
%postun -n libpcre2-posix1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libpcre2-8-0
|
%files -n libpcre2-8-0
|
||||||
@ -223,18 +221,22 @@ make check -j1
|
|||||||
|
|
||||||
%files -n libpcre2-16-0
|
%files -n libpcre2-16-0
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc LICENCE
|
||||||
%{_libdir}/libpcre2-16.so.*
|
%{_libdir}/libpcre2-16.so.*
|
||||||
|
|
||||||
%files -n libpcre2-32-0
|
%files -n libpcre2-32-0
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc LICENCE
|
||||||
%{_libdir}/libpcre2-32.so.*
|
%{_libdir}/libpcre2-32.so.*
|
||||||
|
|
||||||
%files -n libpcre2-posix1
|
%files -n libpcre2-posix1
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc LICENCE
|
||||||
%{_libdir}/libpcre2-posix.so.*
|
%{_libdir}/libpcre2-posix.so.*
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc LICENCE
|
||||||
%{_bindir}/pcre2grep
|
%{_bindir}/pcre2grep
|
||||||
%{_bindir}/pcre2test
|
%{_bindir}/pcre2test
|
||||||
%{_mandir}/man1/pcre2grep.*
|
%{_mandir}/man1/pcre2grep.*
|
||||||
@ -242,11 +244,13 @@ make check -j1
|
|||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc AUTHORS COPYING ChangeLog LICENCE NEWS README
|
||||||
%doc doc/html doc/*.txt
|
%doc doc/html doc/*.txt
|
||||||
%doc %{_defaultdocdir}/pcre2-doc
|
%doc %{_defaultdocdir}/pcre2-doc
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc LICENCE
|
||||||
%{_bindir}/pcre2-config
|
%{_bindir}/pcre2-config
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
Loading…
Reference in New Issue
Block a user