Modernize spec file
This commit is contained in:
parent
d8b5dc196f
commit
ca2da6a638
@ -1,54 +1,51 @@
|
||||
Summary: Get number of occupied columns of a string on terminal
|
||||
Name: perl-Text-CharWidth
|
||||
Version: 0.04
|
||||
Release: 24%{?dist}
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Text-CharWidth/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/K/KU/KUBOTA/Text-CharWidth-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::Simple)
|
||||
BuildRequires: perl(XSLoader)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Summary: Get number of occupied columns of a string on terminal
|
||||
Name: perl-Text-CharWidth
|
||||
Version: 0.04
|
||||
Release: 25%{?dist}
|
||||
License: GPL+ or Artistic
|
||||
|
||||
URL: http://search.cpan.org/dist/Text-CharWidth/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/K/KU/KUBOTA/Text-CharWidth-%{version}.tar.gz
|
||||
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(Test::Simple)
|
||||
BuildRequires: perl(XSLoader)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%{?perl_default_filter}
|
||||
|
||||
%description
|
||||
This is a module to provide equivalent feature as wcwidth(3) and
|
||||
wcswidth(3). This also provides mblen(3) equivalent subroutine.
|
||||
wcswidth(3). This also provides mblen(3) equivalent subroutine.
|
||||
|
||||
%prep
|
||||
%setup -q -n Text-CharWidth-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
make
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f \( -name .packlist -or -name perllocal.pod \
|
||||
-or \( -name '*.bs' -a -empty \) \) -exec rm -f {} \;
|
||||
find %{buildroot} -depth -type d -exec rmdir {} \;
|
||||
chmod -R u+w %{buildroot}
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README Changes
|
||||
%{perl_vendorarch}/Text
|
||||
%{perl_vendorarch}/auto/Text
|
||||
%{_mandir}/man3/Text::CharWidth.3pm*
|
||||
|
||||
%changelog
|
||||
* Tue Feb 02 2016 Emmanuel Seyman <emmanuel@seyman.fr> - 0.04-25
|
||||
- Modernize spec file
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user