[freight] Initial import of freight-0.3.5-4

Dominic Cleal domcleal at fedoraproject.org
Wed Jul 9 07:57:19 UTC 2014


commit cc5432cb8493e7efbea8d599d6312035cdb4d460
Author: Dominic Cleal <dcleal at redhat.com>
Date:   Wed Jul 9 08:52:01 2014 +0100

    Initial import of freight-0.3.5-4
    
    Resolves: BZ#1115049

 .gitignore   |    2 +
 freight.spec |   76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources      |    1 +
 3 files changed, 79 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b5882ce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.src.rpm
+/freight-f0421d5ab0978bc0e293d2f9a09017aef2d23434.tar.gz
diff --git a/freight.spec b/freight.spec
new file mode 100644
index 0000000..00c69e0
--- /dev/null
+++ b/freight.spec
@@ -0,0 +1,76 @@
+%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 <dcleal at redhat.com> - 0.3.5-4
+- Remove manual copy of doc files
+
+* Tue Jul 08 2014 Dominic Cleal <dcleal at redhat.com> - 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 <dcleal at redhat.com> - 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 <dcleal at redhat.com> - 0.3.5-1
+- Initial version (#1115049)
diff --git a/sources b/sources
index e69de29..67c3c15 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+08491e1d49913979e570cd9d169079fc  freight-f0421d5ab0978bc0e293d2f9a09017aef2d23434.tar.gz


More information about the scm-commits mailing list