]> git.pld-linux.org Git - packages/perl-Tie-TinyURL.git/blame - perl-Tie-TinyURL.spec
use generic url
[packages/perl-Tie-TinyURL.git] / perl-Tie-TinyURL.spec
CommitLineData
af86cd86
AM
1#
2# Conditional build:
3%bcond_with tests # do not perform "make test" (disabled since uses network)
f5ceef5e 4
af86cd86
AM
5%define pdir Tie
6%define pnam TinyURL
f5ceef5e 7%include /usr/lib/rpm/macros.perl
af86cd86
AM
8Summary: Tie::TinyURL Perl module - Tied interface to TinyURLURL.com
9Name: perl-Tie-TinyURL
10Version: 0.02
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://search.cpan.org/CPAN/authors/id/N/NI/NICOLAW/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: 7419627ca7a8fe75e1fe1ca7dc81174a
f5ceef5e 17URL: http://search.cpan.org/dist/Tie-TinyURL/
af86cd86
AM
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24The Tie::TinyURL module provides a very basic tied interface to the
25TinyURLURL.com web service.
26
27%prep
28%setup -q -n %{pdir}-%{pnam}-%{version}
29
30%build
31echo n | %{__perl} Makefile.PL \
32 INSTALLDIRS=vendor
33%{__make}
34
35%{?with_tests:%{__make} test}
36
37%install
38rm -rf $RPM_BUILD_ROOT
39
40%{__make} install \
41 DESTDIR=$RPM_BUILD_ROOT
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%files
47%defattr(644,root,root,755)
48%doc Changes README
49%{perl_vendorlib}/Tie/TinyURL.pm
50%{_mandir}/man3/*
This page took 0.112283 seconds and 4 git commands to generate.