]>
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 |
7191a029 | 9 | Version: 4.18.2 |
136806ae | 10 | Release: 1 |
583a6232 JB |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
7323d014 | 13 | Source0: https://archive.xfce.org/src/xfce/garcon/4.18/%{name}-%{version}.tar.bz2 |
7191a029 | 14 | # Source0-md5: 153813ff2736f44fa7b6fa96068538d0 |
58371417 | 15 | URL: https://gitlab.xfce.org/xfce/garcon |
fc5394e2 | 16 | BuildRequires: gettext-tools |
30c486cd | 17 | BuildRequires: glib2-devel >= 1:2.66.0 |
7323d014 | 18 | BuildRequires: gobject-introspection-devel >= 1.66.0 |
30c486cd JB |
19 | BuildRequires: gtk+3-devel >= 3.24.0 |
20 | BuildRequires: gtk-doc >= 1.20 | |
21 | BuildRequires: intltool >= 0.51 | |
7323d014 KM |
22 | BuildRequires: libxfce4ui-devel >= 4.18.0 |
23 | BuildRequires: libxfce4util-devel >= 4.18.0 | |
a6697972 | 24 | BuildRequires: pkgconfig |
30c486cd | 25 | BuildRequires: rpm-build >= 4.6 |
7323d014 | 26 | BuildRequires: xfce4-dev-tools >= 4.18.0 |
58371417 | 27 | Requires: filesystem >= 4.1-15 |
30c486cd | 28 | Requires: glib2 >= 1:2.66.0 |
7323d014 | 29 | Requires: libxfce4util >= 4.18.0 |
30c486cd JB |
30 | Obsoletes: garcon-gtk2 < 0.8 |
31 | Obsoletes: libxfce4menu < 4.8 | |
5b2d0a2c JR |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
8bb7cdb3 MB |
35 | garcon is a freedesktop.org compliant menu implementation based on |
36 | GLib and GIO. It was started as a complete rewrite of the former Xfce | |
37 | menu library called libxfce4menu, which, in contrast to garcon, was | |
38 | lacking menu merging features essential for loading menus modified | |
5b2d0a2c JR |
39 | with menu editors. |
40 | ||
8bb7cdb3 MB |
41 | %description -l pl.UTF-8 |
42 | garcon jest implementacją menu zgodnego z freedesktop.org, bazującą na | |
43 | GLib i GIO. Została rozpoczęta jako całkowite przepisanie biblioteki | |
44 | libxfce4menu, której, w odróżnieniu do garcon, brakowało | |
45 | funkcjonalności łączenia menu, wymaganej w przypadku modyfikowania za | |
46 | pomocą edytora. | |
5b2d0a2c JR |
47 | |
48 | %package devel | |
49 | Summary: Header files for garcon library | |
50 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki garcon | |
583a6232 | 51 | Group: Development/Libraries |
5b2d0a2c | 52 | Requires: %{name} = %{version}-%{release} |
30c486cd JB |
53 | Requires: glib2-devel >= 1:2.66.0 |
54 | Obsoletes: garcon-gtk2-devel < 0.8 | |
55 | Obsoletes: libxfce4menu-devel < 4.8 | |
5b2d0a2c JR |
56 | |
57 | %description devel | |
58 | Header files for garcon library. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe biblioteki garcon. | |
62 | ||
63 | %package static | |
64 | Summary: Static garcon library | |
65 | Summary(pl.UTF-8): Statyczna biblioteka garcon | |
583a6232 | 66 | Group: Development/Libraries |
5b2d0a2c | 67 | Requires: %{name}-devel = %{version}-%{release} |
30c486cd | 68 | Obsoletes: libxfce4menu-static < 4.8 |
5b2d0a2c JR |
69 | |
70 | %description static | |
71 | Static garcon library. | |
72 | ||
73 | %description static -l pl.UTF-8 | |
74 | Statyczna biblioteka garcon. | |
75 | ||
d274fc6f JR |
76 | %package gtk3 |
77 | Summary: Freedesktop.org compliant menu library - GTK+ 3 support | |
78 | Summary(pl.UTF-8): Biblioteka menu zgodnego z Freedesktop.org - obsługa GTK+3 | |
79 | Group: X11/Libraries | |
80 | Requires: %{name} = %{version}-%{release} | |
30c486cd | 81 | Requires: gtk+3 >= 3.24.0 |
7323d014 | 82 | Requires: libxfce4ui >= 4.18.0 |
d274fc6f JR |
83 | |
84 | %description gtk3 | |
85 | Freedesktop.org compliant menu library - GTK+ 3 support. | |
86 | ||
87 | %description gtk3 -l pl.UTF-8 | |
88 | Biblioteka menu zgodnego z Freedesktop.org - obsługa GTK+3. | |
89 | ||
90 | %package gtk3-devel | |
91 | Summary: Header files for garcon-gtk3 library | |
92 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki garcon-gtk3 | |
93 | Group: X11/Development/Libraries | |
94 | Requires: %{name}-devel = %{version}-%{release} | |
95 | Requires: %{name}-gtk3 = %{version}-%{release} | |
30c486cd | 96 | Requires: gtk+3-devel >= 3.24.0 |
7323d014 | 97 | Requires: libxfce4ui-devel >= 4.18.0 |
d274fc6f JR |
98 | |
99 | %description gtk3-devel | |
100 | Header files for garcon-gtk3 library. | |
101 | ||
102 | %description gtk3-devel -l pl.UTF-8 | |
103 | Pliki nagłówkowe biblioteki garcon-gtk3. | |
104 | ||
105 | %package gtk3-static | |
106 | Summary: Static garcon-gtk3 library | |
107 | Summary(pl.UTF-8): Biblioteka statyczna garcon-gtk3 | |
108 | Group: X11/Development/Libraries | |
109 | Requires: %{name}-gtk3-devel = %{version}-%{release} | |
110 | ||
111 | %description gtk3-static | |
112 | Static garcon-gtk3 library. | |
113 | ||
114 | %description gtk3-static -l pl.UTF-8 | |
115 | Biblioteka statyczna garcon-gtk3. | |
116 | ||
5b2d0a2c JR |
117 | %package apidocs |
118 | Summary: garcon API documentation | |
119 | Summary(pl.UTF-8): Dokumentacja API biblioteki garcon | |
120 | Group: Documentation | |
8bb7cdb3 | 121 | Requires: gtk-doc-common |
30c486cd | 122 | Obsoletes: libxfce4menu-apidocs < 4.8 |
52399e16 | 123 | BuildArch: noarch |
5b2d0a2c JR |
124 | |
125 | %description apidocs | |
126 | API and internal documentation for garcon library. | |
127 | ||
128 | %description apidocs -l pl.UTF-8 | |
129 | Dokumentacja API biblioteki garcon. | |
130 | ||
131 | %prep | |
132 | %setup -q | |
133 | ||
134 | %build | |
135 | %configure \ | |
5b2d0a2c | 136 | --enable-gtk-doc \ |
583a6232 JB |
137 | --disable-silent-rules \ |
138 | %{?with_static_libs:--enable-static} \ | |
139 | --with-html-dir=%{_gtkdocdir} | |
5b2d0a2c JR |
140 | |
141 | %{__make} | |
142 | ||
143 | %install | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %{__make} install \ | |
147 | DESTDIR=$RPM_BUILD_ROOT | |
148 | ||
136806ae KM |
149 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/garcon} |
150 | ||
583a6232 | 151 | # obsoleted by pkg-config |
a3a04fa9 | 152 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
58371417 JB |
153 | # duplicate of hy |
154 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/hy_AM | |
155 | # older version of uz | |
583a6232 | 156 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/uz@Latn |
30c486cd | 157 | # not supported by glibc (as of 2.37) |
136806ae | 158 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{hye,ie} |
8bb7cdb3 | 159 | |
5b2d0a2c JR |
160 | %find_lang %{name} |
161 | ||
162 | %clean | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
165 | %post -p /sbin/ldconfig | |
166 | %postun -p /sbin/ldconfig | |
167 | ||
58371417 JB |
168 | %post gtk3 -p /sbin/ldconfig |
169 | %postun gtk3 -p /sbin/ldconfig | |
170 | ||
5b2d0a2c JR |
171 | %files -f %{name}.lang |
172 | %defattr(644,root,root,755) | |
7323d014 | 173 | %doc AUTHORS ChangeLog NEWS README.md |
5b2d0a2c JR |
174 | %attr(755,root,root) %{_libdir}/libgarcon-1.so.*.*.* |
175 | %attr(755,root,root) %ghost %{_libdir}/libgarcon-1.so.0 | |
58371417 JB |
176 | %{_sysconfdir}/xdg/menus/xfce-applications.menu |
177 | %{_datadir}/desktop-directories/xfce-*.directory | |
136806ae | 178 | %{_libdir}/girepository-1.0/Garcon-1.0.typelib |
7191a029 | 179 | %{_iconsdir}/hicolor/*x*/apps/org.xfce.garcon.png |
5b2d0a2c JR |
180 | |
181 | %files devel | |
182 | %defattr(644,root,root,755) | |
183 | %attr(755,root,root) %{_libdir}/libgarcon-1.so | |
5b2d0a2c JR |
184 | %{_includedir}/garcon-1 |
185 | %{_pkgconfigdir}/garcon-1.pc | |
136806ae | 186 | %{_datadir}/gir-1.0/Garcon-1.0.gir |
5b2d0a2c JR |
187 | |
188 | %if %{with static_libs} | |
189 | %files static | |
190 | %defattr(644,root,root,755) | |
191 | %{_libdir}/libgarcon-1.a | |
192 | %endif | |
193 | ||
d274fc6f JR |
194 | %files gtk3 |
195 | %defattr(644,root,root,755) | |
196 | %attr(755,root,root) %{_libdir}/libgarcon-gtk3-1.so.*.*.* | |
197 | %attr(755,root,root) %ghost %{_libdir}/libgarcon-gtk3-1.so.0 | |
136806ae | 198 | %{_libdir}/girepository-1.0/GarconGtk-1.0.typelib |
d274fc6f JR |
199 | |
200 | %files gtk3-devel | |
201 | %defattr(644,root,root,755) | |
202 | %attr(755,root,root) %{_libdir}/libgarcon-gtk3-1.so | |
203 | %{_includedir}/garcon-gtk3-1 | |
204 | %{_pkgconfigdir}/garcon-gtk3-1.pc | |
136806ae | 205 | %{_datadir}/gir-1.0/GarconGtk-1.0.gir |
d274fc6f JR |
206 | |
207 | %if %{with static_libs} | |
208 | %files gtk3-static | |
209 | %defattr(644,root,root,755) | |
210 | %{_libdir}/libgarcon-gtk3-1.a | |
211 | %endif | |
212 | ||
5b2d0a2c JR |
213 | %if %{with apidocs} |
214 | %files apidocs | |
215 | %defattr(644,root,root,755) | |
216 | %{_gtkdocdir}/garcon | |
217 | %endif |