From 0bf80b10e41d39c74438208ae77fa2cdd8d4d2a3 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 09:28:11 +0100 Subject: [PATCH] automatic version update by autodist [release 0.02-2mamba;Wed Jul 10 2013] --- README.md | 2 ++ perl-Package-Constants.spec | 61 +++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 perl-Package-Constants.spec diff --git a/README.md b/README.md index aff2cc8..881f026 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Package-Constants +Package::Constants lists all the constants defined in a certain package. This can be useful for, among others, setting up an autogenerated @EXPORT/@EXPORT_OK for a Constants.pm file. + diff --git a/perl-Package-Constants.spec b/perl-Package-Constants.spec new file mode 100644 index 0000000..71ef9fe --- /dev/null +++ b/perl-Package-Constants.spec @@ -0,0 +1,61 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Package-Constants +Version: 0.02 +Release: 2mamba +Summary: Package::Constants -- List all constants declared in a package +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Automatic Build System +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/K/KA/KANE/Package-Constants-%{version}.tar.gz +License: GPL, Artistic +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Package::Constants lists all the constants defined in a certain package. This can be useful for, among others, setting up an autogenerated @EXPORT/@EXPORT_OK for a Constants.pm file. + +%prep + +%setup -q -n Package-Constants-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Wed Jul 10 2013 Automatic Build System 0.02-2mamba +- automatic version update by autodist + +* Fri Feb 06 2009 Silvan Calarco 0.02-1mamba +- automatic update by autodist + +* Wed Nov 05 2008 Silvan Calarco 0.01-2mamba +- automatic rebuild by autodist + +* Mon Oct 20 2008 gil 0.01-1mamba +- package created by autospec