81d7c299485680dfa188c7116c13678165d33481
[tools/pristine-tar.git] / pristine-tar.spec
1 Name: pristine-tar
2 Version: 1.27
3 Release: 2%{?dist}
4 Summary: regenerate pristine tarballs
5
6 Group: System Tools
7 License: GPLv2
8 Url: http://kitenet.net/~joey/code/pristine-tar/
9 Source0: http://ftp.debian.org/debian/pool/main/p/pristine-tar/%{name}_%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12 Requires: git, xdelta
13
14 %description
15 pristine-tar can regenerate a pristine upstream tarball using only a
16 small binary delta file and a copy of the source which can be a revision
17 control checkout.
18
19 The package also includes a pristine-gz command, which can regenerate
20 a pristine .gz file.
21
22 The delta file is designed to be checked into revision control along-side
23 the source code, thus allowing the original tarball to be extracted from
24 revision control.
25
26 pristine-tar is available in git at git://git.kitenet.net/pristine-tar/
27
28
29 %prep
30 %setup -q -n %{name}
31
32
33 %build
34 perl Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix}
35 make %{?_smp_mflags}
36
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 make install DESTDIR=$RPM_BUILD_ROOT
41
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46
47 %files
48 %defattr(-,root,root,-)
49 %doc GPL TODO delta-format.txt
50 %{_bindir}/*
51 %{_mandir}/*
52
53
54 %changelog
55 * Tue Feb 24 2009 Jimmy Tang <jtang@tchpc.tcd.ie> - 0.21-1
56 - initial package
57