[sendxmpp] Modernize spec file
Petr Pisar
ppisar at fedoraproject.org
Fri Oct 21 12:00:17 UTC 2011
commit 4ecea73f8c46287356187f06829501f52c3cfcbf
Author: Petr Písař <ppisar at redhat.com>
Date: Fri Oct 21 14:00:03 2011 +0200
Modernize spec file
sendxmpp.spec | 32 ++++++++++++--------------------
1 files changed, 12 insertions(+), 20 deletions(-)
---
diff --git a/sendxmpp.spec b/sendxmpp.spec
index 2df65f7..21e50b4 100644
--- a/sendxmpp.spec
+++ b/sendxmpp.spec
@@ -1,49 +1,41 @@
Name: sendxmpp
Version: 0.0.8
-Release: 4%{?dist}
-Summary: A perl script to send xmpp messages
-
+Release: 5%{?dist}
+Summary: A Perl script to send XMPP messages
Group: Applications/Communications
License: GPLv2
URL: http://sendxmpp.platon.sk/
Source0: http://sendxmpp.platon.sk/%{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
BuildArch: noarch
-BuildRequires: perl(ExtUtils::MakeMaker), perl(Net::XMPP)
+BuildRequires: perl(ExtUtils::MakeMaker)
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
-A perl script to send xmpp messages.
-
+This is a program to send XMPP (Jabber) messages from the command line, not
+unlike mail(1). Messages can be sent both to individual recipients and
+chat rooms.
%prep
%setup -q
-
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
-
%install
-rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-chmod -R u+w %{buildroot}/*
-
-
-%clean
-rm -rf %{buildroot}
-
+%{_fixperms} $RPM_BUILD_ROOT/*
%files
-%defattr(-,root,root,-)
-%doc README
+%doc Changes README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
-
%changelog
+* Fri Oct 21 2011 Petr Pisar <ppisar at redhat.com> - 0.0.8-5
+- Modernize spec file
+
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.0.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the scm-commits
mailing list