]> git.pld-linux.org Git - packages/perl-Graph-Easy.git/blob - perl-Graph-Easy.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Graph-Easy.git] / perl-Graph-Easy.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Graph
6 %define pnam    Easy
7 Summary:        Graph::Easy - Convert or render graphs (as ASCII, HTML, SVG or via Graphviz)
8 #Summary(pl.UTF-8):     
9 Name:           perl-Graph-Easy
10 Version:        0.71
11 Release:        1
12 License:        GPL
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Graph/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  e0ff999694110fda648d8b19a2da53df
16 URL:            http://search.cpan.org/dist/Graph-Easy/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 %endif
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Graph::Easy lets you generate graphs consisting of various shaped
26 nodes connected by edges (with optional labels).
27
28 # %description -l pl.UTF-8
29 # TODO
30
31 %prep
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33
34 %build
35 %{__perl} Makefile.PL \
36         INSTALLDIRS=vendor
37 %{__make}
38
39 %{?with_tests:%{__make} test}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43
44 %{__make} pure_install \
45         DESTDIR=$RPM_BUILD_ROOT
46
47 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc CHANGES INSTALL README TODO
56 %attr(755,root,root) %{_bindir}/*
57 %{perl_vendorlib}/Graph/*.pm
58 %{perl_vendorlib}/Graph/Easy
59 %{_mandir}/man?/*
60 %{_examplesdir}/%{name}-%{version}
This page took 0.112866 seconds and 3 git commands to generate.