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