]> git.pld-linux.org Git - SPECS.git/blob - perl-Graph.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / perl-Graph.spec
1 #
2 # Conditional build:
3 %bcond_without  tests # do not perform "make test"
4
5 %define         pdir    Graph
6 Summary:        Graph - graph operations
7 Summary(pl.UTF-8):      Graph - operacje na grafach
8 Name:           perl-Graph
9 Version:        0.94
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/Graph/Graph-%{version}.tar.gz
15 # Source0-md5:  21c7c5b108fdf898ca1679a0509ccbb2
16 URL:            http://search.cpan.org/dist/Graph/
17 BuildRequires:  perl-Heap >= 0.01
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 Graph - graphs and graph algorithms. This is just a front-end class
25 for Graph::Directed and Graph::Base.
26
27 %description -l pl.UTF-8
28 Graph - grafy i algorytmy z nimi związane. Jest to po prostu klasa
29 zewnętrzna dla Graph::Directed i Graph::Base.
30
31 %prep
32 %setup -q -n Graph-%{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} install \
45         DESTDIR=$RPM_BUILD_ROOT
46 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
47 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Graph/.packlist
48 rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Graph.pod
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc README Changes
56 %dir %{perl_vendorlib}/Graph
57 %{perl_vendorlib}/Graph.pm
58 %{perl_vendorlib}/Graph/*
59 %{perl_vendorlib}/Heap071/
60 %{perl_vendorlib}/auto/Heap071/
61 %{_mandir}/man3/*
This page took 0.168698 seconds and 3 git commands to generate.