]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | ||
5 | %define pnam Glib | |
6 | %include /usr/lib/rpm/macros.perl | |
7 | Summary: Perl Glib bindings | |
8 | Summary(pl.UTF-8): Wiązania Glib dla Perla | |
9 | Name: perl-Glib | |
10 | # note: versions 1.x[13579]y are unstable, if you want them, please use DEVEL branch | |
11 | Version: 1.300 | |
12 | Release: 3 | |
13 | License: LGPL v2.1+ | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: 0f4b4a733816c554a7eb93687a2c7340 | |
17 | Patch0: %{name}-test.patch | |
18 | URL: http://gtk2-perl.sourceforge.net/ | |
19 | BuildRequires: glib2-devel >= 1:2.12.2 | |
20 | BuildRequires: perl-ExtUtils-Depends >= 0.300 | |
21 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.06 | |
22 | BuildRequires: perl-devel >= 1:5.8.0 | |
23 | BuildRequires: rpm-perlprov >= 4.1-13 | |
24 | Requires: glib2 >= 1:2.12.2 | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This module provides Perl access to Glib and GLib's GObject libraries. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Ten moduł daje dostęp z poziomu Perla do bibliotek GLib i GObject. | |
32 | ||
33 | %package devel | |
34 | Summary: Development files for Perl Glib bindings | |
35 | Summary(pl.UTF-8): Pliki programistyczne wiązań Glib dla Perla | |
36 | Group: Development/Languages/Perl | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | Requires: glib2-devel >= 1:2.12.2 | |
39 | ||
40 | %description devel | |
41 | Development files for Perl Glib bindings. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki programistyczne wiązań Glib dla Perla. | |
45 | ||
46 | %prep | |
47 | %setup -q -n %{pnam}-%{version} | |
48 | %patch0 -p1 | |
49 | ||
50 | %build | |
51 | %{__perl} Makefile.PL \ | |
52 | INSTALLDIRS=vendor | |
53 | ||
54 | %{__make} \ | |
55 | CC="%{__cc}" \ | |
56 | OPTIMIZE="%{rpmcflags}" | |
57 | ||
58 | %{?with_tests:%{__make} test} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | install -d $RPM_BUILD_ROOT%{perl_vendorarch}/{Gnome2,auto/Gnome2} | |
63 | ||
64 | %{__make} pure_install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
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 | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %doc AUTHORS NEWS README TODO | |
77 | %{perl_vendorarch}/Glib.pm | |
78 | %dir %{perl_vendorarch}/Glib | |
79 | %{perl_vendorarch}/Glib/Object | |
80 | %dir %{perl_vendorarch}/auto/Glib | |
81 | %attr(755,root,root) %{perl_vendorarch}/auto/Glib/Glib.so | |
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* | |
101 | # for Gnome2-related packages | |
102 | %dir %{perl_vendorarch}/Gnome2 | |
103 | %dir %{perl_vendorarch}/auto/Gnome2 | |
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* |