Skip to content

Commit

Permalink
Build: document what should be in %install section of SPEC file
Browse files Browse the repository at this point in the history
  • Loading branch information
pspacek committed Nov 11, 2016
1 parent 9d45b40 commit 0d4d9d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions freeipa.spec.in
Expand Up @@ -702,6 +702,15 @@ make %{?_smp_mflags} client-check VERBOSE=yes LIBDIR=%{_libdir}


%install
# Please put as much logic as possible into make install. It allows:
# - easier porting to other distributions
# - rapid devel & install cycle using make install
# (instead of full RPM build and installation each time)
#
# %install section of SPEC file should handle ONLY packaging specialities.
# All files and directories created by %install should be marked as %ghost
# (these are typically configuration files created by IPA installer).
# All other artifacts should be created by make install.
%make_install
# remove files which are useful only for make uninstall
find %{buildroot} -wholename '*/site-packages/*/install_files.txt' -exec rm {} \;
Expand Down

0 comments on commit 0d4d9d7

Please sign in to comment.