forked from pool/perl-Term-ReadKey
- provide versioned obsoletes/provides
- small specfile cleanup OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-ReadKey?expand=0&rev=3
This commit is contained in:
parent
7517cc92d6
commit
8beea28706
@ -20,19 +20,19 @@
|
||||
Name: perl-Term-ReadKey
|
||||
Version: 2.30
|
||||
Release: 0
|
||||
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
|
||||
Summary: Module for Simple Terminal Control
|
||||
Source: http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/TermReadKey-%{version}.tar.gz
|
||||
Url: http://search.cpan.org/dist/Term-ReadKey
|
||||
Group: Development/Libraries/Perl
|
||||
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
Requires: /bin/stty
|
||||
BuildRequires: perl-macros
|
||||
Source: http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/TermReadKey-%{version}.tar.gz
|
||||
BuildRequires: make
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl-macros
|
||||
Requires: /bin/stty
|
||||
Provides: perl-TermReadKey = %{version}
|
||||
Obsoletes: perl-TermReadKey
|
||||
Obsoletes: perl-TermReadKey < 2.30
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This module, ReadKey, provides ioctl control for terminals and Win32 consoles
|
||||
@ -43,11 +43,11 @@ size, and retrieval/modification of the control characters.
|
||||
|
||||
%prep
|
||||
%setup -q -n "TermReadKey-%{version}"
|
||||
%__sed -i '/^auto_install/d' Makefile.PL
|
||||
sed -i '/^auto_install/d' Makefile.PL
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
%__make %{?_smp_flags}
|
||||
perl Makefile.PL PREFIX="%{_prefix}"
|
||||
make %{?_smp_flags}
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
@ -57,11 +57,11 @@ size, and retrieval/modification of the control characters.
|
||||
%ifnarch s390 s390x
|
||||
|
||||
%check
|
||||
%__make test
|
||||
make test
|
||||
%endif
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user