[packages/perl-GraphViz2] Initial

arekm arekm at pld-linux.org
Mon Sep 18 09:22:16 CEST 2023


commit 54aaf5c4ff954031f1d76d23c02d6cddf01f81c9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Sep 18 08:03:43 2023 +0200

    Initial

 perl-GraphViz2.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
---
diff --git a/perl-GraphViz2.spec b/perl-GraphViz2.spec
new file mode 100644
index 0000000..847c472
--- /dev/null
+++ b/perl-GraphViz2.spec
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_without	tests		# unit tests
+#
+%define		pdir	GraphViz2
+Summary:	GraphViz2 Perl module - interface to the GraphViz graphing tool
+Summary(pl.UTF-8):	Moduł Perla GraphViz - interfejs do narzędzia grafowego GraphViz
+Name:		perl-GraphViz2
+Version:	2.67
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/GraphViz2/%{pdir}-%{version}.tar.gz
+# Source0-md5:	3573cf425d6630e25e6fbea678ac7f77
+URL:		https://metacpan.org/dist/GraphViz2
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRequires:	rpmbuild(macros) >= 1.745
+%if %{with tests}
+BuildRequires:	perl(Data::Section::Simple) >= 0.02
+BuildRequires:	perl(Test::Snapshot) >= 0.06
+BuildRequires:	perl-File-Which >= 1.21
+BuildRequires:	perl-Graph >= 0.9716
+BuildRequires:	perl-IPC-Run3 >= 0.048
+BuildRequires:	perl-Moo >= 2.001001
+BuildRequires:	perl-Type-Tiny >= 1.000005
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This modules provides an interface to layout and generate images of
+directed graphs in a variety of formats (PostScript, PNG, etc.) using
+the "dot" and "neato" programs from the GraphViz project.
+
+%description -l pl.UTF-8
+Ten moduł udostępnia interfejs do planowania i generowania obrazów
+skierowanych grafów w różnych formatach (PostScript, PNG itd.) przy
+użyciu programów "dot" i "neato" z projektu GraphViz.
+
+%prep
+%setup -q -n %{pdir}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/GraphViz2.pm
+%{perl_vendorlib}/GraphViz2
+%{_mandir}/man3/GraphViz2*.3*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-GraphViz2.git/commitdiff/54aaf5c4ff954031f1d76d23c02d6cddf01f81c9



More information about the pld-cvs-commit mailing list