[521] | 1 | Summary: Perl5 module for reading configuration files and parsing command line arguments |
---|
| 2 | Name: perl-AppConfig |
---|
| 3 | Version: 1.66 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
| 5 | License: distributable |
---|
| 6 | Group: Development/Libraries |
---|
| 7 | Source0: http://www.cpan.org/authors/id/ABW/AppConfig-%{version}.tar.gz |
---|
| 8 | URL: http://search.cpan.org/~abw/AppConfig/ |
---|
| 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 10 | BuildArch: noarch |
---|
| 11 | BuildRequires: perl >= 5.004 |
---|
| 12 | |
---|
| 13 | %description |
---|
| 14 | AppConfig is a bundle of Perl5 modules for reading configuration files |
---|
| 15 | and parsing command line arguments. This is a descendant of, and |
---|
| 16 | supercedes the App::Config module. Functionality is extended over the |
---|
| 17 | final version of App::Config (1.09) and includes many new features. This |
---|
| 18 | module has been developed and in the process, renamed, as part of an |
---|
| 19 | effort to unify the various Perl modules for parsing configuration files |
---|
| 20 | and command line arguments. |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | %prep |
---|
| 24 | %setup -q -n AppConfig-%{version} |
---|
| 25 | |
---|
| 26 | %build |
---|
| 27 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
| 28 | make |
---|
| 29 | |
---|
| 30 | %install |
---|
| 31 | rm -rf $RPM_BUILD_ROOT |
---|
| 32 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
| 33 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 34 | |
---|
| 35 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 36 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
| 37 | grep -v ^%{_mandir} | |
---|
| 38 | grep -v perllocal.pod | |
---|
| 39 | grep -v "\.packlist" > %{name}.files |
---|
| 40 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 41 | echo "ERROR: EMPTY FILE LIST" |
---|
| 42 | exit -1 |
---|
| 43 | fi |
---|
| 44 | |
---|
| 45 | %check |
---|
| 46 | make test |
---|
| 47 | |
---|
| 48 | %clean |
---|
| 49 | rm -rf $RPM_BUILD_ROOT |
---|
| 50 | |
---|
| 51 | %files -f %{name}.files |
---|
| 52 | %defattr(-,root,root) |
---|
| 53 | %doc README Changes TODO |
---|
| 54 | %dir %{perl_vendorlib}/AppConfig |
---|
| 55 | %{_mandir}/man3/*3pm* |
---|
| 56 | |
---|
| 57 | %changelog |
---|
| 58 | * Sat Sep 13 2008 Shu KONNO <owa@bg.wakwak.com> 1.65-1vl5 |
---|
| 59 | - applied new versioning policy |
---|
| 60 | |
---|
| 61 | * Sun Jul 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.65-0vl1 |
---|
| 62 | - new upstream release |
---|
| 63 | - s/Copyright/License/ |
---|
| 64 | - changed Group to Development/Libraries |
---|
| 65 | - installed modules to vendor_perl dir |
---|
| 66 | |
---|
| 67 | * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 1.56-0vl1 |
---|
| 68 | - new upstream release |
---|
| 69 | |
---|
| 70 | * Mon Dec 29 2003 IWAI, Masaharu <iwai@alib.jp> 1.55-0vl1 |
---|
| 71 | - new upstream release |
---|
| 72 | - drop obsolete patch (Patch0): perl-AppConfig-pod-syntax.patch |
---|
| 73 | - drop obsolete examples directory in %%doc dir |
---|
| 74 | |
---|
| 75 | * Tue Apr 29 2003 IWAI Masaharu <iwai@alib.jp> 1.52-0vl2 |
---|
| 76 | - build with perl-5.8.0 |
---|
| 77 | |
---|
| 78 | * Mon Apr 15 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.52-0vl1 |
---|
| 79 | - first build for Vine Linux |
---|