[packages/drbdmanage] pldize
glen
glen at pld-linux.org
Tue Aug 2 10:28:48 CEST 2016
commit 058123ade62199af5fe488e69c2b6d4697725505
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Aug 2 11:28:09 2016 +0300
pldize
- add md5
- adapter
- do not package system dirs
- fix config attrs
- fix python packaging
- cleanups
drbdmanage.spec | 70 +++++++++++++++++++++++++++------------------------------
1 file changed, 33 insertions(+), 37 deletions(-)
---
diff --git a/drbdmanage.spec b/drbdmanage.spec
index e412a62..e30eb4d 100644
--- a/drbdmanage.spec
+++ b/drbdmanage.spec
@@ -1,24 +1,28 @@
-Summary: DRBD9 distributed resource management utility
-Name: drbdmanage
-Version: 0.97
-Release: 0.2
-Source0: https://www.drbd.org/download/drbdmanage/%{name}-%{version}.tar.gz
-URL: http://oss.linbit.com/drbdmanage
-License: GPL v3
-Group: Applications/System
-Requires: drbd-utils >= 8.9.4
-Requires: python-dbus
-Requires: python-pygobject
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
+Summary: DRBD9 distributed resource management utility
+Name: drbdmanage
+Version: 0.97
+Release: 0.3
+License: GPL v3
+Group: Applications/System
+Source0: https://www.drbd.org/download/drbdmanage/%{name}-%{version}.tar.gz
+# Source0-md5: 3c248e2914bf23abefe1ed7c98498ab6
+URL: http://oss.linbit.com/drbdmanage
+BuildRequires: python-modules
+BuildRequires: python-setuptools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: drbd-utils >= 8.9.4
+Requires: python-dbus
+Requires: python-pygobject
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
drbdmanage is a daemon and a command line utility that manages DRBD9
-replicated LVM volumes across a group of machines.
-It maintains DRBD9 configuration on the participating machines. It
-creates/deletes the backing LVM volumes. It automatically places
-the backing LVM volumes among the participating machines.
+replicated LVM volumes across a group of machines. It maintains DRBD9
+configuration on the participating machines. It creates/deletes the
+backing LVM volumes. It automatically places the backing LVM volumes
+among the participating machines.
%prep
%setup -q
@@ -28,8 +32,8 @@ the backing LVM volumes among the participating machines.
%install
rm -rf $RPM_BUILD_ROOT
-%py_install \
- --root $RPM_BUILD_ROOT
+%py_install
+%py_postclean
%clean
rm -rf $RPM_BUILD_ROOT
@@ -39,26 +43,18 @@ rm -rf $RPM_BUILD_ROOT
%doc README
%attr(755,root,root) %{_bindir}/drbdmanage
%attr(755,root,root) %{_bindir}/dbus-drbdmanaged-service
-#%{_mandir}/man8/drbdmanage-*
-#%{_mandir}/man8/drbdmanage.*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/drbdmanaged.cfg
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/drbd.d/drbdctrl.res_template
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/drbd.d/drbdmanage-resources.res
+%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.drbd.drbdmanaged.conf
%{_datadir}/dbus-1/system-services/org.drbd.drbdmanaged.service
-%config %{_sysconfdir}/dbus-1/system.d/org.drbd.drbdmanaged.conf
-%config %{_sysconfdir}/drbd.d/drbdctrl.res_template
-%config(noreplace) %{_sysconfdir}/drbd.d/drbdmanage-resources.res
-%config(noreplace) %{_sysconfdir}/drbdmanaged.cfg
-%{_localstatedir}/lib/drbdmanage
-%dir %{_sysconfdir}/dbus-1/
-%dir %{_sysconfdir}/dbus-1/system.d/
-%dir %{_datadir}/dbus-1
-%dir %{_datadir}/dbus-1/system-services/
%{systemdunitdir}/drbdmanaged.service
%{systemdunitdir}/drbdmanaged.socket
-%{py_sitescriptdir}/*.py
-%{py_sitescriptdir}/*.py?
%{py_sitescriptdir}/drbdmanage
+%{py_sitescriptdir}/drbdmanage_client.py[co]
+%{py_sitescriptdir}/drbdmanage_server.py[co]
%{py_sitescriptdir}/drbdmanage-%{version}-py*.egg-info
+%dir %{_localstatedir}/lib/drbdmanage
-#%files -n
-#%config %{_sysconfdir}/bash_completion.d/drbdmanage
-
-
+# bash-completion package
+/etc/bash_completion.d/drbdmanage
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/drbdmanage.git/commitdiff/058123ade62199af5fe488e69c2b6d4697725505
More information about the pld-cvs-commit
mailing list