Accepting request 556305 from home:lee_duncan:branches:devel:languages:python

- Converting RPM SPEC file to singlespec format (bsc#1045332),
  updating SPEC file only.
- ran 'spec-cleaner' on SPEC file to clean it up.
- Converted from manually-added rtslib-fb-2.1.fb64.tar.gz to
  tar_scm service-retrieved rtslib-fb-2.1.fb64.tar.xz

OBS-URL: https://build.opensuse.org/request/show/556305
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rtslib-fb?expand=0&rev=25
This commit is contained in:
Ondřej Súkup 2017-12-11 22:16:48 +00:00 committed by Git OBS Bridge
parent 1a8a084cb7
commit e0a7ec0bea
6 changed files with 57 additions and 47 deletions

View File

@ -4,8 +4,8 @@
<param name="url">https://github.com/open-iscsi/rtslib-fb.git</param>
<param name="subdir"></param>
<param name="filename">rtslib-fb</param>
<param name="versionformat">2.1.fb63</param>
<param name="revision">v2.1.fb63</param>
<param name="versionformat">2.1.fb64</param>
<param name="revision">v2.1.fb64</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="disabled">

View File

@ -1,4 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/open-iscsi/rtslib-fb.git</param>
<param name="changesrevision">3637171a68889e340f553943f25d6a5ca20ad1ca</param></service></servicedata>
<param name="changesrevision">737496e24ede21effc807a553cebe88ed5660a2b</param></service></servicedata>

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Sun Dec 10 21:14:08 UTC 2017 - lduncan@suse.com
- Converting RPM SPEC file to singlespec format (bsc#1045332),
updating SPEC file only.
- ran 'spec-cleaner' on SPEC file to clean it up.
- Converted from manually-added rtslib-fb-2.1.fb64.tar.gz to
tar_scm service-retrieved rtslib-fb-2.1.fb64.tar.xz
-------------------------------------------------------------------
Thu Aug 17 08:03:10 UTC 2017 - lszhu@suse.com

View File

@ -18,23 +18,29 @@
%define oname rtslib-fb
%define realver 2.1.fb64
%define dbdir /etc/target
%define dbdir %{_sysconfdir}/target
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-%{oname}
Version: 2.1.64
Release: 0%{?dist}
Url: http://github.com/open-iscsi/rtslib-fb.git
Summary: API for Linux kernel SCSI target (aka LIO)
License: Apache-2.0
Group: Development/Languages/Python
Source: %{oname}-%{realver}.tar.gz
Conflicts: python-rtslib
Url: http://github.com/open-iscsi/rtslib-fb.git
Source: %{oname}-%{realver}.tar.xz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pyudev}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: epydoc
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-six
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: pyudev
BuildRequires: python-rpm-macros
Requires: python-pyudev
Requires(post): update-alternatives
Requires(postun): update-alternatives
Conflicts: python-rtslib
BuildArch: noarch
%python_subpackages
%description
rtslib-fb is an object-based Python library for configuring the LIO generic
@ -44,9 +50,6 @@ the Apache 2.0 license. Contributions are welcome
%package doc
Summary: Documentatoin for Python rtslib-fb
Group: Documentation/HTML
BuildArch: noarch
BuildRequires: epydoc
BuildRequires: pyudev
%description doc
rtslib-fb is an object-based Python library for configuring the LIO generic
@ -57,44 +60,42 @@ the Apache 2.0 license. Contributions are welcome
%setup -q -n %{oname}-%{realver}
%build
%__python setup.py build
%__mkdir_p doc/
%python_build
mkdir -p doc/
epydoc --no-sourcecode --html -n %{oname} --exclude configobj rtslib_fb/*.py
%__mv html doc/
mv html doc/
%install
[ "%{buildroot}" != "/" ] && %__rm -rf %{buildroot}
%__python setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
%fdupes %{buildroot}%{python_sitelib}
%__install -d -m755 %{buildroot}%{_defaultdocdir}/python-rtslib-doc-%{version}
%__cp -r doc/* %{buildroot}%{_defaultdocdir}/python-rtslib-doc-%{version}/
%fdupes %{buildroot}%{_defaultdocdir}
%__install -d -m755 %{buildroot}%{_sysconfdir}/target
%__install -d -m755 %{buildroot}%{_mandir}/man5
%__install -m644 doc/saveconfig.json.5 %{buildroot}%{_mandir}/man5
%__install -d -m755 %{buildroot}%{_mandir}/man8
%__install -m644 doc/targetctl.8 %{buildroot}%{_mandir}/man8
%__install -d -m755 %{buildroot}/%{dbdir}
%__install -d -m755 %{buildroot}/%{dbdir}/pr
%__install -d -m755 %{buildroot}/%{dbdir}/alua
%python_install
%python_clone -a %{buildroot}/%{_bindir}/targetctl
%fdupes %{buildroot}
install -d -m755 %{buildroot}%{_mandir}/man5
install -m644 doc/saveconfig.json.5 %{buildroot}%{_mandir}/man5
%python_clone -a %{buildroot}%{_mandir}/man5/saveconfig.json.5
install -d -m755 %{buildroot}%{_mandir}/man8
install -m644 doc/targetctl.8 %{buildroot}%{_mandir}/man8
%python_clone -a %{buildroot}%{_mandir}/man8/targetctl.8
install -d -m755 %{buildroot}/%{dbdir}
install -d -m755 %{buildroot}/%{dbdir}/pr
install -d -m755 %{buildroot}/%{dbdir}/alua
%clean
[ "%{buildroot}" != "/" ] && %__rm -rf %{buildroot}
%post
%python_install_alternative targetctl targetctl.8 saveconfig.json.5
%files
%defattr(-,root,root,-)
%{_bindir}/targetctl
%postun
%python_uninstall_alternative targetctl
%files %{python_files}
%python_alternative %{_bindir}/targetctl
%{python_sitelib}/*
%doc COPYING README.md
%dir %{_sysconfdir}/target
%doc %{_mandir}/man5/saveconfig.json.5.gz
%doc %{_mandir}/man8/targetctl.8.gz
%doc %python_alternative %{_mandir}/man5/saveconfig.json.5.gz
%doc %python_alternative %{_mandir}/man8/targetctl.8.gz
%dir %{dbdir}
%dir %{dbdir}/pr
%dir %{dbdir}/alua
%files doc
%defattr(-,root,root,-)
%{_defaultdocdir}/python-rtslib-doc-%{version}
%files %{python_files doc}
%doc doc/*
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9dd1ce5a6d0797529a19eb08725ac0b92a9fc4b7f82e5a8929e61d48993bd426
size 46387

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d33d12557f0089f684953f6ee5cdcdd2d476335be4ce508620b0b5f829a6b17c
size 39900