3 %bcond_with tests # do not perform "make test" (disabled since uses network)
5 %include /usr/lib/rpm/macros.perl
8 Summary: Tie::TinyURL Perl module - Tied interface to TinyURLURL.com
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
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The Tie::TinyURL module provides a very basic tied interface to the
24 TinyURLURL.com web service.
27 %setup -q -n %{pdir}-%{pnam}-%{version}
30 echo n | %{__perl} Makefile.PL \
34 %{?with_tests:%{__make} test}
37 rm -rf $RPM_BUILD_ROOT
40 DESTDIR=$RPM_BUILD_ROOT
43 rm -rf $RPM_BUILD_ROOT
46 %defattr(644,root,root,755)
48 %{perl_vendorlib}/Tie/TinyURL.pm