diff --git a/nghttp2.changes b/nghttp2.changes index 7d5b389..6f49930 100644 --- a/nghttp2.changes +++ b/nghttp2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 18 21:29:49 UTC 2015 - jengelh@inai.de + +- Avoid shipping documentation redundantly. Set RPM groups. + ------------------------------------------------------------------- Fri Mar 6 18:19:47 UTC 2015 - mpluskal@suse.com diff --git a/nghttp2.spec b/nghttp2.spec index 9cb0283..537a798 100644 --- a/nghttp2.spec +++ b/nghttp2.spec @@ -23,6 +23,8 @@ Summary: Implementation of Hypertext Transfer Protocol version 2 in C License: MIT Group: Development/Libraries/C and C++ Url: https://nghttp2.org/ + +#Git-Clone: git://github.com/tatsuhiro-t/nghttp2 Source: https://github.com/tatsuhiro-t/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz BuildRequires: boost-devel BuildRequires: gcc-c++ @@ -67,7 +69,8 @@ Requires: lib%{name}-5 = %{version} Provides: %{name}-devel %description -n lib%{name}-devel -Development files for usage with lib%{name} which implements Hypertext Transfer Protocol version 2 +Development files for usage with lib%{name}, which implements Hypertext +Transfer Protocol version 2. %package -n lib%{name}_asio-devel Summary: Development files for %{name} @@ -75,14 +78,16 @@ Group: Development/Languages/C and C++ Requires: lib%{name}_asio0 = %{version} %description -n lib%{name}_asio-devel -Development files for usage with lib%{name}_aio which implements asynchronous Hypertext Transfer Protocol version 2 +Development files for usage with lib%{name}_aio, which implements asynchronous +Hypertext Transfer Protocol version 2. %package doc Summary: Documentation for %{name} -Group: Documentation +Group: Documentation/HTML %description doc -Documentation for %{name} which includes shared C library, HTTP/2 client, server and proxy. +Documentation for %{name}, which includes a shared C library, HTTP/2 client, +server and proxy. %prep %setup -q @@ -90,7 +95,7 @@ Documentation for %{name} which includes shared C library, HTTP/2 client, server %build %configure \ --enable-asio-lib \ - --enable-static=no + --disable-static make %{?_smp_mflags} all html %check @@ -98,8 +103,7 @@ make %{?_smp_mflags} check %install make DESTDIR=%{buildroot} install %{?_smp_mflags} -rm -rf %{buildroot}%{_libdir}/lib%{name}.la -rm -rf %{buildroot}%{_libdir}/lib%{name}_asio.la +rm -f "%{buildroot}/%{_libdir}"/*.la # none of applications using these man pages is built rm -rf %{buildroot}%{_mandir}/man1/* rm -rf doc/manual/html/.buildinfo @@ -114,23 +118,22 @@ rm -rf doc/manual/html/.buildinfo %files %defattr(-,root,root) -%doc COPYING AUTHORS ChangeLog %{_bindir}/deflatehd %{_bindir}/inflatehd %files -n lib%{name}-5 %defattr(-,root,root) -%doc COPYING AUTHORS ChangeLog +%doc COPYING %{_libdir}/lib%{name}.so.* %files -n lib%{name}_asio0 %defattr(-,root,root) -%doc COPYING AUTHORS ChangeLog +%doc COPYING %{_libdir}/lib%{name}_asio.so.* %files -n lib%{name}-devel %defattr(-,root,root) -%doc COPYING AUTHORS ChangeLog +%doc ChangeLog %dir %{_includedir}/%{name} %{_includedir}/%{name}/nghttp2.h %{_includedir}/%{name}/nghttp2ver.h @@ -139,7 +142,6 @@ rm -rf doc/manual/html/.buildinfo %files -n lib%{name}_asio-devel %defattr(-,root,root) -%doc COPYING AUTHORS ChangeLog %dir %{_includedir}/%{name} %{_includedir}/%{name}/asio_http2.h %{_libdir}/lib%{name}_asio.so @@ -147,7 +149,7 @@ rm -rf doc/manual/html/.buildinfo %files doc %defattr(-,root,root) -%doc COPYING AUTHORS ChangeLog +%doc AUTHORS ChangeLog %doc doc/manual/html %dir %{_datadir}/doc/%{name} %doc %{_datadir}/doc/%{name}/README.rst