From bf2b0a816f0cff4f3a076c559b90238450d47711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 16 Dec 2004 19:37:16 +0000 Subject: [PATCH] Sync with fedora-rpmdevtools' Perl spec template to fix x86_64 build. --- perltidy.spec | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/perltidy.spec b/perltidy.spec index 7972de0..9317ec1 100644 --- a/perltidy.spec +++ b/perltidy.spec @@ -1,6 +1,8 @@ +%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} + Name: perltidy -Version: 0.0 -Release: 3.20031021 +Version: 20041021 +Release: 1 Epoch: 0 Summary: Tool for indenting and reformatting Perl scripts @@ -11,7 +13,8 @@ Source: http://download.sf.net/perltidy/Perl-Tidy-20031021.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: perl +BuildRequires: perl >= 1:5.6.1 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Perltidy is a Perl script which indents and reformats Perl scripts to @@ -31,23 +34,23 @@ brackets because it is very good at localizing errors. %build -CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS" -make test +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -make install \ - PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \ - INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib} -find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \ - -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';' +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* rm -f docs/perltidy.1 # already in mandir +%check || : +make test + + %clean rm -rf $RPM_BUILD_ROOT @@ -56,11 +59,16 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %doc BUGS CHANGES COPYING README TODO docs %{_bindir}/perltidy -%{_libdir}/perl*/* -%{_mandir}/man?/* +%{perl_vendorlib}/Perl +%{_mandir}/man1/perltidy.1* +%{_mandir}/man3/Perl::Tidy.3* %changelog +* Thu Dec 16 2004 Ville Skyttä - 0:20041021-1 +- Sync with fedora-rpmdevtools' Perl spec template to fix x86_64 build. +- Move version to the version field. + * Wed Oct 22 2003 Ville Skyttä 0:0.0-0.fdr.3.20031021 - Update to 20031021.