Package cleanup

epel9
Petr Šabata 9 years ago
parent 748ac0d37f
commit 9cc7869def

@ -1,20 +1,29 @@
Name: perl-Text-Reform
Version: 1.20
Release: 14%{?dist}
Release: 15%{?dist}
Summary: Manual text wrapping and reformatting
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Text-Reform/
Source0: http://www.cpan.org/authors/id/C/CH/CHORNY/Text-Reform-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# Build
BuildRequires: coreutils
BuildRequires: perl
BuildRequires: perl(Module::Build)
BuildRequires: perl(strict)
# Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(strict)
# XXX: BuildRequires: perl(TeX::Hyphen)
BuildRequires: perl(vars)
# Tests only
BuildRequires: perl(overload)
BuildRequires: perl(Test::More)
# Optional tests only
BuildRequires: perl(Test::Pod) >= 1.14
BuildRequires: perl(version)
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(TeX::Hyphen)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
The module supplies a re-entrant, highly configurable replacement for the
@ -22,19 +31,14 @@ built-in Perl format() mechanism.
%prep
%setup -q -n Text-Reform-%{version}
chmod 644 Changes README lib/Text/*.pm
chmod 644 -c Changes README lib/Text/*.pm
%build
%{__perl} Build.PL installdirs=vendor
perl Build.PL installdirs=vendor
./Build
%install
rm -rf $RPM_BUILD_ROOT
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
@ -42,16 +46,15 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
# fails for almost all European languages except en
LC_NUMERIC=C ./Build test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README demo/
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Wed Mar 02 2016 Petr Šabata <contyk@redhat.com> - 1.20-15
- Package cleanup
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

Loading…
Cancel
Save