[packages/urxvt-perls] simplify github url, skip debuginfo, generate perl deps
glen
glen at pld-linux.org
Mon Feb 17 08:04:38 CET 2014
commit 91ff24075a8359de8d64959998a3d6a265840b1b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Feb 17 09:04:27 2014 +0200
simplify github url, skip debuginfo, generate perl deps
urxvt-perls.spec | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
---
diff --git a/urxvt-perls.spec b/urxvt-perls.spec
index 7432516..db78736 100644
--- a/urxvt-perls.spec
+++ b/urxvt-perls.spec
@@ -1,30 +1,39 @@
-Summary: A small collection of perl extensions for the rxvt-unicode terminal emulator
+# NOTE
+# - not noarch due package dir
+%include /usr/lib/rpm/macros.perl
+Summary: A small collection of Perl extensions for the rxvt-unicode terminal emulator
Name: urxvt-perls
Version: 2.1
Release: 1
License: GPL v2+
Group: X11/Applications
-Source0: http://github.com/muennich/urxvt-perls/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
+Source0: http://github.com/muennich/urxvt-perls/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 656dace02d55536954154f530e8a0cb3
URL: http://github.com/muennich/urxvt-perls
+BuildRequires: rpm-perlprov >= 4.1-13
Requires: urxvt
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define urxvtperldir %{_libdir}/urxvt/perl
+# no arch specific blobs
+%define _enable_debug_packages 0
+
%description
-A small collection of perl extensions for the rxvt-unicode terminal
+A small collection of Perl extensions for the rxvt-unicode terminal
emulator.
%prep
%setup -q
+%{__sed} -i -e '1s,#!.*perl,#!%{__perl},' *
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{urxvtperldir}
-install clipboard $RPM_BUILD_ROOT%{urxvtperldir}
-install keyboard-select $RPM_BUILD_ROOT%{urxvtperldir}
-install url-select $RPM_BUILD_ROOT%{urxvtperldir}
+install -p clipboard $RPM_BUILD_ROOT%{urxvtperldir}
+install -p keyboard-select $RPM_BUILD_ROOT%{urxvtperldir}
+install -p url-select $RPM_BUILD_ROOT%{urxvtperldir}
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/urxvt-perls.git/commitdiff/91ff24075a8359de8d64959998a3d6a265840b1b
More information about the pld-cvs-commit
mailing list