3 %bcond_without tests # do not perform "make test"
6 %define pnam Twitter-Lite
7 %include /usr/lib/rpm/macros.perl
8 Summary: Net::Twitter::Lite - A perl interface to the Twitter API
10 Name: perl-Net-Twitter-Lite
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-authors/id/M/MM/MMIMS/Net-Twitter-Lite-%{version}.tar.gz
17 # Source0-md5: eb484488a1a3aa2100986c18844fcd19
18 URL: http://search.cpan.org/dist/Net-Twitter-Lite/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Crypt-SSLeay >= 0.50
23 BuildRequires: perl-Encode
24 BuildRequires: perl-JSON-Any >= 1.21
25 BuildRequires: perl-Net-OAuth >= 0.25
26 BuildRequires: perl-URI
27 BuildRequires: perl-libwww >= 2.032
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 This module provides a perl interface to the Twitter APIs. It uses the
34 same API definitions as Net::Twitter, but without the extra bells and
35 whistles and without the additional dependencies. Same great taste,
38 This module is related to, but is not part of the Net::Twitter
39 distribution. It's API methods and API method documentation are
40 generated from Net::Twitter's internals. It exists for those who
41 cannot, or prefer not to install Moose and its dependencies.
43 You should consider upgrading to Net::Twitter for additional
44 functionality, finer grained control over features, full backwards
45 compatibility with older versions of Net::Twitter, and additional
46 error handling options.
48 # %description -l pl.UTF-8
52 %setup -q -n %{pdir}-%{pnam}-%{version}
55 %{__perl} Makefile.PL --skip \
59 %{?with_tests:%{__make} test}
62 rm -rf $RPM_BUILD_ROOT
64 %{__make} pure_install \
65 DESTDIR=$RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
76 %dir %{perl_vendorlib}/Net/Twitter
77 %{perl_vendorlib}/Net/Twitter/*.pm
78 %dir %{perl_vendorlib}/Net/Twitter/Lite
79 %{perl_vendorlib}/Net/Twitter/Lite/*.pm
81 %{_examplesdir}/%{name}-%{version}