commit 5d6e016c516b4b243675ae34eb9490d329350d4e Author: Petr PÃsaÅ <ppisar@xxxxxxxxxx> Date: Wed Jun 8 16:08:41 2011 +0200 Import .gitignore | 1 + perl-Fedora-Rebuild.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..f3944f5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Fedora-Rebuild-v0.0.1.tar.gz diff --git a/perl-Fedora-Rebuild.spec b/perl-Fedora-Rebuild.spec new file mode 100644 index 0000000..0f0c745 --- /dev/null +++ b/perl-Fedora-Rebuild.spec @@ -0,0 +1,59 @@ +Name: perl-Fedora-Rebuild +Version: 0.0.1 +Release: 1%{?dist} +Summary: Rebuilds Fedora packages from scratch +License: GPLv3+ +Group: Development/Libraries +URL: http://ppisar.fedorapeople.org/Fedora-Rebuild/ +Source0: http://ppisar.fedorapeople.org/Fedora-Rebuild/Fedora-Rebuild-v%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +# Tests: +BuildRequires: perl(Data::Compare) +BuildRequires: perl(File::Path) +BuildRequires: perl(Moose) +BuildRequires: perl(namespace::clean) +BuildRequires: perl(RPM2) +BuildRequires: perl(RPM::VersionCompare) +BuildRequires: perl(Test::Simple) +BuildRequires: perl(version) >= 0.77 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: fedpkg +Requires: git +Requires: koji +Requires: rpmdevtools + +%description +Main goal is to rebuild perl modules packages for Fedora. The rebuild is +driven from bottom to top, i.e. from perl interpreter to modules depending +on intermediate modules. This way, it's possible to upgrade perl +interpreter to incompatible version and to rebuild all modules against the +new interpreter. + +%prep +%setup -q -n Fedora-Rebuild-v%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc COPYING +%{_bindir}/* +%{perl_vendorlib}/* +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Tue Jun 07 2011 Petr Pisar <ppisar@xxxxxxxxxx> 0.0.1-1 +- Specfile autogenerated by cpanspec 1.78. +- Remove BuildRoot and defattr code diff --git a/sources b/sources index e69de29..7530e03 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a709fde8f1e9bde6f9a13ad14e1bc3ee Fedora-Rebuild-v0.0.1.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel