]> git.pld-linux.org Git - SPECS.git/blob - perl-Gnome2-Rsvg.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Gnome2-Rsvg.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test" (requires X server)
4 #
5 %define         pdir    Gnome2
6 %define         pnam    Rsvg
7 Summary:        Perl librsvg bindings
8 Summary(pl.UTF-8):      Wiązania librsvg dla Perla
9 Name:           perl-Gnome2-Rsvg
10 Version:        0.12
11 Release:        1
12 License:        LGPL v2.1+
13 Group:          Development/Languages/Perl
14 Source0:        https://downloads.sourceforge.net/gtk2-perl/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  7aea405c022ea2d531a83e210709dc88
16 Patch0:         %{name}-update.patch
17 URL:            http://gtk2-perl.sourceforge.net/
18 BuildRequires:  librsvg-devel >= 2.16.0
19 BuildRequires:  perl-Cairo >= 1.00
20 BuildRequires:  perl-ExtUtils-Depends >= 0.205
21 BuildRequires:  perl-ExtUtils-PkgConfig >= 1.07
22 BuildRequires:  perl-Glib >= 1.140
23 BuildRequires:  perl-Gtk2 >= 1.140
24 BuildRequires:  perl-devel >= 1:5.8.0
25 BuildRequires:  rpm-perlprov >= 4.1-13
26 BuildRequires:  rpmbuild(macros) >= 1.745
27 Requires:       librsvg >= 2.16.0
28 Requires:       perl-Cairo >= 1.00
29 Requires:       perl-Glib >= 1.140
30 Requires:       perl-Gtk2 >= 1.140
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 This module provides Perl access to librsvg library.
35
36 Note: this module is deprecated and no longer maintained.
37
38 %description -l pl.UTF-8
39 Ten moduł daje dostęp z poziomu Perla do biblioteki librsvg.
40
41 Uwaga: ten moduł jest przestarzały i nie jest już utrzymywany.
42
43 %package devel
44 Summary:        Development files for Perl Gnome2-Rsvg bindings
45 Summary(pl.UTF-8):      Pliki programistyczne wiązań Gnome2-Rsvg dla Perla
46 Group:          Development/Languages/Perl
47 Requires:       %{name} = %{version}-%{release}
48 Requires:       librsvg-devel >= 2.16.0
49 Requires:       perl-Cairo-devel >= 1.00
50 Requires:       perl-Glib-devel >= 1.140
51 Requires:       perl-Gtk2-devel >= 1.140
52
53 %description devel
54 Development files for Perl Gnome2-Rsvg bindings.
55
56 %description devel -l pl.UTF-8
57 Pliki programistyczne wiązań Gnome2-Rsvg dla Perla.
58
59 %prep
60 %setup -q -n %{pdir}-%{pnam}-%{version}
61 %patch0 -p1
62
63 %build
64 %{__perl} Makefile.PL \
65         INSTALLDIRS=vendor
66
67 %{__make} \
68         CC="%{__cc}" \
69         OPTIMIZE="%{rpmcflags}"
70
71 %{?with_tests:%{__make} test}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 %{__make} install \
77         DESTDIR=$RPM_BUILD_ROOT
78
79 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Gnome2/Rsvg/*.pod
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %files
85 %defattr(644,root,root,755)
86 %{perl_vendorarch}/Gnome2/Rsvg.pm
87 %dir %{perl_vendorarch}/Gnome2/Rsvg
88 %dir %{perl_vendorarch}/auto/Gnome2/Rsvg
89 %attr(755,root,root) %{perl_vendorarch}/auto/Gnome2/Rsvg/Rsvg.so
90 %{_mandir}/man3/Gnome2::Rsvg*.3pm*
91
92 %files devel
93 %defattr(644,root,root,755)
94 %{perl_vendorarch}/Gnome2/Rsvg/Install
This page took 0.574859 seconds and 3 git commands to generate.