From 8beea287062357f923e7a6428e4dbde894a43a05a14ac0bdc3b8281552d840b9 Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Wed, 5 Oct 2011 10:46:03 +0000 Subject: [PATCH] - 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 --- perl-Term-ReadKey.spec | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/perl-Term-ReadKey.spec b/perl-Term-ReadKey.spec index 978d52f..1de1ddb 100644 --- a/perl-Term-ReadKey.spec +++ b/perl-Term-ReadKey.spec @@ -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)