[521] | 1 | %define pkgname Config-IniFiles |
---|
| 2 | |
---|
| 3 | Summary: A perl module for reading .ini-style configuration files. |
---|
| 4 | Name: perl-%{pkgname} |
---|
| 5 | Version: 2.39 |
---|
[3736] | 6 | Release: 2%{?_dist_release} |
---|
[521] | 7 | Group: Development/Libraries |
---|
| 8 | License: distributable |
---|
| 9 | URL: http://config-inifiles.sourceforge.net/ |
---|
| 10 | Source0: %{pkgname}-%{version}.tar.gz |
---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 12 | BuildArch: noarch |
---|
| 13 | |
---|
| 14 | %description |
---|
| 15 | Config::IniFiles provides a way to have readable configuration files |
---|
| 16 | outside your Perl script. Configurations can be imported (inherited, |
---|
| 17 | stacked,...), sections can be grouped, and settings can be accessed |
---|
| 18 | from a tied hash. |
---|
| 19 | |
---|
| 20 | %prep |
---|
| 21 | %setup -q -n %{pkgname}-%{version} |
---|
| 22 | |
---|
| 23 | %build |
---|
| 24 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor |
---|
| 25 | make |
---|
| 26 | make test |
---|
| 27 | |
---|
| 28 | %install |
---|
| 29 | rm -rf $RPM_BUILD_ROOT |
---|
| 30 | make install |
---|
| 31 | |
---|
| 32 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
| 33 | |
---|
| 34 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | \ |
---|
| 35 | sed "s@^$RPM_BUILD_ROOT@@g" | \ |
---|
| 36 | grep -v perllocal.pod | \ |
---|
| 37 | grep -v "\.packlist" > %{pkgname}-%{version}-filelist |
---|
| 38 | if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then |
---|
| 39 | echo "ERROR: EMPTY FILE LIST" |
---|
| 40 | exit -1 |
---|
| 41 | fi |
---|
| 42 | |
---|
| 43 | %clean |
---|
| 44 | rm -rf $RPM_BUILD_ROOT |
---|
| 45 | |
---|
| 46 | %files -f %{pkgname}-%{version}-filelist |
---|
| 47 | %defattr(-,root,root) |
---|
| 48 | %doc README MANIFEST |
---|
| 49 | |
---|
| 50 | %changelog |
---|
[3736] | 51 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.39-2 |
---|
| 52 | - rebuild with perl-5.12.3 |
---|
| 53 | |
---|
[521] | 54 | * Tue Jan 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.39-1 |
---|
| 55 | - apply new versioning policy |
---|
| 56 | |
---|
| 57 | * Wed May 16 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.39-0vl1 |
---|
| 58 | - new upstream release |
---|
| 59 | |
---|
| 60 | * Sun Oct 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.38-0vl1 |
---|
| 61 | - initial build for Vine Linux |
---|
| 62 | |
---|