]> git.pld-linux.org Git - SPECS.git/blob - perl-Devel-SawAmpersand.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / perl-Devel-SawAmpersand.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Devel
6 %define         pnam    SawAmpersand
7 Summary:        Devel::SawAmpersand - querying sawampersand variable
8 Summary(pl.UTF-8):      Devel::SawAmpersand - pobieranie wartości zmiennej sawampersand
9 Name:           perl-Devel-SawAmpersand
10 Version:        0.32
11 Release:        4
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Devel/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  40fabeb3a624ecc27d86b286b68ff215
17 URL:            http://search.cpan.org/dist/Devel-SawAmpersand/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Devel::SawAmpersand Perl module is for querying sawampersand variable.
24 The global variable sawampersand gets set to true in that moment in
25 which the parser sees one of $, $', and $&. It never can be set to
26 false again. Trying to set it to false breaks the handling of the $,
27 $&, and $' completely.
28
29 %description -l pl.UTF-8
30 Moduł Perla Devel::SawAmpersand służy do pobierania wartości zmiennej
31 sawampersand. Zmienna globalna sawampersand jest ustawiana na "true".
32 gdy analizator składniowy Perla zobaczy $, $' lub $&. Nie można jej
33 ponownie ustawić na "false". Próba uczynienia tego spowodowałaby
34 całkowite popsucie obsługi symboli $, $& i $'.
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make} \
43         CC="%{__cc}" \
44         OPTIMIZE="%{rpmcflags}"
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc ChangeLog
60 %{perl_vendorarch}/B/FindAmpersand.pm
61 %{perl_vendorarch}/Devel/*.pm
62 %dir %{perl_vendorarch}/auto/Devel/SawAmpersand
63 %attr(755,root,root) %{perl_vendorarch}/auto/Devel/SawAmpersand/SawAmpersand.so
64 %{_mandir}/man3/*
This page took 0.105555 seconds and 3 git commands to generate.