LogoopenSUSE Build Service > Projects
Sign Up | Log In

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

#
#   - Text::Reform
#

%define real_name Text-Reform
%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:   	Text-Reform - Perl module
Version:   	v1.12.2
release:   	1
packager:  	Holger Manthey <holger.manthey@bertelsmann.de>
license:   	Artistic
group:     	Applications/CPAN
url:       	http://www.cpan.org
buildroot: 	%{_tmppath}/%{name}-%{version}-%(id -u -n)
buildarch: 	noarch
source:    	%{real_name}-%{version}.tar.gz
patch:    	%{real_name}-remove-perluse.diff

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


%description
None.


%prep
%setup -q -n %{real_name}-%{version} 
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version}
%patch
%endif
chmod -R u+w %{_builddir}/%{real_name}-%{version}


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


%build
CFLAGS="$RPM_OPT_FLAGS"
%{__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}


%check
%if %maketest
%{__make} test
%endif


%install
%if 0%{?suse_version}
%perl_make_install
%perl_process_packlist
%else
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
%endif
find %{buildroot} -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" |xargs -i rm -f {}


%files
%defattr(-, root, root, 0755)
%doc Changes README demo
%doc %{_mandir}/man?/*
%dir %{perl_vendorlib}/Text
%{perl_vendorlib}/Text/Reform.pm
%if 0%{?suse_version}
/var/adm/perl-modules/%{name}
%endif


%changelog
* Sun Jun  3 2012 Holger Manthey <holger.manthey@bertelsmann.de>
- add buildrequires for perl(ExtUtils::MakeMaker)
* Wed Jun  9 2010 Holger Manthey <holger.manthey@bertelsmann.de>
- patch to remove perl usage "use 5.005"
* Thu Apr 30 2009 Holger Manthey <holger.manthey@bertelsmann.de>
- Initial build.