Browse Source

libtevent-0.9.36-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11584 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 6 years ago
parent
commit
217adec3d8
1 changed files with 34 additions and 9 deletions
  1. 34 9
      lib/libt/libtevent/libtevent-vl.spec

+ 34 - 9
lib/libt/libtevent/libtevent-vl.spec

@@ -3,7 +3,7 @@
 Name: libtevent
 Summary: The tevent library
 Summary(ja): Tevent ライブラリ
-Version: 0.9.32
+Version: 0.9.36
 Release: 1%{?_dist_release}
 Group: System Environment/Libraries
 License: LGPLv3+
@@ -14,8 +14,10 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 Patch1: tevent-098-add_abi_scripts_and_fix_exports.patch
 
 BuildRequires: libtalloc-devel >= 2.0.0
-BuildRequires: python-devel
-BuildRequires: pytalloc-devel
+BuildRequires: python-devel python-rpm-macros
+BuildRequires: python3-devel python3-rpm-macros
+BuildRequires: python-talloc-devel
+BuildRequires: python3-talloc-devel
 
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -44,13 +46,24 @@ Summary: Python bindings for the Tevent library
 Summary(ja): Tevent ライブラリの python バインディング
 Group: System Environment/Libraries
 Requires: libtevent = %{version}-%{release}
-Requires: pytalloc >= 2.0.0
+Requires: python-talloc >= 2.0.0
 Requires: pkgconfig
 
 %description -n python-tevent
 Python bindings for libtevent
 
-%if %build_compat32
+%package -n python3-tevent
+Summary: Python3 bindings for the Tevent library
+Summary(ja): Tevent ライブラリの python3 バインディング
+Group: System Environment/Libraries
+Requires: libtevent = %{version}-%{release}
+Requires: python3-talloc >= 2.0.0
+Requires: pkgconfig
+
+%description -n python3-tevent
+Python3 bindings for libtevent
+
+%if %{build_compat32}
 
 %package -n compat32-%{name}
 Summary: The tevent library
@@ -69,11 +82,14 @@ tevent_req (Tevent Request) functions.
 %prep
 %setup -q -n tevent-%{version}
 
-%patch1 -p1 -b .abi_checks
-
 %build
 %configure
-make %{?_smp_mflags}
+%configure --disable-rpath \
+	--bundled-libraries=NONE \
+	--builtin-libraries=replace \
+	--extra-python=%{__python3}
+
+make %{?_smp_mflags} V=1
 
 %check
 make %{?_smp_mflags} check
@@ -105,7 +121,11 @@ rm -rf $RPM_BUILD_ROOT
 %{python_sitearch}/_tevent.so
 %{python_sitearch}/tevent.py
 
-%if %build_compat32
+%files -n python3-tevent
+%{python3_sitearch}/tevent.py
+%{python3_sitearch}/_tevent.cpython*.so
+
+%if %{build_compat32}
 
 %files -n compat32-%{name}
 %defattr(-,root,root,-)
@@ -130,6 +150,11 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Tue Feb 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.36-1
+- new upstream release.
+- dropped Patch1.
+- enabled python3 modules.
+
 * Sat Jul 15 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.32-1
 - new upstream release.