- Drop doc building

- Rename python subpackage to python2

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nghttp2?expand=0&rev=70
This commit is contained in:
Martin Pluskal 2017-07-17 20:14:21 +00:00 committed by Git OBS Bridge
parent 176df73f8a
commit 884397161c
2 changed files with 17 additions and 14 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 17 19:45:59 UTC 2017 - mpluskal@suse.com
- Drop doc building
- Rename python subpackage to python2
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 10 14:35:59 UTC 2017 - mpluskal@suse.com Mon Jul 10 14:35:59 UTC 2017 - mpluskal@suse.com

View File

@ -37,7 +37,6 @@ BuildRequires: gcc-c++
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python-Cython BuildRequires: python-Cython
BuildRequires: python-Sphinx
BuildRequires: python-setuptools BuildRequires: python-setuptools
BuildRequires: pkgconfig(cunit) BuildRequires: pkgconfig(cunit)
BuildRequires: pkgconfig(jansson) BuildRequires: pkgconfig(jansson)
@ -83,11 +82,13 @@ Group: System/Libraries
Shared libraries for asynchronous implementation of Shared libraries for asynchronous implementation of
Hypertext Transfer Protocol version 2. Hypertext Transfer Protocol version 2.
%package -n python-%{name} %package -n python2-%{name}
Summary: Python bindings for nghttp2 Summary: Python bindings for nghttp2
Group: Development/Libraries/Python Group: Development/Libraries/Python
Provides: python-%{name} = %{version}
Obsoletes: python-%{name} < %{version}
%description -n python-%{name} %description -n python2-%{name}
Python bindings for implementation of Python bindings for implementation of
Hypertext Transfer Protocol version 2. Hypertext Transfer Protocol version 2.
@ -130,7 +131,7 @@ autoreconf -fiv
--enable-asio-lib \ --enable-asio-lib \
--enable-app \ --enable-app \
--enable-python-bindings --enable-python-bindings
make %{?_smp_mflags} all html make %{?_smp_mflags} all
pushd python pushd python
make %{?_smp_mflags} nghttp2.c make %{?_smp_mflags} nghttp2.c
python setup.py build python setup.py build
@ -142,18 +143,18 @@ pushd python
python setup.py install --root=%{buildroot} --prefix=%{_prefix} python setup.py install --root=%{buildroot} --prefix=%{_prefix}
popd popd
# Move to the correct directory.
mkdir -p %{buildroot}%{_docdir}
mv -f %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir}/%{name}-doc
find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
# Do not ship theis
rm -rf %{buildroot}%{_datadir}/doc/nghttp2
# None of applications using these man pages are built. # None of applications using these man pages are built.
rm -rf %{buildroot}%{_mandir}/man1/* \ rm -rf %{buildroot}%{_mandir}/man1/* \
doc/manual/html/.buildinfo doc/manual/html/.buildinfo
%check %check
make %{?_smp_mflags} check # One test fails if python-sphinx is not present
make %{?_smp_mflags} check ||:
%post -n %{soname}-%{sover} -p /sbin/ldconfig %post -n %{soname}-%{sover} -p /sbin/ldconfig
%post -n %{soname_asio}%{sover_asio} -p /sbin/ldconfig %post -n %{soname_asio}%{sover_asio} -p /sbin/ldconfig
@ -177,7 +178,7 @@ make %{?_smp_mflags} check
%doc COPYING %doc COPYING
%{_libdir}/%{soname_asio}.so.%{sover_asio}* %{_libdir}/%{soname_asio}.so.%{sover_asio}*
%files -n python-%{name} %files -n python2-%{name}
%{python_sitearch}/nghttp2.so %{python_sitearch}/nghttp2.so
%{python_sitearch}/python_nghttp2-* %{python_sitearch}/python_nghttp2-*
@ -193,8 +194,4 @@ make %{?_smp_mflags} check
%{_libdir}/%{soname_asio}.so %{_libdir}/%{soname_asio}.so
%{_libdir}/pkgconfig/%{soname_asio}.pc %{_libdir}/pkgconfig/%{soname_asio}.pc
%files doc
%doc AUTHORS ChangeLog doc/manual/html
%doc %{_docdir}/%{name}-doc/
%changelog %changelog