]> git.pld-linux.org Git - packages/perl-WeakRef.git/blob - perl-WeakRef.spec
perl 5.38.0 rebuild
[packages/perl-WeakRef.git] / perl-WeakRef.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    WeakRef
6 Summary:        WeakRef - an API to the Perl weak references
7 Summary(pl.UTF-8):      WeakRef - API do perlowych słabych referencji
8 Name:           perl-WeakRef
9 Version:        0.01
10 Release:        17
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/L/LU/LUKKA/%{pdir}-%{version}.tar.gz
15 # Source0-md5:  3162df7a6eda0dfb44676dd9ebfa3c4c
16 URL:            http://search.cpan.org/dist/WeakRef/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 WeakRef - an API to the Perl weak references.
23
24 %description -l pl.UTF-8
25 WeakRef - API do perlowych słabych referencji.
26
27 %prep
28 %setup -q -n %{pdir}-%{version}
29
30 %build
31 %{__perl} Makefile.PL \
32         INSTALLDIRS=vendor
33 %{__make} \
34         CC="%{__cc}" \
35         OPTIMIZE="%{rpmcflags}"
36
37 %{?with_tests:%{__make} test}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 %{__make} install \
43         DESTDIR=$RPM_BUILD_ROOT
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc Changes README
51 %{perl_vendorarch}/*.pm
52 %dir %{perl_vendorarch}/auto/WeakRef/
53 %attr(755,root,root) %{perl_vendorarch}/auto/WeakRef/*.so
54 %{_mandir}/man3/*
This page took 0.093145 seconds and 4 git commands to generate.