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:
3
Makefile
3
Makefile
@@ -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)"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user