Update dependencies; Modernize spec
This commit is contained in:
parent
fbb64133e1
commit
07d3e240d9
@ -1,19 +1,23 @@
|
|||||||
Name: perl-Text-Unidecode
|
Name: perl-Text-Unidecode
|
||||||
Version: 0.04
|
Version: 0.04
|
||||||
Release: 18%{?dist}
|
Release: 19%{?dist}
|
||||||
Summary: US-ASCII transliterations of Unicode text
|
Summary: US-ASCII transliterations of Unicode text
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/Text-Unidecode/
|
URL: http://search.cpan.org/dist/Text-Unidecode/
|
||||||
Source0: http://www.cpan.org/modules/by-module/Text/Text-Unidecode-%{version}.tar.gz
|
Source0: http://www.cpan.org/modules/by-module/Text/Text-Unidecode-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
BuildRequires: perl
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
BuildRequires: perl(Exporter)
|
BuildRequires: perl(Exporter)
|
||||||
|
BuildRequires: perl(integer)
|
||||||
|
BuildRequires: perl(strict)
|
||||||
BuildRequires: perl(Test)
|
BuildRequires: perl(Test)
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
BuildRequires: perl(utf8)
|
||||||
|
BuildRequires: perl(vars)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
@ -25,40 +29,33 @@ characters (i.e., the universally displayable characters between
|
|||||||
pronunciation expressed by the text in some other writing
|
pronunciation expressed by the text in some other writing
|
||||||
system.
|
system.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Text-Unidecode-%{version}
|
%setup -q -n Text-Unidecode-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||||
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 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/*
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc README TODO.txt ChangeLog
|
%doc README TODO.txt ChangeLog
|
||||||
%{perl_vendorlib}/Text/
|
%{perl_vendorlib}/Text/
|
||||||
%{_mandir}/man3/*.3*
|
%{_mandir}/man3/*.3*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 12 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.04-18
|
||||||
|
- Update dependencies
|
||||||
|
- Use DESTDIR rather than PERL_INSTALL_ROOT
|
||||||
|
- Remove build root cleaning, BuildRoot definition and %%defattr
|
||||||
|
|
||||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-18
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-18
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user