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
|
Name: perl-Term-ReadKey
|
||||||
Version: 2.30
|
Version: 2.30
|
||||||
Release: 0
|
Release: 0
|
||||||
|
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
|
||||||
Summary: Module for Simple Terminal Control
|
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
|
Url: http://search.cpan.org/dist/Term-ReadKey
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
|
Source: http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/TermReadKey-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%{perl_requires}
|
|
||||||
Requires: /bin/stty
|
|
||||||
BuildRequires: perl-macros
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
Requires: /bin/stty
|
||||||
Provides: perl-TermReadKey = %{version}
|
Provides: perl-TermReadKey = %{version}
|
||||||
Obsoletes: perl-TermReadKey
|
Obsoletes: perl-TermReadKey < 2.30
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module, ReadKey, provides ioctl control for terminals and Win32 consoles
|
This module, ReadKey, provides ioctl control for terminals and Win32 consoles
|
||||||
@ -43,11 +43,11 @@ size, and retrieval/modification of the control characters.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "TermReadKey-%{version}"
|
%setup -q -n "TermReadKey-%{version}"
|
||||||
%__sed -i '/^auto_install/d' Makefile.PL
|
sed -i '/^auto_install/d' Makefile.PL
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
perl Makefile.PL PREFIX="%{_prefix}"
|
||||||
%__make %{?_smp_flags}
|
make %{?_smp_flags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
@ -57,11 +57,11 @@ size, and retrieval/modification of the control characters.
|
|||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%__make test
|
make test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user