[packages/nvmetcli] - python packaging fixes
qboosh
qboosh at pld-linux.org
Thu Dec 29 20:37:06 CET 2016
commit 92c469c8d51003367444e3a4936ed71128da31af
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Dec 29 20:37:58 2016 +0100
- python packaging fixes
nvmetcli.spec | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/nvmetcli.spec b/nvmetcli.spec
index d4e8066..209b9d9 100644
--- a/nvmetcli.spec
+++ b/nvmetcli.spec
@@ -10,12 +10,12 @@ Source0: ftp://ftp.infradead.org/pub/nvmetcli/%{name}-%{version}.tar.gz
URL: http://git.infradead.org/users/hch/nvmetcli.git
BuildRequires: python-devel
BuildRequires: python-setuptools
-BuildRequires: rpmbuild(macros) >= 1.704
+BuildRequires: rpmbuild(macros) >= 1.714
BuildRequires: systemd-units
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
-Requires: python-configshell
+Requires: python-configshell-fb
Requires: python-kmod
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -42,6 +42,8 @@ rm -rf $RPM_BUILD_ROOT
%py_install
+%py_postclean
+
install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/nvmet,%{systemdunitdir}}
cp -p nvmetcli $RPM_BUILD_ROOT%{_sbindir}/nvmetcli
cp -p nvmet.service $RPM_BUILD_ROOT%{systemdunitdir}/nvmet.service
@@ -62,6 +64,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc README
%attr(755,root,root) %{_sbindir}/nvmetcli
-%{py_sitescriptdir}
+%{py_sitescriptdir}/nvmet
+%{py_sitescriptdir}/nvmetcli-0.1-py*.egg-info
%dir %{_sysconfdir}/nvmet
%{systemdunitdir}/nvmet.service
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nvmetcli.git/commitdiff/92c469c8d51003367444e3a4936ed71128da31af
More information about the pld-cvs-commit
mailing list