]> git.pld-linux.org Git - packages/perl-Net-Twitter-Lite.git/blob - perl-Net-Twitter-Lite.spec
- up to 0.10004
[packages/perl-Net-Twitter-Lite.git] / perl-Net-Twitter-Lite.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4
5 %define         pdir    Net
6 %define         pnam    Twitter-Lite
7 %include        /usr/lib/rpm/macros.perl
8 Summary:        Net::Twitter::Lite - A perl interface to the Twitter API
9 #Summary(pl.UTF-8):
10 Name:           perl-Net-Twitter-Lite
11 Version:        0.10004
12 Release:        1
13 # same as perl
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
21 %if %{with tests}
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
28 %endif
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
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,
36 less filling.
37
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.
42
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.
47
48 # %description -l pl.UTF-8
49 # TODO
50
51 %prep
52 %setup -q -n %{pdir}-%{pnam}-%{version}
53
54 %build
55 %{__perl} Makefile.PL --skip \
56         INSTALLDIRS=vendor
57 %{__make}
58
59 %{?with_tests:%{__make} test}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63
64 %{__make} pure_install \
65         DESTDIR=$RPM_BUILD_ROOT
66
67 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %defattr(644,root,root,755)
75 %doc Changes README
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
80 %{_mandir}/man3/*
81 %{_examplesdir}/%{name}-%{version}
This page took 0.075229 seconds and 4 git commands to generate.