SPECS: perl-Package-Constants.spec (NEW) - initial, builds here

agaran agaran at pld-linux.org
Sun Dec 14 00:09:58 CET 2008


Author: agaran                       Date: Sat Dec 13 23:09:58 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial, builds here

---- Files affected:
SPECS:
   perl-Package-Constants.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Package-Constants.spec
diff -u /dev/null SPECS/perl-Package-Constants.spec:1.1
--- /dev/null	Sun Dec 14 00:09:58 2008
+++ SPECS/perl-Package-Constants.spec	Sun Dec 14 00:09:52 2008
@@ -0,0 +1,71 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Package
+%define	pnam	Constants
+Summary:	Package::Constants - List all constants declared in a package
+#Summary(pl.UTF-8):	
+Name:		perl-Package-Constants
+Version:	0.02
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Package/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	4027c258b0163322f8f220f253e81142
+# generic URL, check or change before uncommenting
+URL:		http://search.cpan.org/dist/Package-Constants/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES README
+%{perl_vendorlib}/Package/*.pm
+#%%{perl_vendorlib}/Package/Constants
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008/12/13 23:09:52  agaran
+- initial, builds here
+
================================================================


More information about the pld-cvs-commit mailing list