]> git.pld-linux.org Git - packages/perl-Getopt-Mixed.git/blob - perl-Getopt-Mixed.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Getopt-Mixed.git] / perl-Getopt-Mixed.spec
1 %define         pdir    Getopt
2 %define         pnam    Mixed
3 Summary:        Getopt::Mixed - getopt processing with both long and short options
4 Summary(pl.UTF-8):      Getopt::Mixed - obsługa długich i krótkich opcji
5 Name:           perl-Getopt-Mixed
6 Version:        1.10
7 Release:        1
8 License:        GPL v2+
9 Group:          Development/Languages/Perl
10 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
11 # Source0-md5:  9d384322a4368b326efdf899bce5838a
12 URL:            http://search.cpan.org/dist/Getopt-Mixed/
13 BuildRequires:  perl-devel >= 1:5.8.0
14 BuildRequires:  rpm-perlprov >= 4.1-13
15 Provides:       perl(Getopt::Mixed) = %{version}
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 The Getopt::Mixed Perl module is intended to be the
21 "Getopt-to-end-all-Getop's". It combines flexibility and simplicity.
22 It supports both short options (introduced by "-") and long options
23 (introduced by "--"). Short options which do not take an argument can
24 be grouped together. Short options which do take an argument must be
25 the last option in their group, because everything following the
26 option will be considered to be its argument.
27
28 %description -l pl.UTF-8
29 Moduł Perla Getopt::Mixed został pomyślany jako zastępujący wszystkie
30 podprogramy do pobierania opcji. Łączy w sobie elastyczność i
31 prostotę. Obsługuje zarówno opcje krótkie (poprzedzone "-"), jak i
32 długie (poprzedzone "--"). Krótkie opcje bezargumentowe muszą być
33 ostatnimi w swojej grupie, gdyż wszystko, co następuje po takiej opcji
34 byłoby traktowane jako jej argument.
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc README
56 %{perl_vendorlib}/Getopt/Mixed.pm
57 %{_mandir}/man3/*
This page took 0.06558 seconds and 4 git commands to generate.