[perl-Class-Accessor-Classy] Initial import (#980222).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 108305f3b08ff9a5cba1fac1e3aac6ff5bfd85c2
Author: John C. Peterson <jcp@xxxxxxxxxx>
Date:   Fri Jul 5 10:56:46 2013 -0700

    Initial import (#980222).

 .gitignore                      |    1 +
 perl-Class-Accessor-Classy.spec |   74 +++++++++++++++++++++++++++++++++++++++
 sources                         |    1 +
 3 files changed, 76 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..845c22b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Class-Accessor-Classy-v0.9.1.tar.gz
diff --git a/perl-Class-Accessor-Classy.spec b/perl-Class-Accessor-Classy.spec
new file mode 100644
index 0000000..9fc4e72
--- /dev/null
+++ b/perl-Class-Accessor-Classy.spec
@@ -0,0 +1,74 @@
+# Declare the CPAN name of the module
+%define mod_basename Class-Accessor-Classy
+
+Name:           perl-%{mod_basename}
+Version:        0.9.1
+Release:        2%{?dist}
+Summary:        Accessors with minimal inheritance
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/%{mod_basename}/
+Source:         http://www.cpan.org/modules/by-module/Class/%{mod_basename}-v%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Module::Build) >= 0.28
+# These are needed for "Build test"
+BuildRequires:  perl(attributes)
+BuildRequires:  perl(version)
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+The Class::Accessor::Classy Perl module provides an extremely small
+footprint accessor/mutator declaration scheme for fast and convenient
+object attribute setup.  It is intended as a simple and speedy mechanism
+for preventing hash-key typos rather than a full-blown object system
+with type checking and so on.
+
+The accessor methods appear as a hidden parent class of your package
+and generally try to stay out of the way.  The accessors and mutators
+generated are of the form C<foo()> and C<set_foo()>, respectively.
+
+%prep
+%setup -q -n %{mod_basename}-v%{version}
+
+%build
+# Using Module::Build since a Build.PL is present
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+%install
+%if 0%{?rhel}
+rm -rf %{buildroot}
+%endif
+./Build install destdir=%{buildroot} create_packlist=0
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} %{buildroot}/*
+
+%check
+./Build test
+
+%clean
+%if 0%{?rhel}
+rm -rf %{buildroot}
+%endif
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue Jul  2 2013 John C. Peterson <jcp@xxxxxxxxxx> 0.9.1-2
+- Added missing build requirements identified by the reviewer.
+
+* Wed Jun 26 2013 John C. Peterson <jcp@xxxxxxxxxx> 0.9.1-1
+- Some minor cosmetic fixes to improve readability and to pacify rpmlint.
+
+* Tue Jun 18 2013 John C. Peterson <jcp@xxxxxxxxxx> 0.9.1-1
+- Baseline specfile autogenerated by cpanspec 1.78.
+
diff --git a/sources b/sources
index e69de29..b34d69d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+766422ad464f04cc56b9dce490db9935  Class-Accessor-Classy-v0.9.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





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux