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