Skip to content

Commit

Permalink
do not copy files which we do not need/want
Browse files Browse the repository at this point in the history
addressing:
    Installed (but unpackaged) file(s) found:
   /usr/share/katello/etc/service-list
   /usr/share/katello/man/katello-service.8
   /usr/share/katello/man/katello-service.8.asciidoc
   /usr/share/katello/man/katello-service.8.xml
  • Loading branch information
xsuchy committed Jul 18, 2012
1 parent 741f5c6 commit 461cb0d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/katello.spec
Expand Up @@ -209,7 +209,7 @@ mkdir -p %{buildroot}/%{_mandir}/man8
#copy the application to the target directory
mkdir .bundle
mv ./deploy/bundle-config .bundle/config
cp -R .bundle * %{buildroot}%{homedir}
cp -R .bundle Gemfile Rakefile app autotest ca config config.ru db integration_spec lib locale public script spec vendor %{buildroot}%{homedir}

#copy configs and other var files (will be all overwriten with symlinks)
install -m 600 config/%{name}.yml %{buildroot}%{_sysconfdir}/%{name}/%{name}.yml
Expand Down Expand Up @@ -256,11 +256,6 @@ ln -sv %{homedir}/script/katello-service %{buildroot}%{_bindir}/katello-service
sed -Ei 's/\s*database:\s+db\/(.*)$/ database: \/var\/lib\/katello\/\1/g' %{buildroot}%{homedir}/config/database.yml

#remove files which are not needed in the homedir
rm -rf %{buildroot}%{homedir}/README
rm -rf %{buildroot}%{homedir}/LICENSE
rm -rf %{buildroot}%{homedir}/doc
rm -rf %{buildroot}%{homedir}/deploy
rm -rf %{buildroot}%{homedir}/%{name}.spec
rm -f %{buildroot}%{homedir}/lib/tasks/.gitkeep
rm -f %{buildroot}%{homedir}/public/stylesheets/.gitkeep
rm -f %{buildroot}%{homedir}/vendor/plugins/.gitkeep
Expand Down

0 comments on commit 461cb0d

Please sign in to comment.