[kup] Importing kup-0.3
Konstantin Ryabitsev
icon at fedoraproject.org
Mon Nov 21 18:26:41 UTC 2011
commit 034b456ad2723aef36072af717b7f949f04a65f6
Author: Konstantin Ryabitsev <mricon at kernel.org>
Date: Mon Nov 21 13:25:59 2011 -0500
Importing kup-0.3
.gitignore | 1 +
kup-generate-tarball.sh | 31 ++++++++++++
kup-server-tmpfiles.conf | 2 +
kup.spec | 117 ++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 152 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..129bd96 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/kup-0.3.tar.gz
diff --git a/kup-generate-tarball.sh b/kup-generate-tarball.sh
new file mode 100644
index 0000000..2edd6c9
--- /dev/null
+++ b/kup-generate-tarball.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+##
+# Tagged version
+TAG="kup-0.3"
+
+##
+# if we're grabbing a post-release commit. Leave blank otherwise.
+REV=
+
+git clone git://git.kernel.org/pub/scm/utils/kup/kup.git
+
+pushd kup
+if [ ! -z "${REV}" ]; then
+ DATE=`git show -s --format="%ci" ${REV} | awk '{print $1}' | sed 's/-//g'`
+ PREFIX="${TAG}-${DATE}git${REV}"
+ TREE=${REV}
+else
+ PREFIX="${TAG}"
+ TREE="${TAG}"
+fi
+
+git archive \
+ --format tar.gz \
+ --prefix=${PREFIX}/ \
+ -o ${PREFIX}.tar.gz \
+ ${TREE}
+
+mv ${PREFIX}.tar.gz ../
+popd
+rm -rf kup
diff --git a/kup-server-tmpfiles.conf b/kup-server-tmpfiles.conf
new file mode 100644
index 0000000..20951e4
--- /dev/null
+++ b/kup-server-tmpfiles.conf
@@ -0,0 +1,2 @@
+d /var/run/kup 0755 root root -
+f /var/run/kup/lock 0644 root root -
diff --git a/kup.spec b/kup.spec
new file mode 100644
index 0000000..7dfed15
--- /dev/null
+++ b/kup.spec
@@ -0,0 +1,117 @@
+Name: kup
+Version: 0.3
+Release: 2%{?dist}
+Summary: Kernel.org Uploader
+
+Group: Development/Tools
+License: GPLv2
+URL: https://git.kernel.org/?p=utils/kup/kup.git;a=summary
+Source0: kup-%{version}.tar.gz
+Source1: kup-generate-tarball.sh
+Source2: kup-server-tmpfiles.conf
+BuildArch: noarch
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+%description
+Kup is a secure upload tool used by kernel developers to upload
+cryptographically verified packages to kernel.org.
+
+This package includes the client-side kup utility.
+
+
+%package server
+Summary: Kernel.org Uploader - server utilities
+Requires: initscripts
+Requires: gnupg, xz
+
+%description server
+Kup is a secure upload tool used by kernel developers to upload
+cryptographically verified packages to kernel.org.
+
+This package includes the server-side kup-server utility.
+
+
+%package server-utils
+Summary: Kernel.org Uploader - administration tools
+Requires: kup-server = %{version}-%{release}
+
+%description server-utils
+Kup is a secure upload tool used by kernel developers to upload
+cryptographically verified packages to kernel.org.
+
+This package includes additional tools to help in kup-server administration.
+
+
+%prep
+%setup -q
+
+
+%build
+
+
+%install
+rm -rf %{buildroot}
+mkdir -pm 0755 \
+ %{buildroot}%{_bindir} \
+ %{buildroot}%{_mandir}/man1
+
+install -pm 0755 kup gpg-sign-all genrings kup-server %{buildroot}%{_bindir}
+install -pm 0644 kup.1 %{buildroot}%{_mandir}/man1/
+
+# Runtime directories and files
+mkdir -pm 0755 \
+ %{buildroot}%{_sharedstatedir}/kup/{pub,tmp,pgp} \
+ %{buildroot}%{_sysconfdir}/tmpfiles.d
+install -pm 0644 %{SOURCE2} \
+ %{buildroot}%{_sysconfdir}/tmpfiles.d/kup-server.conf
+
+mkdir -p %{buildroot}%{_localstatedir}/run/kup
+touch %{buildroot}%{_localstatedir}/run/kup/lock
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING
+%{_bindir}/kup
+%{_mandir}/man1/kup.*
+
+%files server
+%defattr(-,root,root,-)
+%doc README test
+%config(noreplace) %{_sysconfdir}/tmpfiles.d/kup-server.conf
+%{_bindir}/kup-server
+%dir %attr(1777,root,root) %{_sharedstatedir}/kup/tmp
+%dir %{_sharedstatedir}/kup
+%dir %{_sharedstatedir}/kup/pgp
+%dir %{_sharedstatedir}/kup/pub
+%dir %{_localstatedir}/run/kup
+%{_localstatedir}/run/kup/lock
+
+
+%files server-utils
+%{_bindir}/gpg-sign-all
+%{_bindir}/genrings
+
+
+%changelog
+* Fri Nov 18 2011 Konstantin Ryabitsev <mricon at kernel.org> - 0.3-2
+- Require gnupg and xz for kup-server (gzip and bzip2 are in base)
+
+* Wed Nov 16 2011 Konstantin Ryabitsev <mricon at kernel.org> - 0.3-1
+- Use the git-checkout notation as per Fedora guidelines.
+- Move "test" dir to be with the -server package.
+- Make kup-client to just be the "kup" package.
+- Provide the kup-generate-tarball.sh script to automate tarball generation.
+- Create a -server-utils subpackage for gpg-sign-all and genrings tools.
+- Create a tmpfiles entry for systemd (needed for F15 and above).
+
+* Mon Nov 14 2011 Konstantin Ryabitsev <mricon at kernel.org>
+- Match Fedora's spec format.
+- Generate runtime directories.
+
+* Mon Oct 17 2011 John 'Warthog9' Hawley <warthog9 at kernel.org>
+- created spec file
diff --git a/sources b/sources
index e69de29..00db287 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9c59e270a99696905f09b91265ecfdb0 kup-0.3.tar.gz
More information about the scm-commits
mailing list