]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
5 | Summary: Bonobo user interface components | |
6 | Summary(pl.UTF-8): Komponenty interfejsu użytkownika do Bonobo | |
7 | Name: libbonoboui | |
8 | Version: 2.24.2 | |
9 | Release: 4 | |
10 | License: LGPL | |
11 | Group: X11/Libraries | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libbonoboui/2.24/%{name}-%{version}.tar.bz2 | |
13 | # Source0-md5: 3c206eccc97730c02366a2f698c40ed2 | |
14 | URL: http://www.gnome.org/ | |
15 | BuildRequires: GConf2-devel >= 2.24.0 | |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake >= 1:1.9 | |
18 | BuildRequires: docbook-dtd412-xml | |
19 | BuildRequires: gettext-devel | |
20 | BuildRequires: gnome-common >= 2.20.0 | |
21 | BuildRequires: gtk+2-devel >= 2:2.12.8 | |
22 | BuildRequires: gtk-doc >= 1.8 | |
23 | BuildRequires: intltool >= 0.40.0 | |
24 | BuildRequires: libbonobo-devel >= 2.24.0 | |
25 | BuildRequires: libglade2-devel >= 1:2.6.2 | |
26 | BuildRequires: libgnomecanvas-devel >= 2.20.0 | |
27 | BuildRequires: libgnome-devel >= 2.24.0 | |
28 | BuildRequires: libtool | |
29 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
30 | BuildRequires: pkgconfig | |
31 | BuildRequires: popt-devel | |
32 | BuildRequires: rpmbuild(macros) >= 1.197 | |
33 | Requires: GConf2 >= 2.24.0 | |
34 | Requires: libbonobo >= 2.24.0 | |
35 | Requires: libgnome >= 2.24.0 | |
36 | Requires: libgnomecanvas >= 2.20.0 | |
37 | # sr@Latn vs. sr@latin | |
38 | Conflicts: glibc-misc < 6:2.7 | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
42 | Bonobo is a component system based on CORBA, used by the GNOME | |
43 | desktop. libbonoboui contains the user interface related components | |
44 | that come with Bonobo. | |
45 | ||
46 | %description -l pl.UTF-8 | |
47 | Bonobo jest systemem komponentów bazującym na CORB-ie, używanym przez | |
48 | środowisko GNOME. libbonoboui zawiera komponenty związane z | |
49 | interfejsem użytkownika, które przychodzą z Bonobo. | |
50 | ||
51 | %package devel | |
52 | Summary: Headers for libbonoboui | |
53 | Summary(pl.UTF-8): Pliki nagłówkowe libbonoboui | |
54 | Group: X11/Development/Libraries | |
55 | Requires: %{name} = %{version}-%{release} | |
56 | Requires: GConf2-devel >= 2.24.0 | |
57 | Requires: libbonobo-devel >= 2.24.0 | |
58 | Requires: libglade2-devel >= 1:2.6.2 | |
59 | Requires: libgnome-devel >= 2.24.0 | |
60 | Requires: libgnomecanvas-devel >= 2.20.0 | |
61 | Requires: libxml2-devel >= 1:2.6.31 | |
62 | ||
63 | %description devel | |
64 | Bonobo is a component system based on CORBA, used by the GNOME | |
65 | desktop. libbonoboui contains GUI components that come with Bonobo. | |
66 | ||
67 | This package contains header files used to compile programs that use | |
68 | libbonoboui. | |
69 | ||
70 | %description devel -l pl.UTF-8 | |
71 | Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilacji programów | |
72 | używających libbonoboui. | |
73 | ||
74 | %package -n gnome-bonobo-browser | |
75 | Summary: Bonobo component viewer | |
76 | Summary(pl.UTF-8): Przeglądarka komponentów bonobo | |
77 | Group: Applications/System | |
78 | Requires: %{name} = %{version}-%{release} | |
79 | ||
80 | %description -n gnome-bonobo-browser | |
81 | Shows available Bonobo components. | |
82 | ||
83 | %description -n gnome-bonobo-browser -l pl.UTF-8 | |
84 | Wyświetla dostępne komponenty bonobo. | |
85 | ||
86 | %package static | |
87 | Summary: Static libbonoboui library | |
88 | Summary(pl.UTF-8): Statyczna biblioteka libbonoboui | |
89 | Group: X11/Development/Libraries | |
90 | Requires: %{name}-devel = %{version}-%{release} | |
91 | ||
92 | %description static | |
93 | This package contains static version of libbonoboui. | |
94 | ||
95 | %description static -l pl.UTF-8 | |
96 | Ten pakiet zawiera statyczną wersję biblioteki libbonoboui. | |
97 | ||
98 | %package apidocs | |
99 | Summary: libbonoboui API documentation | |
100 | Summary(pl.UTF-8): Dokumentacja API libbonoboui | |
101 | Group: Documentation | |
102 | Requires: gtk-doc-common | |
103 | ||
104 | %description apidocs | |
105 | libbonoboui API documentation. | |
106 | ||
107 | %description apidocs -l pl.UTF-8 | |
108 | Dokumentacja API libbonoboui. | |
109 | ||
110 | %package examples | |
111 | Summary: libbonoboui - example programs | |
112 | Summary(pl.UTF-8): libbonoboui - przykładowe programy | |
113 | Group: X11/Development/Libraries | |
114 | Requires: %{name}-devel = %{version}-%{release} | |
115 | ||
116 | %description examples | |
117 | libbonoboui - example programs. | |
118 | ||
119 | %description examples -l pl.UTF-8 | |
120 | libbonoboui - przykładowe programy. | |
121 | ||
122 | %prep | |
123 | %setup -q | |
124 | ||
125 | %build | |
126 | %{__gtkdocize} | |
127 | %{__glib_gettextize} | |
128 | %{__intltoolize} | |
129 | %{__libtoolize} | |
130 | %{__aclocal} | |
131 | %{__autoconf} | |
132 | %{__autoheader} | |
133 | %{__automake} | |
134 | %configure \ | |
135 | --enable-gtk-doc \ | |
136 | --with-html-dir=%{_gtkdocdir} \ | |
137 | %{!?with_static_libs:--disable-static} | |
138 | ||
139 | %{__make} | |
140 | ||
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
144 | ||
145 | %{__make} install \ | |
146 | DESTDIR=$RPM_BUILD_ROOT | |
147 | ||
148 | %{__make} -C samples clean | |
149 | find samples/ -type d -name ".deps" -exec rm -rf {} \; || : | |
150 | find samples/ -type f -name "Makefile*" -exec rm -f {} \; | |
151 | cp -r samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
152 | ||
153 | # no static modules and *.la for glade modules | |
154 | rm -f $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.{la,a} | |
155 | ||
156 | %find_lang %{name} --with-gnome --all-name | |
157 | ||
158 | %clean | |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
161 | %post -p /sbin/ldconfig | |
162 | %postun -p /sbin/ldconfig | |
163 | ||
164 | %files -f %{name}.lang | |
165 | %defattr(644,root,root,755) | |
166 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README | |
167 | %attr(755,root,root) %{_bindir}/test-moniker | |
168 | %attr(755,root,root) %{_libdir}/libbonoboui-2.so.*.*.* | |
169 | %attr(755,root,root) %ghost %{_libdir}/libbonoboui-2.so.0 | |
170 | %attr(755,root,root) %{_libdir}/libglade/2.0/libbonobo.so | |
171 | %{_libdir}/bonobo/servers/Bonobo_Sample_Controls.server | |
172 | %{_libdir}/bonobo/servers/CanvDemo.server | |
173 | %attr(755,root,root) %{_libdir}/bonobo-2.0/samples/bonobo-sample-controls-2 | |
174 | %{_datadir}/gnome-2.0 | |
175 | ||
176 | %files devel | |
177 | %defattr(644,root,root,755) | |
178 | %doc doc/*.xml doc/*.txt doc/*.html doc/*.dtd | |
179 | %attr(755,root,root) %{_libdir}/libbonoboui-2.so | |
180 | %{_libdir}/libbonoboui-2.la | |
181 | %{_pkgconfigdir}/libbonoboui-2.0.pc | |
182 | %{_includedir}/libbonoboui-2.0 | |
183 | ||
184 | %if %{with static_libs} | |
185 | %files static | |
186 | %defattr(644,root,root,755) | |
187 | %{_libdir}/libbonoboui-2.a | |
188 | %endif | |
189 | ||
190 | %files -n gnome-bonobo-browser | |
191 | %defattr(644,root,root,755) | |
192 | %attr(755,root,root) %{_bindir}/bonobo-browser | |
193 | %{_desktopdir}/bonobo-browser.desktop | |
194 | ||
195 | %files apidocs | |
196 | %defattr(644,root,root,755) | |
197 | %{_gtkdocdir}/%{name} | |
198 | ||
199 | %files examples | |
200 | %defattr(644,root,root,755) | |
201 | %{_examplesdir}/%{name}-%{version} |