From bb9a6c1178e22a401412ca7e35d30aea81bcd4a4 Mon Sep 17 00:00:00 2001 From: Sebastien Willmann Date: Fri, 15 Feb 2013 12:22:21 +0100 Subject: [PATCH] Added doc subpackage --- jsoncpp.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/jsoncpp.spec b/jsoncpp.spec index f1cee06..8b92b98 100644 --- a/jsoncpp.spec +++ b/jsoncpp.spec @@ -4,7 +4,7 @@ Name: jsoncpp Version: %{src_release} -Release: 0.7.%{src_prerelease}%{?dist} +Release: 0.8.%{src_prerelease}%{?dist} Summary: An implementation of a JSON reader and writer in C++ Group: System Environment/Libraries License: Public Domain or MIT @@ -21,6 +21,7 @@ C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. + %package devel Summary: Development headers and library for %{name} Group: Development/Libraries @@ -30,6 +31,15 @@ Requires: %{name}%{?_isa} = %{version}-%{release} This package contains the development headers and library for %{name}. +%package doc +Summary: Documentation for %{name} +Group: Documentation +BuildArch: noarch + +%description doc +This package contains the documentation for %{name} + + %prep %setup -q -n %{name}-src-%{src_version} grep -e "-Wall" SConstruct @@ -70,9 +80,14 @@ sed -i 's|@@LIBDIR@@|%{_libdir}|g' $RPM_BUILD_ROOT%{_libdir}/pkgconfig/jsoncpp.p %{_libdir}/lib%{name}.so %{_includedir}/%{name}/ %{_libdir}/pkgconfig/jsoncpp.pc + +%files doc %{_docdir}/%{name} %changelog +* Fri Feb 15 2013 Sebastien Willmann - 0.6.0-0.8.rc2 +- Added documentation sub-package + * Sun Jan 20 2013 Sebastien Willmann - 0.6.0-0.7.rc2 - Added graphviz as a BuildRequire