File pristine-tar.spec of Package pristine-tar

Name: pristine-tar
Version: 1.50
Release: 0%{?dist}
Summary: Regenerate pristine tarballs

Group: System Tools
License: GPL-2.0
Url: http://kitenet.net/~joey/code/pristine-tar/
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: zlib-devel
Requires: git-core
Requires: xdelta
Requires: perl-base

%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}-%{version}


%build
perl Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix}
make


%install
make install DESTDIR=%{buildroot}
%perl_process_packlist
%perl_gen_filelist

%check

%files -f %{name}.files
%defattr(-,root,root,-)
%doc GPL TODO delta-format.txt
%{_prefix}/lib/pristine-tar/

%changelog
* Tue Feb 24 2009 Jimmy Tang <jtang@tchpc.tcd.ie> - 0.21-1
- initial package

openSUSE Build Service is sponsored by