]>
Commit | Line | Data |
---|---|---|
efa8a946 SP |
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-devel >= 1:5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | BuildRequires: perl-Params-Validate | |
20 | BuildRequires: perl-Graphics-ColorNames | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Simple calculations with RGB colors | |
26 | ||
27 | %prep | |
28 | %setup -q %{version}q -n %{pdir}-%{pnam}-%{version} | |
29 | ||
30 | %build | |
31 | %{__perl} Makefile.PL \ | |
32 | INSTALLDIRS=vendor | |
33 | ||
34 | %{__make} | |
35 | ||
36 | %{?with_tests:%{__make} test} | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %{__make} pure_install \ | |
42 | DESTDIR=$RPM_BUILD_ROOT | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc Changes README | |
50 | %{perl_vendorlib}/Color/Calc.pm | |
51 | %{_mandir}/man3/* |