]>
Commit | Line | Data |
---|---|---|
cbe74a8f MP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without autodeps # don't BR packages needed only for resolving deps | |
4 | %bcond_without tests # do not perform "make test" | |
5 | # | |
6 | %include /usr/lib/rpm/macros.perl | |
7 | %define pdir XML | |
8 | %define pnam Atom | |
adc19379 | 9 | Summary: XML::Atom - Atom feed and API implementation |
36514860 | 10 | Summary(pl.UTF-8): XML::Atom - implementacja API Atom |
cbe74a8f | 11 | Name: perl-XML-Atom |
52c1b34c | 12 | Version: 0.35 |
5309221a | 13 | Release: 1 |
adc19379 JB |
14 | # same as perl |
15 | License: GPL v1+ or Artistic | |
cbe74a8f MP |
16 | Group: Development/Languages/Perl |
17 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
52c1b34c | 18 | # Source0-md5: d6b1b28b32db100de5dbb45a3f561953 |
adc19379 | 19 | URL: http://search.cpan.org/dist/XML-Atom/ |
cbe74a8f MP |
20 | BuildRequires: perl-devel >= 1:5.8.0 |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
2b9c2f1a | 22 | BuildRequires: perl-Class-Data-Inheritable |
23 | BuildRequires: perl-URI | |
5ea931a6 | 24 | %if %{with autodeps} && %{with tests} |
cbe74a8f MP |
25 | BuildRequires: perl-DateTime |
26 | %endif | |
cbe74a8f MP |
27 | BuildArch: noarch |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
adc19379 JB |
31 | Atom is a syndication, API, and archiving format for weblogs and other |
32 | data. XML::Atom implements the feed format as well as a client for the | |
33 | API. | |
34 | ||
5971fc2b JR |
35 | %description -l pl.UTF-8 |
36 | Atom to API i format archiwów dla blogów i innych danych. XML::Atom | |
37 | implementuje ten format, a także klienta dla tego API. | |
cbe74a8f MP |
38 | |
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | # yes i know, its crude, but works, and its simple | |
adc19379 | 42 | %{__perl} -pi -e 's/^auto_install/#auto_install/' Makefile.PL; |
cbe74a8f MP |
43 | |
44 | %build | |
cbe74a8f MP |
45 | %{__perl} Makefile.PL \ |
46 | INSTALLDIRS=vendor | |
47 | ||
48 | %{__make} | |
cbe74a8f MP |
49 | |
50 | %{?with_tests:%{__make} test} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %{__make} pure_install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc Changes README | |
64 | %{perl_vendorlib}/XML/Atom.pm | |
65 | %dir %{perl_vendorlib}/XML/Atom | |
66 | %{perl_vendorlib}/XML/Atom/*.pm | |
67 | %{_mandir}/man3/* |