[perl-Class-Field] Initial import from review (rhbz #752836)

Daniel P. Berrange berrange at fedoraproject.org
Tue Nov 15 13:41:34 UTC 2011


commit 016a08a7fe109e4e17f110b5f07c15da648f215e
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Tue Nov 15 13:39:29 2011 +0000

    Initial import from review (rhbz #752836)

 .gitignore            |    4 ++++
 perl-Class-Field.spec |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6d1ec6d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.tar.gz
+noarch/
+.build*.log
+*.rpm
diff --git a/perl-Class-Field.spec b/perl-Class-Field.spec
new file mode 100644
index 0000000..73ef46a
--- /dev/null
+++ b/perl-Class-Field.spec
@@ -0,0 +1,46 @@
+Name:           perl-Class-Field
+Version:        0.15
+Release:        2%{?dist}
+Summary:        Class Field Accessor Generator
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Class-Field/
+Source0:        http://www.cpan.org/authors/id/I/IN/INGY/Class-Field-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+Class::Field exports two subroutines, field and const. These functions are
+used to declare fields and constants in your class.
+
+%prep
+%setup -q -n Class-Field-%{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
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue Nov 15 2011 Daniel P. Berrange <berrange at redhat.com> - 0.15-2
+- Updated with suggestions from review rhbz #752836
+
+* Mon Nov 07 2011 Daniel P. Berrange <berrange at redhat.com> - 0.15-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..aa1657e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+896190854b14efd6502021b01e8cb916  Class-Field-0.15.tar.gz


More information about the scm-commits mailing list