From: Elan Ruusamäe Date: Tue, 25 Nov 2014 19:59:24 +0000 (+0200) Subject: use generic url X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=20f191facfaae2cb8cd777cdf4a17df25a439c98;p=packages%2Fperl-Net-SOCKS.git use generic url --- diff --git a/perl-Net-SOCKS.spec b/perl-Net-SOCKS.spec index f82cf0f..dddd105 100644 --- a/perl-Net-SOCKS.spec +++ b/perl-Net-SOCKS.spec @@ -1,7 +1,9 @@ # # Conditional build: %bcond_without tests # do not perform "make test" -# + +%define pdir Net +%define pnam SOCKS %include /usr/lib/rpm/macros.perl Summary: Net::SOCKS perl module Summary(pl.UTF-8): Moduł perla Net::SOCKS @@ -14,8 +16,9 @@ Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/Net/SOCKS-%{version}.tar.gz # Source0-md5: 81f63a1fb252d211a083909fbdc1611b Patch0: %{name}-paths.patch -BuildRequires: rpm-perlprov >= 4.1-13 +URL: http://search.cpan.org/dist/Net-SOCKS/ BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -42,7 +45,7 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -install example $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp -p example $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT