]> git.pld-linux.org Git - packages/perl-Glib.git/blame - perl-Glib.spec
- release 3 (by relup.sh)
[packages/perl-Glib.git] / perl-Glib.spec
CommitLineData
a2820eaf 1#
2# Conditional build:
ec9b7e4b 3%bcond_without tests # do not perform "make test"
bd268f68 4
8d03ed46 5%define pnam Glib
bd268f68 6%include /usr/lib/rpm/macros.perl
a2820eaf 7Summary: Perl Glib bindings
bcbbc3ff 8Summary(pl.UTF-8): Wiązania Glib dla Perla
a2820eaf 9Name: perl-Glib
89a5b2ec 10# note: versions 1.x[13579]y are unstable, if you want them, please use DEVEL branch
356c7555 11Version: 1.300
9cdd1738 12Release: 3
a1c9efd6 13License: LGPL v2.1+
a2820eaf 14Group: Development/Languages/Perl
15669754 15Source0: http://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
356c7555
JB
16# Source0-md5: 0f4b4a733816c554a7eb93687a2c7340
17Patch0: %{name}-test.patch
f9622589 18URL: http://gtk2-perl.sourceforge.net/
89a5b2ec 19BuildRequires: glib2-devel >= 1:2.12.2
5fe2d151 20BuildRequires: perl-ExtUtils-Depends >= 0.300
e080889e 21BuildRequires: perl-ExtUtils-PkgConfig >= 1.06
a153f89c 22BuildRequires: perl-devel >= 1:5.8.0
a2820eaf 23BuildRequires: rpm-perlprov >= 4.1-13
89a5b2ec 24Requires: glib2 >= 1:2.12.2
a2820eaf 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
bd268f68 28This module provides Perl access to Glib and GLib's GObject libraries.
a2820eaf 29
73d26e9b
JR
30%description -l pl.UTF-8
31Ten moduł daje dostęp z poziomu Perla do bibliotek GLib i GObject.
3c0e6838 32
dfde7e57
JB
33%package devel
34Summary: Development files for Perl Glib bindings
35Summary(pl.UTF-8): Pliki programistyczne wiązań Glib dla Perla
36Group: Development/Languages/Perl
37Requires: %{name} = %{version}-%{release}
bbc18db5 38Requires: glib2-devel >= 1:2.12.2
dfde7e57
JB
39
40%description devel
41Development files for Perl Glib bindings.
42
43%description devel -l pl.UTF-8
44Pliki programistyczne wiązań Glib dla Perla.
45
a2820eaf 46%prep
07d67a93 47%setup -q -n %{pnam}-%{version}
356c7555 48%patch0 -p1
a2820eaf 49
50%build
51%{__perl} Makefile.PL \
52 INSTALLDIRS=vendor
53
54%{__make} \
e262c27f 55 CC="%{__cc}" \
a2820eaf 56 OPTIMIZE="%{rpmcflags}"
57
ec9b7e4b 58%{?with_tests:%{__make} test}
a2820eaf 59
60%install
61rm -rf $RPM_BUILD_ROOT
f1b5acd7 62install -d $RPM_BUILD_ROOT%{perl_vendorarch}/{Gnome2,auto/Gnome2}
a2820eaf 63
89a5b2ec 64%{__make} pure_install \
a2820eaf 65 DESTDIR=$RPM_BUILD_ROOT
66
15669754
JB
67%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/*.pod
68%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/Param/*.pod
69%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Glib/.packlist
ec9b7e4b 70
a2820eaf 71%clean
72rm -rf $RPM_BUILD_ROOT
73
74%files
75%defattr(644,root,root,755)
356c7555 76%doc AUTHORS NEWS README TODO
4a04421c 77%{perl_vendorarch}/Glib.pm
a2820eaf 78%dir %{perl_vendorarch}/Glib
41e220a9 79%{perl_vendorarch}/Glib/Object
3c0e6838 80%dir %{perl_vendorarch}/auto/Glib
59cde2ec 81%attr(755,root,root) %{perl_vendorarch}/auto/Glib/Glib.so
dfde7e57
JB
82%{_mandir}/man3/Glib.3pm*
83%{_mandir}/man3/Glib::BookmarkFile.3pm*
84%{_mandir}/man3/Glib::Boxed.3pm*
85%{_mandir}/man3/Glib::Error.3pm*
86%{_mandir}/man3/Glib::Flags.3pm*
87%{_mandir}/man3/Glib::KeyFile.3pm*
88%{_mandir}/man3/Glib::Log.3pm*
89%{_mandir}/man3/Glib::MainLoop.3pm*
90%{_mandir}/man3/Glib::Markup.3pm*
91%{_mandir}/man3/Glib::Object*.3pm*
92%{_mandir}/man3/Glib::OptionContext.3pm*
93%{_mandir}/man3/Glib::OptionGroup.3pm*
94%{_mandir}/man3/Glib::Param::*.3pm*
95%{_mandir}/man3/Glib::ParamSpec.3pm*
96%{_mandir}/man3/Glib::Signal.3pm*
97%{_mandir}/man3/Glib::Type.3pm*
98%{_mandir}/man3/Glib::Utils.3pm*
99%{_mandir}/man3/Glib::index.3pm*
100%{_mandir}/man3/Glib::version.3pm*
f1b5acd7
JB
101# for Gnome2-related packages
102%dir %{perl_vendorarch}/Gnome2
103%dir %{perl_vendorarch}/auto/Gnome2
dfde7e57
JB
104
105%files devel
106%defattr(644,root,root,755)
107%{perl_vendorarch}/Glib/CodeGen.pm
108%{perl_vendorarch}/Glib/GenPod.pm
109%{perl_vendorarch}/Glib/Install
110%{perl_vendorarch}/Glib/MakeHelper.pm
111%{perl_vendorarch}/Glib/ParseXSDoc.pm
112%{_mandir}/man3/Glib::CodeGen.3pm*
113%{_mandir}/man3/Glib::GenPod.3pm*
114%{_mandir}/man3/Glib::MakeHelper.3pm*
115%{_mandir}/man3/Glib::ParseXSDoc.3pm*
116%{_mandir}/man3/Glib::devel.3pm*
117%{_mandir}/man3/Glib::xsapi.3pm*
This page took 0.072791 seconds and 4 git commands to generate.