From c45a52631ff2ee0ea971c192a6ddb7cc2dc4ed37 Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Tue, 27 Oct 2020 17:45:55 +0100 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/libtevent.git#95788aa81b7e40998fdad42b8bc59f1d3ce7a282 --- libtevent.spec | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/libtevent.spec b/libtevent.spec index bf356b3..bfc456d 100644 --- a/libtevent.spec +++ b/libtevent.spec @@ -1,12 +1,14 @@ %if 0%{?fedora} || 0%{?rhel} > 7 -%global with_python3 1 +%bcond_without python3 +%else +%bcond_with python3 %endif %global talloc_version 2.3.0 Name: libtevent Version: 0.10.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: The tevent library License: LGPLv3+ URL: http://tevent.samba.org/ @@ -24,9 +26,10 @@ BuildRequires: doxygen BuildRequires: docbook-style-xsl BuildRequires: libxslt BuildRequires: gnupg2 -%if 0%{?with_python3} +%if %{with python3} BuildRequires: python3-devel BuildRequires: python3-talloc-devel >= %{talloc_version} +#endif with python %endif Provides: bundled(libreplace) @@ -48,7 +51,7 @@ Requires: libtalloc-devel%{?_isa} >= %{talloc_version} Header files needed to develop programs that link against the Tevent library. -%if 0%{?with_python3} +%if %{with python3} %package -n python3-tevent Summary: Python 3 bindings for the Tevent library Requires: libtevent%{?_isa} = %{version}-%{release} @@ -57,6 +60,7 @@ Requires: libtevent%{?_isa} = %{version}-%{release} %description -n python3-tevent Python 3 bindings for libtevent +#endif with python %endif %prep @@ -80,8 +84,8 @@ doxygen doxy.config # Install API docs rm -f doc/man/man3/todo* -mkdir -p $RPM_BUILD_ROOT/%{_mandir} -cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir} +install -d -m0755 %{buildroot}%{_mandir} +cp -a doc/man/man3 %{buildroot}%{_mandir} %files %{_libdir}/libtevent.so.* @@ -92,7 +96,7 @@ cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir} %{_libdir}/pkgconfig/tevent.pc %{_mandir}/man3/tevent*.gz -%if 0%{?with_python3} +%if %{with python3} %files -n python3-tevent %{python3_sitearch}/tevent.py %{python3_sitearch}/__pycache__/tevent.* @@ -102,6 +106,9 @@ cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir} %ldconfig_scriptlets %changelog +* Thu Oct 22 2020 Andreas Schneider - 0.10.2-6 +- Spec file cleanup and improvements + * Tue Jul 28 2020 Fedora Release Engineering - 0.10.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild