- 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:
parent
176df73f8a
commit
884397161c
@ -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
|
||||
|
||||
|
25
nghttp2.spec
25
nghttp2.spec
@ -37,7 +37,6 @@ BuildRequires: gcc-c++
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-Cython
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: pkgconfig(cunit)
|
||||
BuildRequires: pkgconfig(jansson)
|
||||
@ -83,11 +82,13 @@ Group: System/Libraries
|
||||
Shared libraries for asynchronous implementation of
|
||||
Hypertext Transfer Protocol version 2.
|
||||
|
||||
%package -n python-%{name}
|
||||
%package -n python2-%{name}
|
||||
Summary: Python bindings for nghttp2
|
||||
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
|
||||
Hypertext Transfer Protocol version 2.
|
||||
|
||||
@ -130,7 +131,7 @@ autoreconf -fiv
|
||||
--enable-asio-lib \
|
||||
--enable-app \
|
||||
--enable-python-bindings
|
||||
make %{?_smp_mflags} all html
|
||||
make %{?_smp_mflags} all
|
||||
pushd python
|
||||
make %{?_smp_mflags} nghttp2.c
|
||||
python setup.py build
|
||||
@ -142,18 +143,18 @@ pushd python
|
||||
python setup.py install --root=%{buildroot} --prefix=%{_prefix}
|
||||
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
|
||||
|
||||
# Do not ship theis
|
||||
rm -rf %{buildroot}%{_datadir}/doc/nghttp2
|
||||
|
||||
# None of applications using these man pages are built.
|
||||
rm -rf %{buildroot}%{_mandir}/man1/* \
|
||||
doc/manual/html/.buildinfo
|
||||
|
||||
%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_asio}%{sover_asio} -p /sbin/ldconfig
|
||||
@ -177,7 +178,7 @@ make %{?_smp_mflags} check
|
||||
%doc COPYING
|
||||
%{_libdir}/%{soname_asio}.so.%{sover_asio}*
|
||||
|
||||
%files -n python-%{name}
|
||||
%files -n python2-%{name}
|
||||
%{python_sitearch}/nghttp2.so
|
||||
%{python_sitearch}/python_nghttp2-*
|
||||
|
||||
@ -193,8 +194,4 @@ make %{?_smp_mflags} check
|
||||
%{_libdir}/%{soname_asio}.so
|
||||
%{_libdir}/pkgconfig/%{soname_asio}.pc
|
||||
|
||||
%files doc
|
||||
%doc AUTHORS ChangeLog doc/manual/html
|
||||
%doc %{_docdir}/%{name}-doc/
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user