commit 896a84674491aca71c7304057be464dd10da56d2
Author: Denis Fateyev <de...@fateyev.com>
Date:   Sun Oct 12 00:45:00 2014 +0600

    perl-enum: initial submission (#1141486)

 .gitignore     |    1 +
 perl-enum.spec |   67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 69 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c6e6a2a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/enum-1.10.tar.gz
diff --git a/perl-enum.spec b/perl-enum.spec
new file mode 100644
index 0000000..9c0ac0e
--- /dev/null
+++ b/perl-enum.spec
@@ -0,0 +1,67 @@
+Name:           perl-enum
+Version:        1.10
+Release:        1%{?dist}
+Summary:        C-style enumerated types and bitmask flags in Perl
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/enum/
+
+Source0:        
http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/enum-%{version}.tar.gz
+%{?el5:BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} 
-n)}
+BuildArch:      noarch
+
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker)
+
+# Run-time:
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+
+# Testing
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(warnings)
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+
+%description
+This module is used to define a set of constants with ordered numeric
+values, similar to the enum type in the C programming language.
+You can also define bitmask constants, where the value assigned to
+each constant has exactly one bit set (e.g. 1, 2, 4, 8, etc).
+
+
+%prep
+%setup -q -n enum-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+%if 0%{?el5}
+rm -rf $RPM_BUILD_ROOT
+%endif
+make pure_install DESTDIR=$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
+
+%if 0%{?el5}
+%clean
+rm -rf $RPM_BUILD_ROOT
+%endif
+
+%files
+%doc README Changes
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+
+%changelog
+* Sat Sep 13 2014 Denis Fateyev <de...@fateyev.com> - 1.10-1
+- Initial release
diff --git a/sources b/sources
index e69de29..858c34d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e67f8d34a0104710dc50f38c958e90e9  enum-1.10.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to