From c5dda9b7aaf839cc45c53e6021663de4e65a09d2 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 16 Jul 2010 17:48:10 +0000 Subject: [PATCH 1/4] Initialize branch F-13 for perl-Devel-Declare --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..baa94ef --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-13 From 8c80afde0c1116dd6247da1ec7bbba5b0fcec833 Mon Sep 17 00:00:00 2001 From: Iain Arnell Date: Sat, 17 Jul 2010 05:48:44 +0000 Subject: [PATCH 2/4] initial import --- .cvsignore | 1 + perl-Devel-Declare.spec | 63 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 65 insertions(+) create mode 100644 perl-Devel-Declare.spec diff --git a/.cvsignore b/.cvsignore index e69de29..7317b75 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Devel-Declare-0.006000.tar.gz diff --git a/perl-Devel-Declare.spec b/perl-Devel-Declare.spec new file mode 100644 index 0000000..0d17974 --- /dev/null +++ b/perl-Devel-Declare.spec @@ -0,0 +1,63 @@ +Name: perl-Devel-Declare +Version: 0.006000 +Release: 1%{?dist} +Summary: Adding keywords to perl, in perl +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Devel-Declare/ +Source0: http://www.cpan.org/authors/id/F/FL/FLORA/Devel-Declare-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl >= 1:5.8.1 +# for test - not yet in fedora +# BuildRequires: perl(B::Compiling) +BuildRequires: perl(B::Hooks::EndOfScope) >= 0.05 +BuildRequires: perl(B::Hooks::OP::Check) >= 0.18 +BuildRequires: perl(ExtUtils::Depends) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Sub::Name) +BuildRequires: perl(Test::More) >= 0.88 +# necessary minimum versions not automatically detected +Requires: perl(B::Hooks::EndOfScope) >= 0.05 +Requires: perl(B::Hooks::OP::Check) >= 0.18 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +Devel::Declare can install subroutines called declarators which locally +take over Perl's parser, allowing the creation of new syntax. + +%prep +%setup -q -n Devel-Declare-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install DESTDIR=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Devel* +%{_mandir}/man3/* + +%changelog +* Sat Jul 03 2010 Iain Arnell 0.006000-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..644b9f2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +5daf4af74683f57e516ffc9efdc14eae Devel-Declare-0.006000.tar.gz From f133d62716dee6866a3c04dab4c5d380d665c4d7 Mon Sep 17 00:00:00 2001 From: Iain Arnell Date: Sat, 17 Jul 2010 05:52:51 +0000 Subject: [PATCH 3/4] - cleanup spec for modern rpmbuild --- perl-Devel-Declare.spec | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/perl-Devel-Declare.spec b/perl-Devel-Declare.spec index 0d17974..382ce39 100644 --- a/perl-Devel-Declare.spec +++ b/perl-Devel-Declare.spec @@ -1,13 +1,11 @@ Name: perl-Devel-Declare Version: 0.006000 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Adding keywords to perl, in perl License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Devel-Declare/ Source0: http://www.cpan.org/authors/id/F/FL/FLORA/Devel-Declare-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: perl >= 1:5.8.1 # for test - not yet in fedora # BuildRequires: perl(B::Compiling) BuildRequires: perl(B::Hooks::EndOfScope) >= 0.05 @@ -35,8 +33,6 @@ take over Perl's parser, allowing the creation of new syntax. make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT - make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; @@ -48,9 +44,6 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %check make test -%clean -rm -rf $RPM_BUILD_ROOT - %files %defattr(-,root,root,-) %doc Changes README @@ -59,5 +52,8 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/* %changelog +* Sat Jul 17 2010 Iain Arnell 0.006000-2 +- cleanup spec for modern rpmbuild + * Sat Jul 03 2010 Iain Arnell 0.006000-1 - Specfile autogenerated by cpanspec 1.78. From 4871c7caf4676c173b8a326ae9d5eac0f7d751d2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 06:29:28 +0000 Subject: [PATCH 4/4] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 0d7bc73..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: perl-Devel-Declare -# $Id$ -NAME := perl-Devel-Declare -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index baa94ef..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-13