[521] | 1 | %define pkgname Config-IniFiles |
---|
| 2 | |
---|
| 3 | Summary: A perl module for reading .ini-style configuration files. |
---|
| 4 | Name: perl-%{pkgname} |
---|
[5792] | 5 | Version: 2.68 |
---|
| 6 | Release: 1%{?_dist_release} |
---|
[521] | 7 | Group: Development/Libraries |
---|
[5792] | 8 | License: GPL+ or Artistic |
---|
[521] | 9 | URL: http://config-inifiles.sourceforge.net/ |
---|
| 10 | Source0: %{pkgname}-%{version}.tar.gz |
---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 12 | BuildArch: noarch |
---|
| 13 | |
---|
[5792] | 14 | BuildRequires: perl(Module::Build::Compat) |
---|
| 15 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 16 | BuildRequires: perl(Test::More) |
---|
| 17 | BuildArch: noarch |
---|
| 18 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 19 | |
---|
[521] | 20 | %description |
---|
| 21 | Config::IniFiles provides a way to have readable configuration files |
---|
| 22 | outside your Perl script. Configurations can be imported (inherited, |
---|
| 23 | stacked,...), sections can be grouped, and settings can be accessed |
---|
| 24 | from a tied hash. |
---|
| 25 | |
---|
| 26 | %prep |
---|
| 27 | %setup -q -n %{pkgname}-%{version} |
---|
| 28 | |
---|
| 29 | %build |
---|
[5792] | 30 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
| 31 | make %{?_smp_mflags} |
---|
[521] | 32 | |
---|
| 33 | %install |
---|
[5792] | 34 | rm -rf %{buildroot} |
---|
| 35 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
| 36 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 37 | find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
| 38 | chmod -R u+w %{buildroot}/* |
---|
[521] | 39 | |
---|
| 40 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
| 41 | |
---|
[5792] | 42 | find %{buildroot}%{_prefix} -type f -print | \ |
---|
| 43 | sed "s@^%{buildroot}@@g" | \ |
---|
[521] | 44 | grep -v perllocal.pod | \ |
---|
| 45 | grep -v "\.packlist" > %{pkgname}-%{version}-filelist |
---|
| 46 | if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then |
---|
| 47 | echo "ERROR: EMPTY FILE LIST" |
---|
| 48 | exit -1 |
---|
| 49 | fi |
---|
| 50 | |
---|
[5792] | 51 | %check |
---|
| 52 | make test |
---|
| 53 | |
---|
| 54 | |
---|
[521] | 55 | %clean |
---|
[5792] | 56 | rm -rf %{buildroot} |
---|
[521] | 57 | |
---|
[5792] | 58 | |
---|
[521] | 59 | %files -f %{pkgname}-%{version}-filelist |
---|
| 60 | %defattr(-,root,root) |
---|
| 61 | %doc README MANIFEST |
---|
| 62 | |
---|
[5792] | 63 | |
---|
[521] | 64 | %changelog |
---|
[5792] | 65 | * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.68-1 |
---|
| 66 | - updated to 2.68 |
---|
| 67 | |
---|
[3736] | 68 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.39-2 |
---|
| 69 | - rebuild with perl-5.12.3 |
---|
| 70 | |
---|
[521] | 71 | * Tue Jan 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.39-1 |
---|
| 72 | - apply new versioning policy |
---|
| 73 | |
---|
| 74 | * Wed May 16 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.39-0vl1 |
---|
| 75 | - new upstream release |
---|
| 76 | |
---|
| 77 | * Sun Oct 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.38-0vl1 |
---|
| 78 | - initial build for Vine Linux |
---|
| 79 | |
---|