From f885806a8a28c63ce125ed06a91406f93838dd3ea96b23d7d63476b03e62f79c Mon Sep 17 00:00:00 2001 From: Dinar Valeev Date: Thu, 13 Jun 2013 22:07:39 +0000 Subject: [PATCH] Accepting request 178910 from home:jengelh:branches:network:telephony - Build and ship development documentation OBS-URL: https://build.opensuse.org/request/show/178910 OBS-URL: https://build.opensuse.org/package/show/network:telephony/ccrtp?expand=0&rev=14 --- ccrtp.changes | 5 +++++ ccrtp.spec | 47 ++++++++++++++++++++++++++++++++++------------- 2 files changed, 39 insertions(+), 13 deletions(-) diff --git a/ccrtp.changes b/ccrtp.changes index 5c08395..8a88708 100644 --- a/ccrtp.changes +++ b/ccrtp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 13 21:32:27 UTC 2013 - jengelh@inai.de + +- Build and ship development documentation + ------------------------------------------------------------------- Wed Jun 5 22:17:02 UTC 2013 - jengelh@inai.de diff --git a/ccrtp.spec b/ccrtp.spec index 4f9783e..a27a494 100644 --- a/ccrtp.spec +++ b/ccrtp.spec @@ -33,12 +33,16 @@ Source3: %name.keyring Patch1: 0001-build-properly-use-autotools.patch BuildRequires: autoconf BuildRequires: automake +BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: libgcrypt-devel BuildRequires: libstdc++-devel BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: ucommon-devel >= 5.0.0 +%if 0%{?suse_version} +BuildRequires: fdupes +%endif %if 0%{?suse_version} >= 1230 BuildRequires: gpg-offline %endif @@ -73,6 +77,17 @@ Obsoletes: libccrtp-devel < %version This package contains files needed when developing applications using ccrtp. +%package doc +Summary: Generated class documentation for ccrtp +Group: Documentation/HTML +%if 0%{?suse_version} >= 1130 || 0%{?fedora_version} +BuildArch: noarch +%endif + +%description doc +Generated class documentation for the ccrtp library from header +files, html browsable. + %prep %{?gpg_verify: %gpg_verify %{S:2}} %setup -q @@ -87,28 +102,34 @@ make %{?_smp_mflags} V=1; %install make install DESTDIR="%buildroot"; rm -f "%buildroot/%_libdir"/*.la; +%fdupes %buildroot/%_prefix %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig -%files -n %lname -%defattr(-,root,root,0755) -%{_libdir}/libccrtp*.so.2* - -%files devel -%defattr(-,root,root,0755) -%doc AUTHORS COPYING NEWS README TODO ChangeLog -%{_libdir}/libccrtp*.so -%{_libdir}/pkgconfig/libccrtp.pc -%dir %{_includedir}/ccrtp -%{_includedir}/ccrtp/*.h -%{_infodir}/ccrtp.info* - %post devel %install_info --info-dir=%{_infodir} %{_infodir}/ccrtp.info.gz %postun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/ccrtp.info.gz +%files -n %lname +%defattr(-,root,root,0755) +%doc COPYING +%{_libdir}/libccrtp*.so.2* + +%files devel +%defattr(-,root,root,0755) +%doc AUTHORS NEWS README TODO ChangeLog +%{_libdir}/libccrtp*.so +%{_libdir}/pkgconfig/libccrtp.pc +%dir %{_includedir}/ccrtp +%{_includedir}/ccrtp/*.h +%{_infodir}/ccrtp.info* + +%files doc +%defattr(-,root,root) +%doc doc/html/ + %changelog