diff --git a/python-rtslib-fb.spec b/python-rtslib-fb.spec new file mode 100644 index 0000000000000000000000000000000000000000..c27a91a8bd9db4fdd34de563bafcb45a4ffcd779 --- /dev/null +++ b/python-rtslib-fb.spec @@ -0,0 +1,69 @@ +%global _empty_manifest_terminate_build 0 +Name: python-rtslib-fb +Version: 2.1.66 +Release: 1 +Summary: API for Linux kernel SCSI target (aka LIO) +License: Apache-2.0 +URL: http://github.com/open-iscsi/rtslib-fb +Source0: https://files.pythonhosted.org/packages/15/33/879f9e2e97c1cfca0f0d67985769b6ee566ca37abf7c4333d99e9794a1cb/rtslib-fb-2.1.66.tar.gz +BuildArch: noarch +%description + + +%package -n python2-rtslib-fb +Summary: API for Linux kernel SCSI target (aka LIO) +Provides: python2-rtslib-fb +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%description -n python2-rtslib-fb + + +%package help +Summary: Development documents and examples for rtslib-fb +Provides: python2-rtslib-fb-doc +%description help + + +%prep +%autosetup -n rtslib-fb-2.1.66 + +%build +%py2_build + +%install +%py2_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python2-rtslib-fb -f filelist.lst +%dir %{python2_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue May 11 2021 OpenStack_SIG +- Package Spec generated diff --git a/rtslib-fb-2.1.66.tar.gz b/rtslib-fb-2.1.66.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..18be9f991a7a8c8eb1a72d0419575308d051dd9c Binary files /dev/null and b/rtslib-fb-2.1.66.tar.gz differ