--- /dev/null
+Run ./Makefile.PL to generate a Makefile, then run `make` and `make install`.
+++ /dev/null
-build: zgz/zgz pristine-tar.spec
- pod2man -c pristine-tar pristine-tar > pristine-tar.1
- pod2man -c pristine-gz pristine-gz > pristine-gz.1
- pod2man -c pristine-bz2 pristine-bz2 > pristine-bz2.1
- pod2man -c zgz zgz.pod > zgz.1
-
-ZGZ_SOURCES = zgz/zgz.c zgz/bits.c zgz/deflate.c zgz/gzip.c zgz/trees.c zgz/util.c \
- zgz/old-bzip2/*.c
-zgz/zgz: $(ZGZ_SOURCES) zgz/gzip.h
- gcc -Wall -O2 -lz -o $@ $(ZGZ_SOURCES)
-
-install:
- install -d $(DESTDIR)/usr/bin
- install -d $(DESTDIR)/usr/share/man/man1
- install pristine-tar pristine-gz pristine-bz2 zgz/zgz $(DESTDIR)/usr/bin
- install -m 0644 *.1 $(DESTDIR)/usr/share/man/man1
-
-clean: pristine-tar.spec
- rm -f zgz/zgz *.1
-
-pristine-tar.spec:
- sed -i "s/Version:.*/Version: $$(perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)/" pristine-tar.spec
-
-.PHONY: pristine-tar.spec
--- /dev/null
+#!/usr/bin/perl
+use warnings;
+use strict;
+use ExtUtils::MakeMaker;
+
+# Add a few more targets.
+sub MY::postamble {
+q{
+all:: extra_build
+clean:: extra_clean
+install:: extra_install
+pure_install:: extra_install
+
+extra_build: zgz/zgz pristine-tar.spec
+ pod2man -c pristine-tar pristine-tar > pristine-tar.1
+ pod2man -c pristine-gz pristine-gz > pristine-gz.1
+ pod2man -c pristine-bz2 pristine-bz2 > pristine-bz2.1
+ pod2man -c zgz zgz/zgz.pod > zgz.1
+
+ZGZ_SOURCES = zgz/zgz.c zgz/bits.c zgz/deflate.c zgz/gzip.c zgz/trees.c zgz/util.c \
+ zgz/old-bzip2/*.c
+zgz/zgz: $(ZGZ_SOURCES) zgz/gzip.h
+ gcc -Wall -O2 -lz -o $@ $(ZGZ_SOURCES)
+
+extra_install:
+ install -d $(DESTDIR)/usr/bin
+ install -d $(DESTDIR)/usr/share/man/man1
+ install pristine-tar pristine-gz pristine-bz2 zgz/zgz $(DESTDIR)/usr/bin
+ install -m 0644 *.1 $(DESTDIR)/usr/share/man/man1
+
+extra_clean: pristine-tar.spec
+ rm -f zgz/zgz *.1
+
+pristine-tar.spec:
+ sed -i "s/Version:.*/Version: $$(perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)/" pristine-tar.spec
+
+.PHONY: pristine-tar.spec
+}
+}
+
+WriteMakefile(
+ NAME => 'Pristine::Tar',
+ PREFIX => "/usr/local",
+ MAN1PODS => {},
+ MAN3PODS => {},
+ PMLIBDIRS => ["Pristine"],
+);
pristine-tar (1.04) UNRELEASED; urgency=low
* pristine-gz gengz: Bugfix: Always remove uncompressed input file.
+ * Large refactoring and modularization.
-- Joey Hess <joeyh@debian.org> Fri, 23 Jul 2010 19:16:33 -0400
#!/usr/bin/make -f
%:
dh $@
+
+override_dh_auto_configure:
+ # keeps it out of /usr/local
+ dh_auto_configure -- PREFIX=/usr
+
+override_dh_auto_clean:
+ # distclean moans about MANIFEST, this is quieter
+ if [ -e Makefile ]; then $(MAKE) realclean; fi
Name: pristine-tar
-Version: 1.03
+Version: 1.04
Release: 2%{?dist}
Summary: regenerate pristine tarballs
%build
+perl Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix}
make %{?_smp_mflags}
+++ /dev/null
-=head1 NAME
-
-zgz - Frankenstein's compressor
-
-=head1 SYNOPSIS
-
-B<zgz> [options] < file > file.gz
-
-=head1 DESCRIPTION
-
-This program is an unholy combination of the BSD gzip program, a modified
-GNU gzip that supports setting an arbitrary file name and timestamp,
-and an old, rotting version of bzip2 that we dug up somewhere at midnight.
-Only the bits to do with file compression were kept.
-
-There are many arcane options which aid L<pristine-gz>(1) in re-animating
-files. Use --help to see all the gory details.
-
-=head1 AUTHOR
-
-Matthew R. Green,
-Jean-loup Gailly,
-Julian R Seward,
-Faidon Liambotis,
-Josh Triplett,
-Joey Hess
-
-Note that several of the above donors would be very suprised at finding
-parts of themselves ... er, their work ... shambling around here. Please
-direct correspondance and/or flaming pitchforks to the pristine-tar
-maintainers.
-
-=cut
--- /dev/null
+=head1 NAME
+
+zgz - Frankenstein's compressor
+
+=head1 SYNOPSIS
+
+B<zgz> [options] < file > file.gz
+
+=head1 DESCRIPTION
+
+This program is an unholy combination of the BSD gzip program, a modified
+GNU gzip that supports setting an arbitrary file name and timestamp,
+and an old, rotting version of bzip2 that we dug up somewhere at midnight.
+Only the bits to do with file compression were kept.
+
+There are many arcane options which aid L<pristine-gz>(1) in re-animating
+files. Use --help to see all the gory details.
+
+=head1 AUTHOR
+
+Matthew R. Green,
+Jean-loup Gailly,
+Julian R Seward,
+Faidon Liambotis,
+Josh Triplett,
+Joey Hess
+
+Note that several of the above donors would be very suprised at finding
+parts of themselves ... er, their work ... shambling around here. Please
+direct correspondance and/or flaming pitchforks to the pristine-tar
+maintainers.
+
+=cut