Skip to content

Commit

Permalink
Install the README when building the RPM. Use the bzip2-compressed
Browse files Browse the repository at this point in the history
tarball for RPM. Don't install the LICENSE file, Debian doesn't like
that. Add a fix for RPM gzipping manual pages when installing.
  • Loading branch information
Jan Urbański committed Jan 30, 2009
1 parent aba49ba commit 9f28017
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fix-rpm-compressing-files
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python setup.py install --root="$RPM_BUILD_ROOT" --record=INSTALLED_FILES
sed -i -e 's/.*man.*\.[0-9]$/&.gz/' INSTALLED_FILES
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ release = 1
build_requires = python >= 2.4
requires = python >= 2.4
provides = flvlib
doc_files = README
use_bzip2 = 1
install_script = fix-rpm-compressing-files

[install]
optimize = 1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
if sys.platform == 'linux2':
data_files = [('share/man/man1', ['man/debug-flv.1', 'man/index-flv.1']),
('share/doc/flvlib-%s' % __versionstr__,
['README', 'LICENSE'])]
['README'])]
else:
data_files = []

Expand Down

0 comments on commit 9f28017

Please sign in to comment.