]> git.pld-linux.org Git - packages/perl-Module-Util.git/blob - perl-Module-Util.spec
01c9072af6b80ed5f2d74a78e40c83f0d50d2b30
[packages/perl-Module-Util.git] / perl-Module-Util.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Module
6 %define         pnam    Util
7 %include        /usr/lib/rpm/macros.perl
8 Summary:        Module::Util - Module name tools and transformations
9 #Summary(pl.UTF-8):     
10 Name:           perl-Module-Util
11 Version:        1.07
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-module/Module/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  d9e5d48b7f1aee18582fab57f27cccfa
18 # generic URL, check or change before uncommenting
19 #URL:           http://search.cpan.org/dist/Module-Util/
20 BuildRequires:  perl-Module-Build
21 BuildRequires:  perl-devel >= 1:5.8.0
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 %if %{with tests}
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 This module provides a few useful functions for manipulating module
30 names. Its main aim is to centralise some of the functions commonly
31 used by modules that manipulate other modules in some way, like
32 converting module names to relative paths.
33
34 # %description -l pl.UTF-8
35 # TODO
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Build.PL \
42         destdir=$RPM_BUILD_ROOT \
43         installdirs=vendor
44 ./Build
45
46 %{?with_tests:./Build test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 ./Build install
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc Changes README
59 %{perl_vendorlib}/Module/*.pm
60 %attr(755,root,root) %{_bindir}/pm_which
61 %{_mandir}/man1/pm_which.1p*
62 %{_mandir}/man3/*
This page took 0.025695 seconds and 2 git commands to generate.