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