Accepting request 768750 from home:mimi_vx:branches:devel:libraries:c_c++
- remove python2 bindings OBS-URL: https://build.opensuse.org/request/show/768750 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tre?expand=0&rev=19
This commit is contained in:
parent
5918c9cc94
commit
65f299c423
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 30 14:03:39 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- remove python2 bindings
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 16 16:08:41 UTC 2018 - kbabioch@suse.com
|
Tue Jan 16 16:08:41 UTC 2018 - kbabioch@suse.com
|
||||||
|
|
||||||
|
49
tre.spec
49
tre.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package tre
|
# spec file for package tre
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ Release: 0
|
|||||||
Summary: POSIX compatible regexp library with approximate matching
|
Summary: POSIX compatible regexp library with approximate matching
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Url: http://laurikari.net/tre/
|
URL: https://laurikari.net/tre/
|
||||||
# This source comes from https://github.com/laurikari/tre/, revision
|
# This source comes from https://github.com/laurikari/tre/, revision
|
||||||
# c2f5d130c91b1696385a6ae0b5bcfd5214bcc9ca. The previously released
|
# c2f5d130c91b1696385a6ae0b5bcfd5214bcc9ca. The previously released
|
||||||
# version 0.8.0 is old (2009) and no new released have been made by
|
# version 0.8.0 is old (2009) and no new released have been made by
|
||||||
@ -35,9 +35,6 @@ Patch1: %{name}-chicken.patch
|
|||||||
Patch2: CVE-2016-8859.patch
|
Patch2: CVE-2016-8859.patch
|
||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkgconfig
|
|
||||||
BuildRequires: python-devel
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
TRE is a lightweight, robust, and efficient POSIX compatible regexp
|
TRE is a lightweight, robust, and efficient POSIX compatible regexp
|
||||||
@ -48,9 +45,9 @@ matching.
|
|||||||
Summary: POSIX compatible regexp library with approximate matching
|
Summary: POSIX compatible regexp library with approximate matching
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
Recommends: %{name}-lang = %{version}
|
||||||
Obsoletes: libtre
|
Obsoletes: libtre
|
||||||
Provides: libtre
|
Provides: libtre
|
||||||
Recommends: %{name}-lang = %{version}
|
|
||||||
|
|
||||||
%description -n libtre5
|
%description -n libtre5
|
||||||
TRE is a lightweight, robust, and efficient POSIX compatible regexp
|
TRE is a lightweight, robust, and efficient POSIX compatible regexp
|
||||||
@ -58,7 +55,6 @@ matching library with some exciting features such as approximate
|
|||||||
matching.
|
matching.
|
||||||
|
|
||||||
%post -n libtre5 -p /sbin/ldconfig
|
%post -n libtre5 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libtre5 -p /sbin/ldconfig
|
%postun -n libtre5 -p /sbin/ldconfig
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
@ -81,16 +77,8 @@ Group: Productivity/Text/Utilities
|
|||||||
agrep is another powerful grep which has the ability to search for
|
agrep is another powerful grep which has the ability to search for
|
||||||
approximate patterns as well as block oriented search.
|
approximate patterns as well as block oriented search.
|
||||||
|
|
||||||
%package -n python-%{name}
|
|
||||||
Summary: Python bindings for the tre library
|
|
||||||
Group: System/Libraries
|
|
||||||
|
|
||||||
%description -n python-%{name}
|
|
||||||
This package contains the python bindings for the TRE library.
|
|
||||||
|
|
||||||
%lang_package
|
%lang_package
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
@ -101,47 +89,32 @@ This package contains the python bindings for the TRE library.
|
|||||||
%build
|
%build
|
||||||
%configure --disable-static --enable-shared
|
%configure --disable-static --enable-shared
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
pushd python
|
|
||||||
python setup.py build
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
%make_install
|
||||||
pushd python
|
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
||||||
popd
|
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
%find_lang %{name} || echo -n >> %{name}.lang
|
%find_lang %{name} || echo -n >> %{name}.lang
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check %{?_smp_mflags}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr (-, root, root)
|
%license LICENSE
|
||||||
%doc ABOUT-NLS AUTHORS LICENSE NEWS README THANKS TODO
|
%doc ABOUT-NLS AUTHORS NEWS README THANKS TODO
|
||||||
|
|
||||||
%files -n libtre5
|
%files -n libtre5
|
||||||
%defattr (-, root, root)
|
|
||||||
%{_libdir}/libtre.so.*
|
%{_libdir}/libtre.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr (-, root, root)
|
|
||||||
%doc doc/default.css doc/tre-api.html doc/tre-syntax.html
|
%doc doc/default.css doc/tre-api.html doc/tre-syntax.html
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/libtre.so
|
%{_libdir}/libtre.so
|
||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
|
|
||||||
%files -n agrep
|
%files -n agrep
|
||||||
%defattr (-, root, root)
|
|
||||||
%{_bindir}/agrep
|
%{_bindir}/agrep
|
||||||
%{_mandir}/man1/agrep.1.gz
|
%{_mandir}/man1/agrep.1%{?ext_man}
|
||||||
|
|
||||||
%files -n python-%{name}
|
|
||||||
%defattr (-, root, root)
|
|
||||||
%{python_sitearch}/tre.so
|
|
||||||
%{python_sitearch}/*.egg-info
|
|
||||||
|
|
||||||
%files lang -f %{name}.lang
|
%files lang -f %{name}.lang
|
||||||
%defattr(-,root,root,-)
|
|
||||||
|
|
||||||
%check
|
|
||||||
make check %{?_smp_mflags}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user