]>
Commit | Line | Data |
---|---|---|
5b2d0a2c JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
583a6232 | 4 | %bcond_with static_libs # static libraries |
52399e16 | 5 | |
5b2d0a2c | 6 | Summary: Freedesktop.org compliant menu library for the Xfce desktop environment |
8bb7cdb3 | 7 | Summary(pl.UTF-8): Biblioteka menu dla środowiska Xfce zgodna z freedesktop.org |
5b2d0a2c | 8 | Name: garcon |
b1cb073c | 9 | Version: 0.6.3 |
d274fc6f | 10 | Release: 1 |
583a6232 JB |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
d274fc6f | 13 | Source0: http://archive.xfce.org/src/xfce/garcon/0.6/%{name}-%{version}.tar.bz2 |
b1cb073c | 14 | # Source0-md5: 3b54d210adec3b6be781a1da26b53da2 |
d9760f44 | 15 | URL: http://archive.xfce.org/src/xfce/garcon/ |
fc5394e2 | 16 | BuildRequires: gettext-tools |
583a6232 JB |
17 | BuildRequires: glib2-devel >= 1:2.30.0 |
18 | BuildRequires: gtk+2-devel >= 2:2.24.0 | |
d274fc6f | 19 | BuildRequires: gtk+3-devel |
5b2d0a2c | 20 | BuildRequires: gtk-doc >= 1.0 |
583a6232 JB |
21 | BuildRequires: intltool >= 0.31 |
22 | BuildRequires: libxfce4ui-devel >= 4.10.0 | |
23 | BuildRequires: libxfce4util-devel >= 4.10.0 | |
a6697972 | 24 | BuildRequires: pkgconfig |
81d204b3 | 25 | BuildRequires: xfce4-dev-tools >= 4.10.0 |
583a6232 JB |
26 | Requires: glib2 >= 1:2.30.0 |
27 | Requires: libxfce4util >= 4.10.0 | |
8bb7cdb3 | 28 | Obsoletes: libxfce4menu |
5b2d0a2c JR |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
8bb7cdb3 MB |
32 | garcon is a freedesktop.org compliant menu implementation based on |
33 | GLib and GIO. It was started as a complete rewrite of the former Xfce | |
34 | menu library called libxfce4menu, which, in contrast to garcon, was | |
35 | lacking menu merging features essential for loading menus modified | |
5b2d0a2c JR |
36 | with menu editors. |
37 | ||
8bb7cdb3 MB |
38 | %description -l pl.UTF-8 |
39 | garcon jest implementacją menu zgodnego z freedesktop.org, bazującą na | |
40 | GLib i GIO. Została rozpoczęta jako całkowite przepisanie biblioteki | |
41 | libxfce4menu, której, w odróżnieniu do garcon, brakowało | |
42 | funkcjonalności łączenia menu, wymaganej w przypadku modyfikowania za | |
43 | pomocą edytora. | |
5b2d0a2c JR |
44 | |
45 | %package devel | |
46 | Summary: Header files for garcon library | |
47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki garcon | |
583a6232 | 48 | Group: Development/Libraries |
5b2d0a2c | 49 | Requires: %{name} = %{version}-%{release} |
583a6232 | 50 | Requires: glib2-devel >= 1:2.30.0 |
8bb7cdb3 | 51 | Obsoletes: libxfce4menu-devel |
5b2d0a2c JR |
52 | |
53 | %description devel | |
54 | Header files for garcon library. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Pliki nagłówkowe biblioteki garcon. | |
58 | ||
59 | %package static | |
60 | Summary: Static garcon library | |
61 | Summary(pl.UTF-8): Statyczna biblioteka garcon | |
583a6232 | 62 | Group: Development/Libraries |
5b2d0a2c | 63 | Requires: %{name}-devel = %{version}-%{release} |
8bb7cdb3 | 64 | Obsoletes: libxfce4menu-static |
5b2d0a2c JR |
65 | |
66 | %description static | |
67 | Static garcon library. | |
68 | ||
69 | %description static -l pl.UTF-8 | |
70 | Statyczna biblioteka garcon. | |
71 | ||
583a6232 JB |
72 | %package gtk2 |
73 | Summary: Freedesktop.org compliant menu library - GTK+ 2 support | |
74 | Summary(pl.UTF-8): Biblioteka menu zgodnego z Freedesktop.org - obsługa GTK+2 | |
75 | Group: X11/Libraries | |
76 | Requires: %{name} = %{version}-%{release} | |
77 | Requires: gtk+2 >= 2:2.24.0 | |
78 | Requires: libxfce4ui >= 4.10.0 | |
79 | ||
80 | %description gtk2 | |
81 | Freedesktop.org compliant menu library - GTK+ 2 support. | |
82 | ||
83 | %description gtk2 -l pl.UTF-8 | |
84 | Biblioteka menu zgodnego z Freedesktop.org - obsługa GTK+2. | |
85 | ||
86 | %package gtk2-devel | |
87 | Summary: Header files for garcon-gtk2 library | |
88 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki garcon-gtk2 | |
89 | Group: X11/Development/Libraries | |
90 | Requires: %{name}-devel = %{version}-%{release} | |
91 | Requires: %{name}-gtk2 = %{version}-%{release} | |
92 | Requires: gtk+2-devel >= 2:2.24.0 | |
93 | Requires: libxfce4ui-devel >= 4.10.0 | |
94 | ||
95 | %description gtk2-devel | |
96 | Header files for garcon-gtk2 library. | |
97 | ||
98 | %description gtk2-devel -l pl.UTF-8 | |
99 | Pliki nagłówkowe biblioteki garcon-gtk2. | |
100 | ||
101 | %package gtk2-static | |
102 | Summary: Static garcon-gtk2 library | |
103 | Summary(pl.UTF-8): Biblioteka statyczna garcon-gtk2 | |
104 | Group: X11/Development/Libraries | |
105 | Requires: %{name}-gtk2-devel = %{version}-%{release} | |
106 | ||
107 | %description gtk2-static | |
108 | Static garcon-gtk2 library. | |
109 | ||
110 | %description gtk2-static -l pl.UTF-8 | |
111 | Biblioteka statyczna garcon-gtk2. | |
112 | ||
d274fc6f JR |
113 | %package gtk3 |
114 | Summary: Freedesktop.org compliant menu library - GTK+ 3 support | |
115 | Summary(pl.UTF-8): Biblioteka menu zgodnego z Freedesktop.org - obsługa GTK+3 | |
116 | Group: X11/Libraries | |
117 | Requires: %{name} = %{version}-%{release} | |
118 | Requires: gtk+3 | |
119 | ||
120 | %description gtk3 | |
121 | Freedesktop.org compliant menu library - GTK+ 3 support. | |
122 | ||
123 | %description gtk3 -l pl.UTF-8 | |
124 | Biblioteka menu zgodnego z Freedesktop.org - obsługa GTK+3. | |
125 | ||
126 | %package gtk3-devel | |
127 | Summary: Header files for garcon-gtk3 library | |
128 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki garcon-gtk3 | |
129 | Group: X11/Development/Libraries | |
130 | Requires: %{name}-devel = %{version}-%{release} | |
131 | Requires: %{name}-gtk3 = %{version}-%{release} | |
132 | Requires: gtk+3-devel | |
133 | ||
134 | %description gtk3-devel | |
135 | Header files for garcon-gtk3 library. | |
136 | ||
137 | %description gtk3-devel -l pl.UTF-8 | |
138 | Pliki nagłówkowe biblioteki garcon-gtk3. | |
139 | ||
140 | %package gtk3-static | |
141 | Summary: Static garcon-gtk3 library | |
142 | Summary(pl.UTF-8): Biblioteka statyczna garcon-gtk3 | |
143 | Group: X11/Development/Libraries | |
144 | Requires: %{name}-gtk3-devel = %{version}-%{release} | |
145 | ||
146 | %description gtk3-static | |
147 | Static garcon-gtk3 library. | |
148 | ||
149 | %description gtk3-static -l pl.UTF-8 | |
150 | Biblioteka statyczna garcon-gtk3. | |
151 | ||
5b2d0a2c JR |
152 | %package apidocs |
153 | Summary: garcon API documentation | |
154 | Summary(pl.UTF-8): Dokumentacja API biblioteki garcon | |
155 | Group: Documentation | |
8bb7cdb3 MB |
156 | Requires: gtk-doc-common |
157 | Obsoletes: libxfce4menu-apidocs | |
52399e16 ER |
158 | %if "%{_rpmversion}" >= "5" |
159 | BuildArch: noarch | |
160 | %endif | |
5b2d0a2c JR |
161 | |
162 | %description apidocs | |
163 | API and internal documentation for garcon library. | |
164 | ||
165 | %description apidocs -l pl.UTF-8 | |
166 | Dokumentacja API biblioteki garcon. | |
167 | ||
168 | %prep | |
169 | %setup -q | |
170 | ||
171 | %build | |
172 | %configure \ | |
5b2d0a2c | 173 | --enable-gtk-doc \ |
583a6232 JB |
174 | --disable-silent-rules \ |
175 | %{?with_static_libs:--enable-static} \ | |
176 | --with-html-dir=%{_gtkdocdir} | |
5b2d0a2c JR |
177 | |
178 | %{__make} | |
179 | ||
180 | %install | |
181 | rm -rf $RPM_BUILD_ROOT | |
182 | ||
183 | %{__make} install \ | |
184 | DESTDIR=$RPM_BUILD_ROOT | |
185 | ||
583a6232 | 186 | # obsoleted by pkg-config |
a3a04fa9 | 187 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
583a6232 JB |
188 | # just a copy of uz (only insignificant headers differ) |
189 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/uz@Latn | |
b1cb073c JR |
190 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie |
191 | # unify | |
192 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{hy_AM,hy} | |
8bb7cdb3 | 193 | |
5b2d0a2c JR |
194 | %find_lang %{name} |
195 | ||
196 | %clean | |
197 | rm -rf $RPM_BUILD_ROOT | |
198 | ||
199 | %post -p /sbin/ldconfig | |
200 | %postun -p /sbin/ldconfig | |
201 | ||
583a6232 JB |
202 | %post gtk2 -p /sbin/ldconfig |
203 | %postun gtk2 -p /sbin/ldconfig | |
204 | ||
5b2d0a2c JR |
205 | %files -f %{name}.lang |
206 | %defattr(644,root,root,755) | |
207 | %doc AUTHORS ChangeLog HACKING NEWS README STATUS TODO | |
208 | %attr(755,root,root) %{_libdir}/libgarcon-1.so.*.*.* | |
209 | %attr(755,root,root) %ghost %{_libdir}/libgarcon-1.so.0 | |
210 | %{_sysconfdir}/xdg/menus | |
a3a04fa9 | 211 | %{_datadir}/desktop-directories |
5b2d0a2c JR |
212 | |
213 | %files devel | |
214 | %defattr(644,root,root,755) | |
215 | %attr(755,root,root) %{_libdir}/libgarcon-1.so | |
5b2d0a2c JR |
216 | %{_includedir}/garcon-1 |
217 | %{_pkgconfigdir}/garcon-1.pc | |
218 | ||
219 | %if %{with static_libs} | |
220 | %files static | |
221 | %defattr(644,root,root,755) | |
222 | %{_libdir}/libgarcon-1.a | |
223 | %endif | |
224 | ||
583a6232 JB |
225 | %files gtk2 |
226 | %defattr(644,root,root,755) | |
227 | %attr(755,root,root) %{_libdir}/libgarcon-gtk2-1.so.*.*.* | |
228 | %attr(755,root,root) %ghost %{_libdir}/libgarcon-gtk2-1.so.0 | |
229 | ||
230 | %files gtk2-devel | |
231 | %defattr(644,root,root,755) | |
232 | %attr(755,root,root) %{_libdir}/libgarcon-gtk2-1.so | |
233 | %{_includedir}/garcon-gtk2-1 | |
234 | %{_pkgconfigdir}/garcon-gtk2-1.pc | |
235 | ||
236 | %if %{with static_libs} | |
237 | %files gtk2-static | |
238 | %defattr(644,root,root,755) | |
239 | %{_libdir}/libgarcon-gtk2-1.a | |
240 | %endif | |
241 | ||
d274fc6f JR |
242 | %files gtk3 |
243 | %defattr(644,root,root,755) | |
244 | %attr(755,root,root) %{_libdir}/libgarcon-gtk3-1.so.*.*.* | |
245 | %attr(755,root,root) %ghost %{_libdir}/libgarcon-gtk3-1.so.0 | |
246 | ||
247 | %files gtk3-devel | |
248 | %defattr(644,root,root,755) | |
249 | %attr(755,root,root) %{_libdir}/libgarcon-gtk3-1.so | |
250 | %{_includedir}/garcon-gtk3-1 | |
251 | %{_pkgconfigdir}/garcon-gtk3-1.pc | |
252 | ||
253 | %if %{with static_libs} | |
254 | %files gtk3-static | |
255 | %defattr(644,root,root,755) | |
256 | %{_libdir}/libgarcon-gtk3-1.a | |
257 | %endif | |
258 | ||
5b2d0a2c JR |
259 | %if %{with apidocs} |
260 | %files apidocs | |
261 | %defattr(644,root,root,755) | |
262 | %{_gtkdocdir}/garcon | |
263 | %endif |