]> git.pld-linux.org Git - packages/perl-XML-Atom.git/blob - perl-XML-Atom.spec
150886f706372b211c2ac06082a43a05ff7127ce
[packages/perl-XML-Atom.git] / perl-XML-Atom.spec
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
9 Summary:        XML::Atom - Atom feed and API implementation
10 Summary(pl):    XML::Atom - implementacja API Atom
11 Name:           perl-XML-Atom
12 Version:        0.19
13 Release:        0
14 # same as perl
15 License:        GPL v1+ or Artistic
16 Group:          Development/Languages/Perl
17 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 URL:            http://search.cpan.org/dist/XML-Atom/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with autodeps} || %{with tests}
22 BuildRequires:  perl-DateTime
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Atom is a syndication, API, and archiving format for weblogs and other
29 data. XML::Atom implements the feed format as well as a client for the
30 API.
31
32 %description -l pl
33 Atom to API i format archiwów dla blogów i innych danych. XML::Atom
34 implementuje ten format, a tak¿e klienta dla tego API.
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38 # yes i know, its crude, but works, and its simple
39 %{__perl} -pi -e 's/^auto_install/#auto_install/' Makefile.PL;
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} pure_install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc Changes README
61 %{perl_vendorlib}/XML/Atom.pm
62 %dir %{perl_vendorlib}/XML/Atom
63 %{perl_vendorlib}/XML/Atom/*.pm
64 %{_mandir}/man3/*
This page took 0.028292 seconds and 2 git commands to generate.