SHA256
1
0
forked from pool/pcre2
Andreas Stieger 2017-08-05 17:34:46 +00:00 committed by Git OBS Bridge
parent c9faa7dc3e
commit 91ca403a03
2 changed files with 18 additions and 9 deletions

View File

@ -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

View File

@ -16,6 +16,7 @@
#
%define with_libedit 0%{?suse_version} > 1110
Name: pcre2
Version: 10.23
Release: 0
@ -34,10 +35,12 @@ BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libbz2-devel
BuildRequires: libedit-devel
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig
BuildRequires: zlib-devel
%if %{with_libedit}
BuildRequires: libedit-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -185,7 +188,9 @@ export LDFLAGS="-Wl,-z,relro,-z,now"
--enable-pcre2-32 \
--enable-pcre2grep-libz \
--enable-pcre2grep-libbz2 \
%if %{with_libedit}
--enable-pcre2test-libedit \
%endif
--enable-unicode
make %{?_smp_mflags} V=1
@ -201,19 +206,12 @@ export LANG=POSIX
make check -j1
%post -n libpcre2-8-0 -p /sbin/ldconfig
%postun -n libpcre2-8-0 -p /sbin/ldconfig
%post -n libpcre2-16-0 -p /sbin/ldconfig
%postun -n libpcre2-16-0 -p /sbin/ldconfig
%post -n libpcre2-32-0 -p /sbin/ldconfig
%postun -n libpcre2-32-0 -p /sbin/ldconfig
%post -n libpcre2-posix1 -p /sbin/ldconfig
%postun -n libpcre2-posix1 -p /sbin/ldconfig
%files -n libpcre2-8-0
@ -223,18 +221,22 @@ make check -j1
%files -n libpcre2-16-0
%defattr(-,root,root)
%doc LICENCE
%{_libdir}/libpcre2-16.so.*
%files -n libpcre2-32-0
%defattr(-,root,root)
%doc LICENCE
%{_libdir}/libpcre2-32.so.*
%files -n libpcre2-posix1
%defattr(-,root,root)
%doc LICENCE
%{_libdir}/libpcre2-posix.so.*
%files tools
%defattr(-,root,root)
%doc LICENCE
%{_bindir}/pcre2grep
%{_bindir}/pcre2test
%{_mandir}/man1/pcre2grep.*
@ -242,11 +244,13 @@ make check -j1
%files doc
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog LICENCE NEWS README
%doc doc/html doc/*.txt
%doc %{_defaultdocdir}/pcre2-doc
%files devel
%defattr(-,root,root)
%doc LICENCE
%{_bindir}/pcre2-config
%{_includedir}/*
%{_libdir}/*.so