From 218df59a4771c727c09e59e17892f32d95673081 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Wed, 7 Nov 2012 23:17:32 +0100 Subject: [PATCH] templates/standard: add a devel subpackage Signed-off-by: Davide Madrisan --- ChangeLog | 4 ++++ templates/standard | 30 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/ChangeLog b/ChangeLog index eb23d1e..45b8ec0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21,6 +21,10 @@ Fri Nov 09 2012 Davide Madrisan * plugins/pck-update.in - Silvan Calarco: Restore build requirement detection for *.so requirements ++ improvement + * templates/standard - Davide Madrisan: + Add a devel subpackage. + ------------------------------------------------------------------------------- Changes in version 1.14.0 diff --git a/templates/standard b/templates/standard index 5444135..a749f86 100644 --- a/templates/standard +++ b/templates/standard @@ -24,6 +24,17 @@ BuildRoot: @rpm_default_buildroot@ %description ... +@if:pck_devel +## remove the following two blocks if there's no devel files +%package devel +Group: ... +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. +@fi:pck_devel + @if:pck_apidocs %package apidocs Group: Documentation @@ -91,6 +102,25 @@ exit 0 ## note: eventually add the remaining documents (if any) # @standard_docs_devel@ +@if:pck_devel +## remove this block if there's no devel files +%files devel +%defattr(-,root,root) +## note: this list is just an example; modify as required +# %{_datadir}/aclocal/*.m4 +# %{_includedir}/*.h +# %{_includedir}/%{name} +# %{_libdir}/*.a +# %{_libdir}/*.la +# %{_libdir}/*.so +# %{_libdir}/pkgconfig/*.pc +# %{_mandir}/man3/* +@if:infopages +# %{_infodir}/*.info.* +@fi:infopages +@standard_docs_devel@ +@fi:pck_devel + @if:pck_apidocs %files apidocs %defattr(-,root,root)