added spec file
authorJimmy Tang <jtang@duo.tchpc.tcd.ie>
Wed, 25 Feb 2009 12:21:07 +0000 (12:21 +0000)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 26 Feb 2009 19:01:35 +0000 (14:01 -0500)
pristine-tar.spec [new file with mode: 0644]

diff --git a/pristine-tar.spec b/pristine-tar.spec
new file mode 100644 (file)
index 0000000..2f447e0
--- /dev/null
@@ -0,0 +1,56 @@
+Name:           pristine-tar
+Version:        0.21
+Release:        2%{?dist}
+Summary:        regenerate pristine tarballs
+
+Group:          System Tools
+License:        GPLv2
+Url:            http://kitenet.net/~joey/code/pristine-tar/
+Source0:        http://ftp.debian.org/debian/pool/main/p/pristine-tar/%{name}_%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Requires:       git, xdelta
+
+%description
+pristine-tar can regenerate a pristine upstream tarball using only a
+small binary delta file and a copy of the source which can be a revision
+control checkout.
+
+The package also includes a pristine-gz command, which can regenerate
+a pristine .gz file.
+
+The delta file is designed to be checked into revision control along-side
+the source code, thus allowing the original tarball to be extracted from
+revision control.
+
+pristine-tar is available in git at git://git.kitenet.net/pristine-tar/
+
+
+%prep
+%setup -q -n %{name}
+
+
+%build
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc GPL TODO delta-format.txt
+%{_bindir}/*
+%{_mandir}/*
+
+
+%changelog
+* Tue Feb 24 2009 Jimmy Tang <jtang@tchpc.tcd.ie> - 0.21-1
+- initial package
+