]> git.pld-linux.org Git - SPECS.git/blob - perl-XString.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-XString.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4 #
5 %define         pnam    XString
6 Summary:        XString - Isolated String helpers from B
7 Summary(pl.UTF-8):      XString - wyizolowane z B klasy pomocnicze do łańcuchów
8 Name:           perl-XString
9 Version:        0.005
10 Release:        1
11 # same as perl
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-authors/id/A/AT/ATOOMIC/%{pnam}-%{version}.tar.gz
15 # Source0-md5:  da5bbefeeb545e5c2eba2c7576c72e39
16 URL:            https://metacpan.org/release/XString
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildRequires:  rpmbuild(macros) >= 1.745
20 %if %{with tests}
21 BuildRequires:  perl-Test-Simple >= 0.87
22 %endif
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 XString provides the B string helpers in one isolated package.
27 Right now only cstring and perlstring are available.
28
29 %description -l pl.UTF-8
30 XString dostarcza klasy pomocnicze B do łańcuchów w jedyn,
31 samodzielnym pakiecie. Obecnie dostępne są tylko cstring i perlstring.
32
33 %prep
34 %setup -q -n %{pnam}-%{version}
35
36 %build
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39 %{__make} \
40         CC="%{__cc}" \
41         OPTIMIZE="%{rpmcflags}"
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} pure_install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 install -d $RPM_BUILD_ROOT%{_examplesdir}
52 cp -pr examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README
60 %{perl_vendorarch}/XString.pm
61 %dir %{perl_vendorarch}/auto/XString
62 %attr(755,root,root) %{perl_vendorarch}/auto/XString/XString.so
63 %{_mandir}/man3/XString.3pm*
64 %{_examplesdir}/%{name}-%{version}
This page took 0.044772 seconds and 3 git commands to generate.