3 %bcond_with tests # perform "make test" (requires X server)
7 Summary: Perl interface to DiaCanvas2 library
8 Summary(pl.UTF-8): Interfejs perlowy do biblioteki DiaCanvas2
13 Group: Development/Languages/Perl
14 Source0: https://downloads.sourceforge.net/gtk2-perl/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: f60fdf94b751f56eb50abf92222e0a9b
16 URL: http://gtk2-perl.sourceforge.net/
17 BuildRequires: diacanvas-devel >= 0.13.0
18 BuildRequires: perl-ExtUtils-Depends >= 0.201
19 BuildRequires: perl-ExtUtils-PkgConfig >= 1.03
20 BuildRequires: perl-Glib >= 1.040
21 BuildRequires: perl-Gnome2-Canvas >= 1.000
22 BuildRequires: perl-Gnome2-Print >= 0.94
23 BuildRequires: perl-Gtk2 >= 1.040
24 BuildRequires: perl-devel >= 1:5.8.0
25 BuildRequires: rpm-perlprov >= 4.1-13
26 BuildRequires: rpmbuild(macros) >= 1.745
27 Requires: diacanvas >= 0.13.0
28 Requires: perl-Glib >= 1.144
29 Requires: perl-Gnome2-Canvas >= 1.000
30 Requires: perl-Gnome2-Print >= 0.94
31 Requires: perl-Gtk2 >= 1.144
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 This module allows a Perl developer to use the DiaCanvas2 library to
36 create all kinds of spiffy diagramming tools.
38 Note: this module is deprecated and no longer maintained.
40 %description -l pl.UTF-8
41 Ten moduł pozwala programistom perlowym używać biblioteki DiaCanvas2
42 do tworzenia wszelkiego rodzaju narzędzi z diagramami.
44 Uwaga: ten moduł jest przestarzały i nie jest już utrzymywany.
47 Summary: Development files for Perl Gnome2-Dia bindings
48 Summary(pl.UTF-8): Pliki programistyczne wiązań Gnome2-Dia dla Perla
49 Group: Development/Languages/Perl
50 Requires: %{name} = %{version}-%{release}
51 Requires: diacanvas-devel >= 0.13.0
52 Requires: perl-Cairo-devel
53 Requires: perl-Glib-devel >= 1.120
54 Requires: perl-Gtk2-devel >= 1.121
57 Development files for Perl Gnome2-Dia bindings.
59 %description devel -l pl.UTF-8
60 Pliki programistyczne wiązań Gnome2-Dia dla Perla.
63 %setup -q -n %{pdir}-%{pnam}-%{version}
66 %{__perl} Makefile.PL \
71 OPTIMIZE="%{rpmcflags}"
73 %{?with_tests:%{__make} test}
76 rm -rf $RPM_BUILD_ROOT
79 DESTDIR=$RPM_BUILD_ROOT
81 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Gnome2/Dia/*.pod
82 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Gnome2/Dia/{Event,Export,Shape}/*.pod
85 rm -rf $RPM_BUILD_ROOT
88 %defattr(644,root,root,755)
89 %doc ChangeLog NEWS README
90 %{perl_vendorarch}/Gnome2/Dia.pm
91 %dir %{perl_vendorarch}/Gnome2/Dia
92 %dir %{perl_vendorarch}/auto/Gnome2/Dia
93 %attr(755,root,root) %{perl_vendorarch}/auto/Gnome2/Dia/Dia.so
94 %{_mandir}/man3/Gnome2::Dia*.3pm*
97 %defattr(644,root,root,755)
98 %{perl_vendorarch}/Gnome2/Dia/Install