]> git.pld-linux.org Git - packages/urxvt-perls.git/commitdiff
simplify github url, skip debuginfo, generate perl deps
authorElan Ruusamäe <glen@delfi.ee>
Mon, 17 Feb 2014 07:04:27 +0000 (09:04 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 17 Feb 2014 07:04:27 +0000 (09:04 +0200)
urxvt-perls.spec

index 74325165c6ac904b84451845a78fcebb9d5979a0..db78736b91c49729be269fbcfef3fa6a8230ae55 100644 (file)
@@ -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
This page took 0.079733 seconds and 4 git commands to generate.