]>
Commit | Line | Data |
---|---|---|
1974f28c | 1 | # |
2 | # Conditional build: | |
d8573a6a | 3 | %bcond_with tests # perform "make test" (requires X server) |
1974f28c | 4 | # |
fafe2cf2 | 5 | %define pnam Gtk2-GladeXML |
b552a7d4 | 6 | Summary: Mechanisms for instantiating and utilization of user interfaces created with Glade-2 |
b1a1b51b | 7 | Summary(pl.UTF-8): Mechanizmy pozwalające na wykorzystywanie interfejsów stworzonych za pomocą Glade-2 |
089eb418 | 8 | Name: perl-Gtk2-GladeXML |
4c3f27e5 JB |
9 | Version: 1.008 |
10 | Release: 1 | |
dea00916 MK |
11 | License: LGPL |
12 | Group: Development/Languages/Perl | |
4c3f27e5 JB |
13 | Source0: https://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz |
14 | # Source0-md5: e4eba9d654198eb5bc4da7418d93d30a | |
1974f28c | 15 | URL: http://gtk2-perl.sourceforge.net/ |
4c3f27e5 JB |
16 | BuildRequires: libglade2-devel >= 1:2.6.0 |
17 | BuildRequires: perl-ExtUtils-Depends >= 0.300 | |
18 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.000 | |
1974f28c | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
4c3f27e5 | 20 | BuildRequires: perl-Glib-devel >= 1.140 |
dd27de14 | 21 | BuildRequires: perl-Gtk2-devel >= 1.140 |
dea00916 | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
28882fff | 23 | BuildRequires: rpmbuild(macros) >= 1.745 |
4c3f27e5 | 24 | Requires: libglade2 >= 1:2.6.0 |
7800cf6e | 25 | Requires: perl-Glib >= 1.140 |
26 | Requires: perl-Gtk2 >= 1.140 | |
dea00916 MK |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
b7e3f45a | 30 | After designing an application with Glade-2 the layout and |
31 | configuration is saved in a XML formatted file. libglade is a library | |
32 | to load and use files of this particular XML format at application run | |
33 | time. This module is a set of mappings of libglade. | |
34 | ||
4c3f27e5 JB |
35 | Note: this module is deprecated and no longer maintained. |
36 | ||
00845191 JR |
37 | %description -l pl.UTF-8 |
38 | Po zaprojektowaniu aplikacji korzystającej z Glade-2 jej wygląd i | |
39 | konfiguracja są zapamiętywane w postaci plików w formacie XML. | |
40 | libglade jest biblioteką służącą do odczytu i korzystania z tego | |
41 | specyficznego formatu XML w czasie działania aplikacji. Ten moduł | |
42 | stanowi zbiór odwzorowań biblioteki libglade. | |
dea00916 | 43 | |
4c3f27e5 JB |
44 | Uwaga: ten moduł jest przestarzały i nie jest już utrzymywany. |
45 | ||
46 | %package devel | |
bbc7c58f JB |
47 | Summary: Development files for Perl Gtk2-GladeXML bindings |
48 | Summary(pl.UTF-8): Pliki programistyczne wiązań Gtk2-GladeXML dla Perla | |
4c3f27e5 JB |
49 | Group: Development/Languages/Perl |
50 | Requires: %{name} = %{version}-%{release} | |
51 | Requires: libglade2-devel >= 1:2.6.0 | |
52 | Requires: perl-Cairo-devel | |
53 | Requires: perl-Glib-devel >= 1.120 | |
54 | Requires: perl-Gtk2-devel >= 1.121 | |
55 | ||
56 | %description devel | |
bbc7c58f | 57 | Development files for Perl Gtk2-GladeXML bindings. |
4c3f27e5 JB |
58 | |
59 | %description devel -l pl.UTF-8 | |
bbc7c58f | 60 | Pliki programistyczne wiązań Gtk2-GladeXML dla Perla. |
4c3f27e5 | 61 | |
dea00916 | 62 | %prep |
1974f28c | 63 | %setup -q -n %{pnam}-%{version} |
dea00916 MK |
64 | |
65 | %build | |
66 | %{__perl} Makefile.PL \ | |
67 | INSTALLDIRS=vendor | |
68 | ||
69 | %{__make} \ | |
5267c9d2 | 70 | CC="%{__cc}" \ |
dea00916 MK |
71 | OPTIMIZE="%{rpmcflags}" |
72 | ||
1974f28c | 73 | %{?with_tests:%{__make} test} |
74 | ||
dea00916 MK |
75 | %install |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
4c3f27e5 | 78 | %{__make} pure_install \ |
dea00916 MK |
79 | DESTDIR=$RPM_BUILD_ROOT |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc AUTHORS README ChangeLog | |
87 | %{perl_vendorarch}/Gtk2/GladeXML.pm | |
1974f28c | 88 | %dir %{perl_vendorarch}/Gtk2/GladeXML |
b552a7d4 | 89 | %dir %{perl_vendorarch}/auto/Gtk2/GladeXML |
4c3f27e5 JB |
90 | %attr(755,root,root) %{perl_vendorarch}/auto/Gtk2/GladeXML/GladeXML.so |
91 | %{_mandir}/man3/Gtk2::GladeXML*.3pm* | |
92 | ||
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
1974f28c | 95 | %{perl_vendorarch}/Gtk2/GladeXML/Install |