LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File perl-AppConfig.spec of Package perl-AppConfig (Project home:csbuild:Perl)

# spec file for package perl-AppConfig

# norootforbuild

%define real_name AppConfig
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
%define perl_archlib %(eval "`perl -V:archlib`"; echo $archlib)
%define perl_privlib %(eval "`perl -V:privlib`"; echo $privlib)
%define maketest 0

Name:           perl-%{real_name}
Summary:        Perl module for reading configuration files and parsing command line arguments
Version:        1.66
Release:        1
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic
Url:            http://cpan.org/modules/by-module/AppConfig/
Source:         %{real_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Requires:       perl-File-HomeDir
BuildRequires:  perl-File-HomeDir

BuildRequires:  perl(ExtUtils::MakeMaker)
%if 0%{?fedora_version}
BuildRequires:  perl-devel

AppConfig is a Perl module for managing application configuration
information. It maintains the state of any number of variables and
provides methods for parsing configuration files and command line

    Andy Wardley <abw@cre.canon.co.uk

%setup -q -n %{real_name}-%{version}
chmod -R u+rw %{_builddir}/%{real_name}-%{version}

grep -rsl '^#!.*perl' . |
grep -v '.bak$' |xargs --no-run-if-empty \
%__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
%{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.
9[1-6]|6\.0[0-5]/ '`
%{__make} %{?_smp_mflags}

%if %maketest
%{__make} test

%if 0%{?suse_version}
make DESTDIR=$RPM_BUILD_ROOT install_vendor
find $RPM_BUILD_ROOT/usr -type f -name perllocal.pod |xargs -i rm -f {}
find $RPM_BUILD_ROOT/usr -type d -depth -exec rmdir {} \; 2>/dev/null
find %{buildroot} -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" |xargs -i rm -f {}
find %{buildroot} -type f |xargs -i chmod 644 {}

[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%doc %{_mandir}/man?/*
%if 0%{?suse_version}

* Thu May 31 2012 Holger Manthey <holger.manthey@bertelsmann.de>
- remove perl-version require
* Tue Jun  8 2010 Holger Manthey <holger.manthey@bertelsmann.de>
- Initial build.