]> git.pld-linux.org Git - packages/perl-Getopt-Euclid.git/blob - perl-Getopt-Euclid.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Getopt-Euclid.git] / perl-Getopt-Euclid.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 %define pdir    Getopt
7 %define pnam    Euclid
8 Summary:        Getopt::Euclid - Executable Uniform Command-Line Interface Descriptions
9 Summary(pl.UTF-8):      Getopt::Euclid - ujednolicone opisy interfejsu linii poleceń
10 Name:           perl-Getopt-Euclid
11 Version:        0.3.2
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/Getopt/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  70de1b3351f52ba8a741c1e7d51049b0
18 URL:            http://search.cpan.org/dist/Getopt-Euclid/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with autodeps} || %{with tests}
22 BuildRequires:  perl-version
23 BuildRequires:  perltidy
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Getopt::Euclid uses your program's own documentation to create a
30 command-line argument parser. This ensures that your program's
31 documented interface and its actual interface always agree.
32
33 %description -l pl.UTF-8
34 Getopt::Euclid wykorzystuje dokumentację programu do utworzenia
35 analizatora argumentów linii poleceń. Daje to pewność, że
36 udokumentowany i faktyczny interfejs programu będą się zawsze zgadzać.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Build.PL \
43         destdir=$RPM_BUILD_ROOT \
44         installdirs=vendor
45 ./Build
46
47 %{?with_tests:./Build test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 ./Build install
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README
60 %{perl_vendorlib}/Getopt/*.pm
61 %{perl_vendorlib}/Getopt/Euclid
62 %{_mandir}/man3/*
This page took 0.062497 seconds and 4 git commands to generate.