Author: glen                         Date: Wed Oct 29 20:03:57 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- redone spec using pldcpan
- downgrade to 1.41 due weird unauthorized message in cpan

---- Files affected:
SPECS:
   perl-Config-File.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/perl-Config-File.spec
diff -u SPECS/perl-Config-File.spec:1.1 SPECS/perl-Config-File.spec:1.2
--- SPECS/perl-Config-File.spec:1.1     Wed Oct 29 18:29:08 2008
+++ SPECS/perl-Config-File.spec Wed Oct 29 21:03:52 2008
@@ -1,34 +1,44 @@
 # $Revision$, $Date$
+# TODO
+# - before upgrading to 1.42 figure out WTF means ** UNAUTHORIZED RELEASE ** 
in CPAN for this pkg?
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
+%define                pdir    Config
+%define                pnam    File
 Summary:       Config-File - Parse a simple configuration file
 Name:          perl-Config-File
-Version:       1.42
-Release:       1
+Version:       1.41
+Release:       0.1
 License:       LGPL
 Group:         Development/Languages/Perl
-Source0:       
http://search.cpan.org/CPAN/authors/id/G/GW/GWOLF/Config-File-%{version}.tar.gz
-# Source0-md5: 7e80687e56478c22f13b56932ef213f8
+Source0:       
http://www.cpan.org/modules/by-module/Config/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 0a01e87cf799ca24cab941b18ef24514
 BuildRequires: perl-devel >= 1:5.8.0
-BuildRequires: rpm-perlprov >= 3.0.3-16
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Config-File - Parse a simple configuration file
+read_config_file parses a simple configuration file and stores its
+values in an anonymous hash reference.
 
 %prep
-%setup -q -n Config-File-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-touch Makefile.PL
-%{__perl} -MExtUtils::MakeMaker -e 
'WriteMakefile(NAME=>"ConfigReader::Spec");' \
+%{__perl} Makefile.PL \
        INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} pure_install \
        DESTDIR=$RPM_BUILD_ROOT
 
 %clean
@@ -37,17 +47,18 @@
 %files
 %defattr(644,root,root,755)
 %{perl_vendorlib}/ConfigFile.pm
-%dir %{perl_vendorlib}/Config
 %{perl_vendorlib}/Config/File.pm
 %{_mandir}/man3/*
 
-
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <[EMAIL PROTECTED]>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2008/10/29 20:03:52  glen
+- redone spec using pldcpan
+- downgrade to 1.41 due weird unauthorized message in cpan
+
 Revision 1.1  2008/10/29 17:29:08  uzsolt
 - initial
-
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/perl-Config-File.spec?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to