Skip to content

Commit

Permalink
generate the man pages at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Mar 10, 2018
1 parent a267c98 commit 2c2505b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions cms-git-tools.spec
@@ -1,9 +1,9 @@
### RPM cms cms-git-tools 180219.0
### RPM cms cms-git-tools 180310.0
## NOCOMPILER

# ***Do not change minor number of the above version.***

%define commit 1eb43a4f121151e2c32f8647c00c764d7fed8605
%define commit ef5c05cdcb4fee48272741ad80992e6ca93d9cad
%define branch master
# We do not use a revision explicitly, because revisioned packages do not get
# updated automatically when they are dependencies.
Expand All @@ -13,17 +13,15 @@ Source0: git://github.com/cms-sw/cms-git-tools.git?obj=%{branch}/%{commit}&expor
%prep
%setup -n %{n}

%build
make

%install
mkdir -p %{i}/common %{i}/share/man/man1
cp -pR git-cms-* %{i}/common
cp docs/man/man1/*.1 %{i}/share/man/man1
find %{i}/common -name '*' -type f -exec chmod +x {} \;

%build

%install

# NOP

%post
cd ${RPM_INSTALL_PREFIX}/%{pkgrel}
%{relocateCmsFiles} $(find . -name '*' -type f)
Expand Down

0 comments on commit 2c2505b

Please sign in to comment.