- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-XML-Registry.git] / perl-XML-Registry.spec
1 %define         pdir    XML
2 %define         pnam    Registry
3 Summary:        XML::Registry perl module
4 Summary(pl.UTF-8):      Moduł perla XML::Registry
5 Name:           perl-XML-Registry
6 Version:        0.02
7 Release:        11
8 # same as perl
9 License:        GPL v1+ or Artistic
10 Group:          Development/Languages/Perl
11 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
12 # Source0-md5:  20b3d5614c884a4fac19401779c99c9f
13 URL:            http://search.cpan.org/dist/XML-Registry/
14 BuildRequires:  perl-devel >= 1:5.8.0
15 BuildRequires:  rpm-perlprov >= 4.1-13
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 XML::Registry - module for loading and saving an XML registry.
21
22 %description -l pl.UTF-8
23 XML::Registry - moduł do ładowania i zapisywania rejestru XML.
24
25 %prep
26 %setup -q -n %{pdir}-%{pnam}-%{version}
27
28 %build
29 %{__perl} Makefile.PL \
30         INSTALLDIRS=vendor
31 %{__make}
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
36
37 %{__make} install \
38         DESTDIR=$RPM_BUILD_ROOT
39 cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %doc Changes README
47 %{perl_vendorlib}/XML/Registry.pm
48 %{_mandir}/man3/*
49 %{_examplesdir}/%{name}-%{version}
This page took 0.166344 seconds and 4 git commands to generate.