rpms/perl-namespace-clean/devel import.log, NONE, 1.1 perl-namespace-clean.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Chris Weyl
cweyl at fedoraproject.org
Mon Sep 8 21:40:59 UTC 2008
- Previous message (by thread): rpms/munin/F-8 munin-1.2.6-ntp_offset.patch, NONE, 1.1 munin-1.2.6-postfix-config, NONE, 1.1 sources, 1.3, 1.4 .cvsignore, 1.3, 1.4 munin.spec, 1.13, 1.14
- Next message (by thread): rpms/transmission/devel transmission.spec,1.25,1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: cweyl
Update of /cvs/extras/rpms/perl-namespace-clean/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6593/devel
Modified Files:
.cvsignore sources
Added Files:
import.log perl-namespace-clean.spec
Log Message:
initial commit
--- NEW FILE import.log ---
perl-namespace-clean-0_08-1_fc9:HEAD:perl-namespace-clean-0.08-1.fc9.src.rpm:1220910024
--- NEW FILE perl-namespace-clean.spec ---
Name: perl-namespace-clean
Version: 0.08
Release: 1%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Summary: Keep your namespace tidy
Source: http://search.cpan.org/CPAN/authors/id/P/PH/PHAYLON/namespace-clean-%{version}.tar.gz
Url: http://search.cpan.org/dist/namespace-clean
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(FindBin)
BuildRequires: perl(Scope::Guard) >= 0.02
BuildRequires: perl(Symbol)
BuildRequires: perl(Test::More) >= 0.62
%description
When you define a function, or import one, into a Perl package, it will
naturally also be available as a method. This does not per se cause
problems, but it can complicate subclassing and, for example, plugin
classes that are included via multiple inheritance by loading them as
base classes.
The 'namespace::clean' pragma will remove all previously declared or
imported symbols at the end of the current package's compile cycle.
Functions called in the package itself will still be bound by their
name, but they won't show up as methods on your class or instances.
%prep
%setup -q -n namespace-clean-%{version}
# note we first filter out the bits in _docdir...
cat << \EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} `perl -p -e 's|%{_docdir}/%{name}-%{version}\S+||'`
EOF
%define __perl_provides %{_builddir}/namespace-clean-%{version}/%{name}-prov
chmod +x %{__perl_provides}
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'`
EOF
%define __perl_requires %{_builddir}/namespace-clean-%{version}/%{name}-req
chmod +x %{__perl_requires}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
%check
make test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changes README t/
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%changelog
* Sat Sep 06 2008 Chris Weyl <cweyl at alumni.drew.edu> 0.08-1
- initial Fedora packaging
- generated with cpan2dist (CPANPLUS::Dist::Fedora version 0.0.1)
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-namespace-clean/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 8 Sep 2008 15:20:35 -0000 1.1
+++ .cvsignore 8 Sep 2008 21:40:29 -0000 1.2
@@ -0,0 +1 @@
+namespace-clean-0.08.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-namespace-clean/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 8 Sep 2008 15:20:35 -0000 1.1
+++ sources 8 Sep 2008 21:40:29 -0000 1.2
@@ -0,0 +1 @@
+9dc350acfbcffe1434027928f3497925 namespace-clean-0.08.tar.gz
- Previous message (by thread): rpms/munin/F-8 munin-1.2.6-ntp_offset.patch, NONE, 1.1 munin-1.2.6-postfix-config, NONE, 1.1 sources, 1.3, 1.4 .cvsignore, 1.3, 1.4 munin.spec, 1.13, 1.14
- Next message (by thread): rpms/transmission/devel transmission.spec,1.25,1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list