[bacula/f16] Add devel subpackage
Simone Caronni
slaanesh at fedoraproject.org
Wed Jan 11 10:52:20 UTC 2012
commit 85aa4a8d5ccdec605f2e300dbc4decc70f670161
Author: Simone Caronni <negativo17 at gmail.com>
Date: Wed Jan 11 11:48:49 2012 +0100
Add devel subpackage
bacula.spec | 37 ++++++++++++++++++++++++++++++++++---
1 files changed, 34 insertions(+), 3 deletions(-)
---
diff --git a/bacula.spec b/bacula.spec
index 1c4142d..d10f7e6 100644
--- a/bacula.spec
+++ b/bacula.spec
@@ -2,7 +2,7 @@
Name: bacula
Version: 5.0.3
-Release: 18%{?dist}
+Release: 19%{?dist}
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
# See LICENSE for details
License: GPLv2 with exceptions
@@ -338,6 +338,18 @@ This package contains the Gnome- and KDE-compatible tray monitor to
monitor your bacula server.
+%package devel
+Summary: Bacula development files
+Group: Development/Libraries
+
+%description devel
+Bacula is a set of programs that allow you to manage the backup,
+recovery, and verification of computer data across a network of
+different computers. It is based on a client/server architecture.
+
+This development package contains static libraries and header files.
+
+
%package docs
Summary: Bacula documentation
Group: Documentation
@@ -656,8 +668,14 @@ find %{_builddir}/%{name}-%{version}/%{name}-docs-%{version}/manuals/en -name "*
find %{_builddir}/%{name}-%{version}/%{name}-docs-%{version}/manuals/en -name "*.pl" -exec rm -f {} \;
find %{_builddir}/%{name}-%{version}/%{name}-docs-%{version}/manuals/en -name "*.tex" -exec rm -f {} \;
-# Remove local archives
-rm -f %{buildroot}%{_libdir}/*.la
+# Install headers
+%{__mkdir_p} %{buildroot}%{_includedir}/bacula
+pushd %{name}-%{version}
+ for dir in src src/cats src/console src/dird src/filed src/findlib src/lib src/plugins/sd src/stored; do
+ %{__mkdir_p} %{buildroot}%{_includedir}/bacula/$dir
+ %{__install} -m 644 $dir/*.h %{buildroot}%{_includedir}/bacula/$dir
+ done
+popd
%clean
@@ -1107,6 +1125,16 @@ fi
%{_datadir}/pixmaps/bacula-tray-monitor.xpm
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/bacula
+%{_libdir}/libbac.la
+%{_libdir}/libbaccfg.la
+%{_libdir}/libbacfind.la
+%{_libdir}/libbacpy.la
+%{_libdir}/libbacsql.la
+
+
%files docs
%defattr(-,root,root,-)
%doc bacula-docs-%{version}/manuals/en/problems/problems.pdf
@@ -1129,6 +1157,9 @@ fi
%changelog
+* Wed Jan 11 2012 Simone Caronni <negativo17 at gmail.com> - 5.0.3-19
+- Add devel subpackage.
+
* Mon Jan 09 2012 Simone Caronni <negativo17 at gmail.com> - 5.0.3-18
- Enable batch insert code.
More information about the scm-commits
mailing list