>From 51ab217f1c1ca69510f05fd94b0398d6b555692f Mon Sep 17 00:00:00 2001 From: Lionel Cons <lionel.c...@cern.ch> Date: Thu, 3 Dec 2015 10:05:33 +0100 Subject: Spec file cleanup
--- .gitignore | 2 -- perl-Net-STOMP-Client.spec | 29 +++++++++++++++-------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index f7f34ea..4245c95 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -Net-STOMP-Client-0.9.2.tar.gz -/Net-STOMP-Client-0.9.5.tar.gz /Net-STOMP-Client-1.0.tar.gz /Net-STOMP-Client-1.4.tar.gz /Net-STOMP-Client-1.5.tar.gz diff --git a/perl-Net-STOMP-Client.spec b/perl-Net-STOMP-Client.spec index 8d6d42a..40de989 100644 --- a/perl-Net-STOMP-Client.spec +++ b/perl-Net-STOMP-Client.spec @@ -1,11 +1,13 @@ -Name: perl-Net-STOMP-Client +%global cpan_name Net-STOMP-Client + +Name: perl-%{cpan_name} Version: 2.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: STOMP object oriented client module License: GPL+ or Artistic Group: Development/Libraries -URL: http://search.cpan.org/dist/Net-STOMP-Client/ -Source0: http://search.cpan.org/CPAN/authors/id/L/LC/LCONS/Net-STOMP-Client-%{version}.tar.gz +URL: http://search.cpan.org/dist/%{cpan_name}/ +Source0: http://search.cpan.org/CPAN/authors/id/L/LC/LCONS/%{cpan_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) @@ -14,7 +16,6 @@ BuildRequires: perl(Test::More) BuildRequires: perl(Messaging::Message) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) - %if 0%{?el6} BuildRequires: perl(Time::HiRes) %endif @@ -28,27 +29,24 @@ supports the major features of messaging brokers: SSL, asynchronous I/O, receipts and transactions. %prep -%setup -q -n Net-STOMP-Client-%{version} +%setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} -%install -rm -rf $RPM_BUILD_ROOT +%check +make test +%install +rm -fr $RPM_BUILD_ROOT make pure_install DESTDIR=$RPM_BUILD_ROOT - find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; - %{_fixperms} $RPM_BUILD_ROOT/* -%check -make test - %clean -rm -rf $RPM_BUILD_ROOT +rm -fr $RPM_BUILD_ROOT %files %defattr(-,root,root,-) @@ -57,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/* %changelog +* Thu Dec 3 2015 Lionel Cons <lionel.c...@cern.ch> 2.2-6 +- Spec file cleanup. + * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> - 2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild -- cgit v0.11.2 http://pkgs.fedoraproject.org/cgit/perl-Net-STOMP-Client.git/commit/?h=el5&id=51ab217f1c1ca69510f05fd94b0398d6b555692f -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org