rpms/perl-Config-Any/FC-5 perl-Config-Any.spec, NONE, 1.1 sources, 1.1, 1.2

Chris Weyl (cweyl) fedora-extras-commits at redhat.com
Fri May 4 23:02:47 UTC 2007

Author: cweyl

Update of /cvs/extras/rpms/perl-Config-Any/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11881

Modified Files:
Added Files:
Log Message:
pseudo-branch of perl-Config-Any to FC-5

--- NEW FILE perl-Config-Any.spec ---
Name:           perl-Config-Any
Version:        0.07
Release:        4%{?dist}
Summary:        Load configuration from different file formats, transparently
License:        GPL or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/Config-Any/
Source0:        http://www.cpan.org/authors/id/R/RA/RATAXIS/Config-Any-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Module::Pluggable) >= 3.01
BuildRequires:  perl(version)
BuildRequires:  perl(JSON::Syck)
BuildRequires:  perl(Config::General)
BuildRequires:  perl(Config::Tiny)
BuildRequires:  perl(XML::Simple)
BuildRequires:  perl(YAML::Syck)

# tests
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Scalar::Util)

# optional tests
BuildRequires:  perl(Test::Pod), perl(Test::Pod::Coverage)

# not picked up
Requires:       perl(JSON::Syck)
Requires:       perl(Config::General)
Requires:       perl(Config::Tiny)
Requires:       perl(XML::Simple)
Requires:       perl(YAML::Syck)

Config::Any provides a facility for Perl applications and libraries to
load configuration data from multiple different file formats. It supports
XML, YAML, JSON, Apache-style configuration, Windows INI files, and even
Perl code.

%setup -q -n Config-Any-%{version}

# make rpmlint happy :)
find t/ -type f -exec sed -i 's/\r//' {} \;
perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*.t

# Filter unwanted Provides:
cat << \EOF > %{name}-prov
%{__perl_provides} $* |\
  sed -e '/perl(MockApp)/d'

%define __perl_provides %{_builddir}/Config-Any-%{version}/%{name}-prov
chmod +x %{__perl_provides}

# Filter unwanted Requires:
cat << \EOF > %{name}-req
%{__perl_requires} $* |\
  sed -e '/perl(Test::More)/d; /perl(Scalar::Util)/d'

%define __perl_requires %{_builddir}/Config-Any-%{version}/%{name}-req
chmod +x %{__perl_requires}

%{__perl} Build.PL installdirs=vendor

rm -rf %{buildroot}

./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

./Build test

rm -rf %{buildroot}

# conf/ for examples of different config types
%doc Changes README t/

* Fri May 04 2007 Chris Weyl <cweyl at alumni.drew.edu> 0.07-4
- bump

* Fri May 04 2007 Chris Weyl <cweyl at alumni.drew.edu> 0.07-3
- add entirety of t/ to %%doc

* Tue Apr 10 2007 Chris Weyl <cweyl at alumni.drew.edu> 0.07-2
- Additional requires not documented added

* Tue Apr 10 2007 Chris Weyl <cweyl at alumni.drew.edu> 0.07-1
- Specfile autogenerated by cpanspec 1.70.

Index: sources
RCS file: /cvs/extras/rpms/perl-Config-Any/FC-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	13 Apr 2007 02:14:05 -0000	1.1
+++ sources	4 May 2007 23:02:07 -0000	1.2
@@ -0,0 +1 @@
+f4233adfa8abb621be7a68f172be000a  Config-Any-0.07.tar.gz

More information about the fedora-extras-commits mailing list