diff --git a/_service b/_service
index 63bde75..8443e7b 100644
--- a/_service
+++ b/_service
@@ -4,8 +4,8 @@
https://github.com/open-iscsi/rtslib-fb.git
rtslib-fb
- 2.1.fb63
- v2.1.fb63
+ 2.1.fb64
+ v2.1.fb64
enable
diff --git a/_servicedata b/_servicedata
index 70d8c46..0dec81e 100644
--- a/_servicedata
+++ b/_servicedata
@@ -1,4 +1,4 @@
https://github.com/open-iscsi/rtslib-fb.git
- 3637171a68889e340f553943f25d6a5ca20ad1ca
\ No newline at end of file
+ 737496e24ede21effc807a553cebe88ed5660a2b
\ No newline at end of file
diff --git a/python-rtslib-fb.changes b/python-rtslib-fb.changes
index ef2ae8e..45bd3b6 100644
--- a/python-rtslib-fb.changes
+++ b/python-rtslib-fb.changes
@@ -1,3 +1,23 @@
+-------------------------------------------------------------------
+Tue Jan 9 14:37:15 UTC 2018 - tchvatal@suse.com
+
+- Fix the conflict to the rtslib properly
+
+-------------------------------------------------------------------
+Wed Jan 3 16:13:57 UTC 2018 - tchvatal@suse.com
+
+- Drop the epydoc dependency/documentation generating from the package
+ to allow building in py3 only enviroment
+
+-------------------------------------------------------------------
+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
diff --git a/python-rtslib-fb.spec b/python-rtslib-fb.spec
index e0d19b2..2feffc9 100644
--- a/python-rtslib-fb.spec
+++ b/python-rtslib-fb.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-rtslib-fb
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,83 +18,69 @@
%define oname rtslib-fb
%define realver 2.1.fb64
-%define dbdir /etc/target
-
+%define dbdir %{_sysconfdir}/target
+%define oldpython python
+%{?!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: 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: %{oldpython}-rtslib
+BuildArch: noarch
+%python_subpackages
%description
rtslib-fb is an object-based Python library for configuring the LIO generic
SCSI target, present in 3.x Linux kernel versions. rtslib-fb is licensed under
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
-SCSI target, present in 3.x Linux kernel versions. rtslib-fb is licensed under
-the Apache 2.0 license. Contributions are welcome
-
%prep
%setup -q -n %{oname}-%{realver}
%build
-%__python setup.py build
-%__mkdir_p doc/
-epydoc --no-sourcecode --html -n %{oname} --exclude configobj rtslib_fb/*.py
-%__mv html doc/
+%python_build
%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}
-
%changelog
diff --git a/rtslib-fb-2.1.fb64.tar.gz b/rtslib-fb-2.1.fb64.tar.gz
deleted file mode 100644
index b804fd9..0000000
--- a/rtslib-fb-2.1.fb64.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:9dd1ce5a6d0797529a19eb08725ac0b92a9fc4b7f82e5a8929e61d48993bd426
-size 46387
diff --git a/rtslib-fb-2.1.fb64.tar.xz b/rtslib-fb-2.1.fb64.tar.xz
new file mode 100644
index 0000000..3b85501
--- /dev/null
+++ b/rtslib-fb-2.1.fb64.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d33d12557f0089f684953f6ee5cdcdd2d476335be4ce508620b0b5f829a6b17c
+size 39900