]> git.pld-linux.org Git - packages/perl-Chart.git/blob - perl-Chart.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Chart.git] / perl-Chart.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Chart
6 Summary:        Chart - create .png or .jpg files with charts
7 Summary(pl.UTF-8):      Chart - tworzenie wykresów w formacie .png lub .jpg
8 Name:           perl-Chart
9 Version:        2.4.3
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-module/%{pdir}/%{pdir}-%{version}.tar.gz
15 # Source0-md5:  977026fa73c0fc1e900f1ebe5eee06b7
16 URL:            http://search.cpan.org/dist/Chart/
17 %{?with_tests:BuildRequires:    perl-GD}
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Chart - a series of charting modules.
25
26 %description -l pl.UTF-8
27 Chart - zestaw modułów do tworzenia wykresów.
28
29 %prep
30 %setup -q -n %{pdir}-%{version}
31
32 %build
33 %{__perl} Makefile.PL \
34         INSTALLDIRS=vendor
35 %{__make}
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 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Chart/.packlist
46 rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Chart.pod
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc README TODO
54 %{perl_vendorlib}/Chart/*.pm
55 %{_mandir}/man3/Chart.3pm*
This page took 0.073223 seconds and 4 git commands to generate.