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