From f0d62597307ac67fdd99d4cae3c85d0d50da8de1 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Fri, 18 Jan 2013 16:40:38 +0200 Subject: [PATCH] packaging: add man pages Change-Id: Id52d41c844ccc25d0189484467674263876ac12e Signed-off-by: Artem Bityutskiy --- debian/manpages | 1 + packaging/bmap-tools.spec | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 debian/manpages diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 0000000..8a9b6db --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +docs/man1/bmaptool.1 diff --git a/packaging/bmap-tools.spec b/packaging/bmap-tools.spec index ade4542..c05bebf 100644 --- a/packaging/bmap-tools.spec +++ b/packaging/bmap-tools.spec @@ -33,10 +33,13 @@ Bmap-tools - tools to generate block map (AKA bmap) and flash images using bmap %build %install -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot} +mkdir -p %{buildroot}/%{_mandir}/man1 +install -m644 docs/man1/bmaptool.1 %{buildroot}/%{_mandir}/man1 + %files %defattr(-,root,root,-) %dir /usr/lib/python*/site-packages/bmaptools @@ -45,5 +48,6 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %{_bindir}/* %doc docs/RELEASE_NOTES +%{_mandir}/man1/* %changelog -- 2.7.4