Fix 'make rpm'

Include symlinks in dist tarball

fix some paths in specfile.

Signed-off-by: Andy Grover <agrover@redhat.com>
This commit is contained in:
Andy Grover
2016-03-25 16:26:43 -07:00
parent 845606a282
commit 7576593de7
2 changed files with 5 additions and 3 deletions

View File

@@ -101,7 +101,8 @@ build/release-stamp:
@cd build; tar -c --owner=0 --group=0 --numeric-owner \
--format=gnu -b20 --quoting-style=escape \
-f ../dist/${PKGNAME}-${VERSION}.tar \
$$(find ${PKGNAME}-${VERSION} -type f | sort)
$$(find ${PKGNAME}-${VERSION} -type f | sort) \
$$(find ${PKGNAME}-${VERSION} -type l | sort)
@gzip -6 -n dist/${PKGNAME}-${VERSION}.tar
@echo "Generated release tarball:"
@echo " $$(ls dist/${PKGNAME}-${VERSION}.tar.gz)"

View File

@@ -1,4 +1,4 @@
%define oname rtslib
%define oname rtslib-fb
Name: python-rtslib
License: Apache License 2.0
@@ -22,7 +22,7 @@ API for RisingTide Systems generic SCSI target.
%build
%{__python} setup.py build
mkdir -p doc
epydoc --no-sourcecode --html -n %{oname} --exclude configobj %{oname}/*.py
epydoc --no-sourcecode --html -n %{oname} --exclude configobj rtslib_fb/*.py
mv html doc/
%install
@@ -37,6 +37,7 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{python_sitelib}
%{_bindir}/targetctl
/usr/share/doc/python-rtslib-doc-%{version}
%doc COPYING README.md