%global commit f0421d5ab0978bc0e293d2f9a09017aef2d23434 Name: freight Version: 0.3.5 Release: 4%{?dist} Summary: A modern take on the Debian archive Group: Development/Tools License: BSD URL: https://github.com/rcrowley/%{name} Source0: https://github.com/rcrowley/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz BuildArch: noarch Requires: coreutils Requires: dpkg Requires: gnupg %description freight programs create the files needed to serve a Debian archive. The actual serving is done via your favorite HTTP server. %prep %setup -qn %{name}-%{commit} %build make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} \ prefix=%{_prefix} \ bindir=%{_bindir} \ libdir=%{_datadir} \ sysconfdir=%{_sysconfdir} \ mandir=%{_mandir} mv %{buildroot}%{_sysconfdir}/%{name}.conf{.example,} # VARLIB, freight library mkdir -p %{buildroot}%{_sharedstatedir}/%{name} # VARCACHE, freight cache (to be served by httpd) mkdir -p %{buildroot}%{_localstatedir}/cache/%{name} # use /usr/share instead of /usr/lib for shell utils find %{buildroot}%{_bindir} -type f -exec sed -i \ '/dirname/ s|lib/%{name}|share/%{name}|g' {} + # some empty config files are shipped find %{buildroot}%{_sysconfdir} -type f -size 0 -delete %files %{_bindir}/%{name}* %{_datadir}/%{name} %{_localstatedir}/cache/%{name} %{_sharedstatedir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}.conf %doc %{_mandir}/man1/* %doc %{_mandir}/man5/* %doc LICENSE NOTES README.md %changelog * Tue Jul 08 2014 Dominic Cleal - 0.3.5-4 - Remove manual copy of doc files * Tue Jul 08 2014 Dominic Cleal - 0.3.5-3 - Simplify docs inclusion in files section - Use install instead of cp to copy documentation - Fix location of review ticket number * Mon Jul 07 2014 Dominic Cleal - 0.3.5-2 - Added LICENSE, NOTES and README.md to files section - Added review ticket number to initial changelog * Tue Jul 01 2014 Dominic Cleal - 0.3.5-1 - Initial version (#1115049)