]>
Commit | Line | Data |
---|---|---|
f98baa56 | 1 | # |
2 | # Conditional build: | |
0b23b684 | 3 | %bcond_without static_libs # 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 |
0b23b684 | 9 | Release: 4 |
3c83dd1c | 10 | License: LGPL v2+ |
c363e04e | 11 | Group: X11/Libraries |
0b23b684 | 12 | Source0: https://download.gnome.org/sources/libbonoboui/2.24/%{name}-%{version}.tar.bz2 |
510d5765 | 13 | # Source0-md5: 853be8e28aaa4ce48ba60be7d9046bf4 |
0b23b684 JB |
14 | Patch0: %{name}-includes.patch |
15 | URL: https://www.gnome.org/ | |
3292a208 | 16 | BuildRequires: GConf2-devel >= 2.24.0 |
60dbb2c4 | 17 | BuildRequires: autoconf |
73c172ee | 18 | BuildRequires: automake >= 1:1.9 |
485d23a8 | 19 | BuildRequires: docbook-dtd412-xml |
af160264 | 20 | BuildRequires: gettext-tools |
4e01b079 | 21 | BuildRequires: glib2-devel >= 1:2.6.0 |
a71acb9f | 22 | BuildRequires: gnome-common >= 2.20.0 |
5d83e008 | 23 | BuildRequires: gtk+2-devel >= 2:2.12.8 |
73c172ee | 24 | BuildRequires: gtk-doc >= 1.8 |
3292a208 MB |
25 | BuildRequires: intltool >= 0.40.0 |
26 | BuildRequires: libbonobo-devel >= 2.24.0 | |
3a62b48e | 27 | BuildRequires: libglade2-devel >= 1:2.6.2 |
a71acb9f | 28 | BuildRequires: libgnomecanvas-devel >= 2.20.0 |
3292a208 | 29 | BuildRequires: libgnome-devel >= 2.24.0 |
60dbb2c4 | 30 | BuildRequires: libtool |
5d83e008 | 31 | BuildRequires: libxml2-devel >= 1:2.6.31 |
4e01b079 JB |
32 | BuildRequires: pango-devel |
33 | BuildRequires: pangox-compat-devel | |
d107016e | 34 | BuildRequires: pkgconfig |
5d83e008 | 35 | BuildRequires: popt-devel |
0b23b684 | 36 | BuildRequires: rpm-build >= 4.6 |
ed3d69ea | 37 | BuildRequires: rpmbuild(macros) >= 1.197 |
4e01b079 JB |
38 | BuildRequires: xorg-lib-libX11-devel |
39 | BuildConflicts: gdk-pixbuf-devel < 0.12 | |
40 | Requires: GConf2-libs >= 2.24.0 | |
41 | Requires: glib2 >= 1:2.6.0 | |
42 | Requires: gtk+2 >= 2:2.12.8 | |
0b23b684 | 43 | Requires: libbonobo >= 2.24.0 |
4e01b079 | 44 | Requires: libgnome-libs >= 2.24.0 |
a71acb9f | 45 | Requires: libgnomecanvas >= 2.20.0 |
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 |
0b23b684 | 130 | %patch0 -p1 |
d107016e | 131 | |
315b9595 | 132 | %build |
4f52b887 | 133 | %{__gtkdocize} |
73c172ee MB |
134 | %{__glib_gettextize} |
135 | %{__intltoolize} | |
6ea5c4de | 136 | %{__libtoolize} |
bf5d8247 | 137 | %{__aclocal} |
5b15b8f5 | 138 | %{__autoconf} |
5d83e008 | 139 | %{__autoheader} |
5b15b8f5 | 140 | %{__automake} |
0ea4e267 | 141 | %configure \ |
4e01b079 | 142 | PATH_TO_XRDB=/usr/bin/xrdb \ |
d107016e | 143 | --enable-gtk-doc \ |
026af5d5 | 144 | --with-html-dir=%{_gtkdocdir} \ |
3b883a88 | 145 | %{!?with_static_libs:--disable-static} |
fd7dfdb2 | 146 | |
c363e04e | 147 | %{__make} |
315b9595 | 148 | |
149 | %install | |
150 | rm -rf $RPM_BUILD_ROOT | |
3a62b48e | 151 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
c363e04e | 152 | |
153 | %{__make} install \ | |
f9b99d08 | 154 | DESTDIR=$RPM_BUILD_ROOT |
315b9595 | 155 | |
3a62b48e PZ |
156 | %{__make} -C samples clean |
157 | find samples/ -type d -name ".deps" -exec rm -rf {} \; || : | |
158 | find samples/ -type f -name "Makefile*" -exec rm -f {} \; | |
159 | cp -r samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
160 | ||
a80f60df | 161 | # no static modules and *.la for glade modules |
40ff4643 AF |
162 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.la |
163 | %if %{with static_libs} | |
164 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.a | |
165 | %endif | |
166 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
187147c3 | 167 | |
3c83dd1c JB |
168 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{sr@ije,sr@ijekavian} |
169 | ||
4e01b079 | 170 | %find_lang %{name}-2.0 |
315b9595 | 171 | |
172 | %clean | |
173 | rm -rf $RPM_BUILD_ROOT | |
174 | ||
2b6676af | 175 | %post -p /sbin/ldconfig |
176 | %postun -p /sbin/ldconfig | |
315b9595 | 177 | |
4e01b079 | 178 | %files -f %{name}-2.0.lang |
c363e04e | 179 | %defattr(644,root,root,755) |
73c172ee | 180 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
67090a96 | 181 | %attr(755,root,root) %{_bindir}/test-moniker |
5d83e008 MB |
182 | %attr(755,root,root) %{_libdir}/libbonoboui-2.so.*.*.* |
183 | %attr(755,root,root) %ghost %{_libdir}/libbonoboui-2.so.0 | |
184 | %attr(755,root,root) %{_libdir}/libglade/2.0/libbonobo.so | |
185 | %{_libdir}/bonobo/servers/Bonobo_Sample_Controls.server | |
186 | %{_libdir}/bonobo/servers/CanvDemo.server | |
187 | %attr(755,root,root) %{_libdir}/bonobo-2.0/samples/bonobo-sample-controls-2 | |
4e01b079 JB |
188 | %dir %{_datadir}/gnome-2.0 |
189 | %dir %{_datadir}/gnome-2.0/ui | |
190 | %{_datadir}/gnome-2.0/ui/Bonobo_Sample_Container-ui.xml | |
191 | %{_datadir}/gnome-2.0/ui/Bonobo_Sample_Hello.xml | |
315b9595 | 192 | |
193 | %files devel | |
c363e04e | 194 | %defattr(644,root,root,755) |
87c19457 | 195 | %doc doc/*.xml doc/*.txt doc/*.html doc/*.dtd |
5d83e008 | 196 | %attr(755,root,root) %{_libdir}/libbonoboui-2.so |
5d83e008 | 197 | %{_pkgconfigdir}/libbonoboui-2.0.pc |
20cb58a0 | 198 | %{_includedir}/libbonoboui-2.0 |
640a21cc | 199 | |
3b883a88 | 200 | %if %{with static_libs} |
640a21cc JB |
201 | %files static |
202 | %defattr(644,root,root,755) | |
5d83e008 | 203 | %{_libdir}/libbonoboui-2.a |
026af5d5 | 204 | %endif |
67090a96 | 205 | |
8ca6f06a | 206 | %files apidocs |
207 | %defattr(644,root,root,755) | |
0b23b684 | 208 | %{_gtkdocdir}/libbonoboui |
3a62b48e PZ |
209 | |
210 | %files examples | |
211 | %defattr(644,root,root,755) | |
212 | %{_examplesdir}/%{name}-%{version} | |
4e01b079 JB |
213 | |
214 | %files -n gnome-bonobo-browser | |
215 | %defattr(644,root,root,755) | |
216 | %attr(755,root,root) %{_bindir}/bonobo-browser | |
217 | %{_datadir}/gnome-2.0/ui/bonobo-browser.xml | |
218 | %{_desktopdir}/bonobo-browser.desktop |