[packages/python-rtslib-fb] - updated to 2.1.fb63 - module name changed to rtslib_fb (in sync with project name) - keep symlink
adamg
adamg at pld-linux.org
Wed Feb 6 10:47:04 CET 2019
commit d53b44d69e19388e867cb136a5e4f0e65cad495b
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Wed Feb 6 10:45:36 2019 +0100
- updated to 2.1.fb63
- module name changed to rtslib_fb (in sync with project name)
- keep symlink (instead of copy) for old module name for compatibility,
- R: python{,3}-pyudev
python-rtslib-fb.spec | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/python-rtslib-fb.spec b/python-rtslib-fb.spec
index 7c11359..40b511a 100644
--- a/python-rtslib-fb.spec
+++ b/python-rtslib-fb.spec
@@ -3,15 +3,15 @@
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
-%define module rtslib
+%define module rtslib_fb
Summary: Python library for configuring the Linux kernel-based multiprotocol SCSI target (LIO)
Name: python-rtslib-fb
-Version: 2.1.fb50
-Release: 5
+Version: 2.1.fb63
+Release: 1
License: Apache v2.0
Group: Libraries/Python
Source0: https://codeload.github.com/agrover/rtslib-fb/tar.gz/v%{version}
-# Source0-md5: 2eccddc0c6061590250f2d358fafdad7
+# Source0-md5: 7fb48bee32a4ed961a4cd885184a9bb3
URL: https://github.com/agrover/rtslib-fb
BuildRequires: python-distribute
BuildRequires: rpm-pythonprov
@@ -22,6 +22,7 @@ BuildRequires: python3-distribute
BuildRequires: python3-modules
%endif
Requires: python-modules
+Requires: python-pyudev >= 0.16.1
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -32,6 +33,7 @@ generic SCSI target, present in 3.x Linux kernel versions.
%package -n python3-rtslib-fb
Summary: Python library for configuring the Linux kernel-based multiprotocol SCSI target (LIO)
Group: Libraries/Python
+Requires: python3-pyudev >= 0.16.1
%description -n python3-rtslib-fb
rtslib-fb is an object-based Python library for configuring the LIO
@@ -56,11 +58,19 @@ install -d $RPM_BUILD_ROOT%{_mandir}/man{5,8}
%if %{with python2}
%py_install
+# symlink for old module name
+rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/rtslib
+ln -sf %{py_sitescriptdir}/%{module} $RPM_BUILD_ROOT%{py_sitescriptdir}/rtslib
+
%py_postclean
%endif
%if %{with python3}
%py3_install
+
+# symlink for old module name
+rm -rf $RPM_BUILD_ROOT%{py3_sitescriptdir}/rtslib
+ln -sf %{py3_sitescriptdir}/%{module} $RPM_BUILD_ROOT%{py3_sitescriptdir}/rtslib
%endif
cp doc/*.5 $RPM_BUILD_ROOT%{_mandir}/man5/
@@ -75,6 +85,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/targetctl
%doc README.md
%dir %{py_sitescriptdir}/%{module}
+%ghost %{py_sitescriptdir}/rtslib
%{py_sitescriptdir}/%{module}/*.py[co]
%if "%{py_ver}" > "2.4"
%{py_sitescriptdir}/rtslib_fb-*.egg-info
@@ -88,5 +99,6 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc README.md
%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/rtslib
%{py3_sitescriptdir}/rtslib_fb-*-py*.egg-info
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-rtslib-fb.git/commitdiff/d53b44d69e19388e867cb136a5e4f0e65cad495b
More information about the pld-cvs-commit
mailing list