From dc93bca0e8ea1f7976985cc36551f455e25d87f4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corse...@fedoraproject.org>
Date: Sun, 14 Feb 2016 06:56:27 +0100
Subject: Add BR: /usr/bin/pod2man (F24FTBFS, RHBZ#1307845).

- Add perl run-time deps to BRs.
- Add %license.
- Modernize spec.
---
 pakiti.spec | 26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

diff --git a/pakiti.spec b/pakiti.spec
index 17475d7..02f0819 100644
--- a/pakiti.spec
+++ b/pakiti.spec
@@ -7,14 +7,22 @@
 Summary:       Patching status monitoring tool
 Name:          pakiti
 Version:       3.0.1
-Release:       3%{?dist}
+Release:       4%{?dist}
 URL:           https://github.com/CESNET/pakiti3
 License:       ASL 2.0 and BSD
 Group:         Applications/Internet
 Source0:       %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
-BuildRoot:     %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildArch:     noarch
 BuildRequires: perl
+BuildRequires:  /usr/bin/pod2man
+
+BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(FindBin)
+BuildRequires:  perl(Getopt::Long)
+BuildRequires:  perl(Pod::Usage)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
 
 %description
 Runs rpm -qa or dpkg -l on the hosts and sends results to a central server.
@@ -36,23 +44,25 @@ central Pakiti server using openssl s_client or curl.
 
 %build
 mkdir man
-pod2man --section=1 bin/pakiti-client > man/pakiti-client.1
+/usr/bin/pod2man --section=1 bin/pakiti-client > man/pakiti-client.1
 
 %install
-rm -rf %{buildroot}
 install -D -m755 bin/pakiti-client   %{buildroot}%{_bindir}/pakiti-client
 install -D -m644 man/pakiti-client.1 
%{buildroot}%{_mandir}/man1/pakiti-client.1
 
-%clean
-rm -rf %{buildroot}
-
 %files client
-%defattr(-,root,root,-)
+%license LICENSE
 %{_bindir}/*
 %{_mandir}/man?/*
 
 
 %changelog
+* Sun Feb 14 2016 Ralf Corsépius <corse...@fedoraproject.org> - 3.0.1-4
+- Add BR: /usr/bin/pod2man (F24FTBFS, RHBZ#1307845).
+- Add perl run-time deps to BRs.
+- Add %%license.
+- Modernize spec.
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
3.0.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/pakiti.git/commit/?h=master&id=dc93bca0e8ea1f7976985cc36551f455e25d87f4
--
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

Reply via email to