Sync with fedora-rpmdevtools' Perl spec template to fix x86_64 build.

This commit is contained in:
Ville Skyttä 2004-12-16 19:37:16 +00:00
parent 3c68a3337c
commit bf2b0a816f

View File

@ -1,6 +1,8 @@
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
Name: perltidy Name: perltidy
Version: 0.0 Version: 20041021
Release: 3.20031021 Release: 1
Epoch: 0 Epoch: 0
Summary: Tool for indenting and reformatting Perl scripts 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) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl BuildRequires: perl >= 1:5.6.1
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description %description
Perltidy is a Perl script which indents and reformats Perl scripts to 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 %build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags}
make test
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install \ make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
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 {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/* chmod -R u+w $RPM_BUILD_ROOT/*
rm -f docs/perltidy.1 # already in mandir rm -f docs/perltidy.1 # already in mandir
%check || :
make test
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -56,11 +59,16 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc BUGS CHANGES COPYING README TODO docs %doc BUGS CHANGES COPYING README TODO docs
%{_bindir}/perltidy %{_bindir}/perltidy
%{_libdir}/perl*/* %{perl_vendorlib}/Perl
%{_mandir}/man?/* %{_mandir}/man1/perltidy.1*
%{_mandir}/man3/Perl::Tidy.3*
%changelog %changelog
* Thu Dec 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 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ä <ville.skytta at iki.fi> 0:0.0-0.fdr.3.20031021 * Wed Oct 22 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.3.20031021
- Update to 20031021. - Update to 20031021.