]>
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 |
5d83e008 MB |
8 | Version: 2.22.0 |
9 | Release: 1 | |
c363e04e | 10 | License: LGPL |
11 | Group: X11/Libraries | |
5d83e008 | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libbonoboui/2.22/%{name}-%{version}.tar.bz2 |
988f1a9c | 13 | # Source0-md5: e4e4d74c9387d08c956574f981cf91f2 |
c363e04e | 14 | URL: http://www.gnome.org/ |
5d83e008 | 15 | BuildRequires: GConf2-devel >= 2.22.0 |
60dbb2c4 | 16 | BuildRequires: autoconf |
73c172ee | 17 | BuildRequires: automake >= 1:1.9 |
5d83e008 | 18 | BuildRequires: gettext-devel |
a71acb9f | 19 | BuildRequires: gnome-common >= 2.20.0 |
5d83e008 | 20 | BuildRequires: gtk+2-devel >= 2:2.12.8 |
73c172ee | 21 | BuildRequires: gtk-doc >= 1.8 |
3a62b48e | 22 | BuildRequires: intltool >= 0.36.1 |
5d83e008 MB |
23 | BuildRequires: gnome-vfs2-devel >= 2.22.0 |
24 | BuildRequires: libbonobo-devel >= 2.22.0 | |
3a62b48e | 25 | BuildRequires: libglade2-devel >= 1:2.6.2 |
a71acb9f | 26 | BuildRequires: libgnomecanvas-devel >= 2.20.0 |
5d83e008 | 27 | BuildRequires: libgnome-devel >= 2.22.0 |
60dbb2c4 | 28 | BuildRequires: libtool |
5d83e008 | 29 | BuildRequires: libxml2-devel >= 1:2.6.31 |
d107016e | 30 | BuildRequires: pkgconfig |
5d83e008 | 31 | BuildRequires: popt-devel |
ed3d69ea | 32 | BuildRequires: rpmbuild(macros) >= 1.197 |
5d83e008 MB |
33 | Requires: GConf2 >= 2.22.0 |
34 | Requires: libbonobo >= 2.22.0 | |
35 | Requires: libgnome >= 2.22.0 | |
a71acb9f MB |
36 | Requires: libgnomecanvas >= 2.20.0 |
37 | # sr@Latn vs. sr@latin | |
38 | Conflicts: glibc-misc < 6:2.7 | |
c363e04e | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
315b9595 | 41 | %description |
315b9595 | 42 | Bonobo is a component system based on CORBA, used by the GNOME |
c363e04e | 43 | desktop. libbonoboui contains the user interface related components |
315b9595 | 44 | that come with Bonobo. |
45 | ||
b0839321 JR |
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. | |
640a21cc | 50 | |
315b9595 | 51 | %package devel |
640a21cc | 52 | Summary: Headers for libbonoboui |
8eaf9416 | 53 | Summary(pl.UTF-8): Pliki nagłówkowe libbonoboui |
c363e04e | 54 | Group: X11/Development/Libraries |
d107016e | 55 | Requires: %{name} = %{version}-%{release} |
5d83e008 MB |
56 | Requires: GConf2-devel >= 2.22.0 |
57 | Requires: libbonobo-devel >= 2.22.0 | |
3a62b48e | 58 | Requires: libglade2-devel >= 1:2.6.2 |
5d83e008 | 59 | Requires: libgnome-devel >= 2.22.0 |
a71acb9f | 60 | Requires: libgnomecanvas-devel >= 2.20.0 |
5d83e008 | 61 | Requires: libxml2-devel >= 1:2.6.31 |
315b9595 | 62 | |
63 | %description devel | |
c363e04e | 64 | Bonobo is a component system based on CORBA, used by the GNOME |
65 | desktop. libbonoboui contains GUI components that come with Bonobo. | |
315b9595 | 66 | |
c363e04e | 67 | This package contains header files used to compile programs that use |
68 | libbonoboui. | |
315b9595 | 69 | |
b0839321 JR |
70 | %description devel -l pl.UTF-8 |
71 | Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilacji programów | |
72 | używających libbonoboui. | |
640a21cc | 73 | |
67090a96 | 74 | %package -n gnome-bonobo-browser |
75 | Summary: Bonobo component viewer | |
8eaf9416 | 76 | Summary(pl.UTF-8): Przeglądarka komponentów bonobo |
67090a96 | 77 | Group: Applications/System |
78 | Requires: %{name} = %{version}-%{release} | |
79 | ||
80 | %description -n gnome-bonobo-browser | |
81 | Shows available Bonobo components. | |
82 | ||
b0839321 JR |
83 | %description -n gnome-bonobo-browser -l pl.UTF-8 |
84 | Wyświetla dostępne komponenty bonobo. | |
67090a96 | 85 | |
640a21cc JB |
86 | %package static |
87 | Summary: Static libbonoboui library | |
8eaf9416 | 88 | Summary(pl.UTF-8): Statyczna biblioteka libbonoboui |
640a21cc | 89 | Group: X11/Development/Libraries |
d107016e | 90 | Requires: %{name}-devel = %{version}-%{release} |
640a21cc JB |
91 | |
92 | %description static | |
93 | This package contains static version of libbonoboui. | |
94 | ||
b0839321 JR |
95 | %description static -l pl.UTF-8 |
96 | Ten pakiet zawiera statyczną wersję biblioteki libbonoboui. | |
640a21cc | 97 | |
8ca6f06a | 98 | %package apidocs |
99 | Summary: libbonoboui API documentation | |
8eaf9416 | 100 | Summary(pl.UTF-8): Dokumentacja API libbonoboui |
8ca6f06a | 101 | Group: Documentation |
102 | Requires: gtk-doc-common | |
103 | ||
104 | %description apidocs | |
105 | libbonoboui API documentation. | |
106 | ||
b0839321 | 107 | %description apidocs -l pl.UTF-8 |
8ca6f06a | 108 | Dokumentacja API libbonoboui. |
109 | ||
3a62b48e PZ |
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 | ||
315b9595 | 122 | %prep |
c363e04e | 123 | %setup -q |
d107016e | 124 | |
5d83e008 MB |
125 | sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS |
126 | mv -f po/sr@{Latn,latin}.po | |
a71acb9f | 127 | |
315b9595 | 128 | %build |
4f52b887 | 129 | %{__gtkdocize} |
73c172ee MB |
130 | %{__glib_gettextize} |
131 | %{__intltoolize} | |
6ea5c4de | 132 | %{__libtoolize} |
bf5d8247 | 133 | %{__aclocal} |
5b15b8f5 | 134 | %{__autoconf} |
5d83e008 | 135 | %{__autoheader} |
5b15b8f5 | 136 | %{__automake} |
0ea4e267 | 137 | %configure \ |
d107016e | 138 | --enable-gtk-doc \ |
026af5d5 | 139 | --with-html-dir=%{_gtkdocdir} \ |
3b883a88 | 140 | %{!?with_static_libs:--disable-static} |
fd7dfdb2 | 141 | |
c363e04e | 142 | %{__make} |
315b9595 | 143 | |
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
3a62b48e | 146 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
c363e04e | 147 | |
148 | %{__make} install \ | |
f9b99d08 | 149 | DESTDIR=$RPM_BUILD_ROOT |
315b9595 | 150 | |
3a62b48e PZ |
151 | %{__make} -C samples clean |
152 | find samples/ -type d -name ".deps" -exec rm -rf {} \; || : | |
153 | find samples/ -type f -name "Makefile*" -exec rm -f {} \; | |
154 | cp -r samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
155 | ||
a80f60df JB |
156 | # no static modules and *.la for glade modules |
157 | rm -f $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.{la,a} | |
187147c3 | 158 | |
20cb58a0 | 159 | %find_lang %{name} --with-gnome --all-name |
315b9595 | 160 | |
161 | %clean | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
2b6676af | 164 | %post -p /sbin/ldconfig |
165 | %postun -p /sbin/ldconfig | |
315b9595 | 166 | |
167 | %files -f %{name}.lang | |
c363e04e | 168 | %defattr(644,root,root,755) |
73c172ee | 169 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
67090a96 | 170 | %attr(755,root,root) %{_bindir}/test-moniker |
5d83e008 MB |
171 | %attr(755,root,root) %{_libdir}/libbonoboui-2.so.*.*.* |
172 | %attr(755,root,root) %ghost %{_libdir}/libbonoboui-2.so.0 | |
173 | %attr(755,root,root) %{_libdir}/libglade/2.0/libbonobo.so | |
174 | %{_libdir}/bonobo/servers/Bonobo_Sample_Controls.server | |
175 | %{_libdir}/bonobo/servers/CanvDemo.server | |
176 | %attr(755,root,root) %{_libdir}/bonobo-2.0/samples/bonobo-sample-controls-2 | |
33fa8bca | 177 | %{_datadir}/gnome-2.0 |
315b9595 | 178 | |
179 | %files devel | |
c363e04e | 180 | %defattr(644,root,root,755) |
87c19457 | 181 | %doc doc/*.xml doc/*.txt doc/*.html doc/*.dtd |
5d83e008 MB |
182 | %attr(755,root,root) %{_libdir}/libbonoboui-2.so |
183 | %{_libdir}/libbonoboui-2.la | |
184 | %{_pkgconfigdir}/libbonoboui-2.0.pc | |
20cb58a0 | 185 | %{_includedir}/libbonoboui-2.0 |
640a21cc | 186 | |
3b883a88 | 187 | %if %{with static_libs} |
640a21cc JB |
188 | %files static |
189 | %defattr(644,root,root,755) | |
5d83e008 | 190 | %{_libdir}/libbonoboui-2.a |
026af5d5 | 191 | %endif |
67090a96 | 192 | |
193 | %files -n gnome-bonobo-browser | |
194 | %defattr(644,root,root,755) | |
195 | %attr(755,root,root) %{_bindir}/bonobo-browser | |
5d83e008 | 196 | %{_desktopdir}/bonobo-browser.desktop |
8ca6f06a | 197 | |
198 | %files apidocs | |
199 | %defattr(644,root,root,755) | |
200 | %{_gtkdocdir}/%{name} | |
3a62b48e PZ |
201 | |
202 | %files examples | |
203 | %defattr(644,root,root,755) | |
204 | %{_examplesdir}/%{name}-%{version} |