]> git.pld-linux.org Git - packages/perl-Color-Calc.git/blob - perl-Color-Calc.spec
- added BR: perl-Graphics-ColorNames-WWW
[packages/perl-Color-Calc.git] / perl-Color-Calc.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 %include        /usr/lib/rpm/macros.perl
7 %define         pdir    Color
8 %define         pnam    Calc
9 Summary:        Simple calculations with RGB colors
10 Name:           perl-Color-Calc
11 Version:        1.04
12 Release:        1
13 License:        same as perl
14 Group:          Development/Languages/Perl
15 Source0:        http://search.cpan.org/CPAN/authors/id/C/CF/CFAERBER/%{pdir}-%{pnam}-%{version}.tar.gz
16 URL:            http://search.cpan.org/dist/Color-Calc/
17 BuildRequires:  perl-Graphics-ColorNames
18 BuildRequires:  perl-Graphics-ColorNames-WWW
19 BuildRequires:  perl-Graphics-ColorObject
20 BuildRequires:  perl-Params-Validate
21 BuildRequires:  perl-devel >= 1:5.8.0
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Simple calculations with RGB colors
28
29 %prep
30 %setup -q %{version}q -n %{pdir}-%{pnam}-%{version}
31
32 %build
33 %{__perl} Makefile.PL \
34         INSTALLDIRS=vendor
35
36 %{__make}
37
38 %{?with_tests:%{__make} test}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 %{__make} pure_install \
44         DESTDIR=$RPM_BUILD_ROOT
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc Changes README
52 %{perl_vendorlib}/Color/*.pm
53 %dir %{perl_vendorlib}/Color/Calc
54 %{perl_vendorlib}/Color/Calc/*.pm
55 %{_mandir}/man3/*
This page took 0.104229 seconds and 4 git commands to generate.