]>
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 |
136806ae KM |
9 | Version: 0.8.0 |
10 | Release: 1 | |
583a6232 JB |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
136806ae KM |
13 | Source0: https://archive.xfce.org/src/xfce/garcon/0.8/%{name}-%{version}.tar.bz2 |
14 | # Source0-md5: a9c2116b0c34a022385f421b639df0f4 | |
58371417 | 15 | URL: https://gitlab.xfce.org/xfce/garcon |
fc5394e2 | 16 | BuildRequires: gettext-tools |
136806ae | 17 | BuildRequires: glib2-devel >= 1:2.50.0 |
58371417 | 18 | BuildRequires: gtk+3-devel >= 3.20.0 |
5b2d0a2c | 19 | BuildRequires: gtk-doc >= 1.0 |
58371417 | 20 | BuildRequires: intltool >= 0.35 |
136806ae KM |
21 | BuildRequires: libxfce4ui-devel >= 4.16.0 |
22 | BuildRequires: libxfce4util-devel >= 4.16.0 | |
a6697972 | 23 | BuildRequires: pkgconfig |
136806ae | 24 | BuildRequires: xfce4-dev-tools >= 4.16.0 |
58371417 | 25 | Requires: filesystem >= 4.1-15 |
136806ae KM |
26 | Requires: glib2 >= 1:2.50.0 |
27 | Requires: libxfce4util >= 4.16.0 | |
8bb7cdb3 | 28 | Obsoletes: libxfce4menu |
136806ae | 29 | Obsoletes: garcon-gtk2 |
5b2d0a2c JR |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
8bb7cdb3 MB |
33 | garcon is a freedesktop.org compliant menu implementation based on |
34 | GLib and GIO. It was started as a complete rewrite of the former Xfce | |
35 | menu library called libxfce4menu, which, in contrast to garcon, was | |
36 | lacking menu merging features essential for loading menus modified | |
5b2d0a2c JR |
37 | with menu editors. |
38 | ||
8bb7cdb3 MB |
39 | %description -l pl.UTF-8 |
40 | garcon jest implementacją menu zgodnego z freedesktop.org, bazującą na | |
41 | GLib i GIO. Została rozpoczęta jako całkowite przepisanie biblioteki | |
42 | libxfce4menu, której, w odróżnieniu do garcon, brakowało | |
43 | funkcjonalności łączenia menu, wymaganej w przypadku modyfikowania za | |
44 | pomocą edytora. | |
5b2d0a2c JR |
45 | |
46 | %package devel | |
47 | Summary: Header files for garcon library | |
48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki garcon | |
583a6232 | 49 | Group: Development/Libraries |
5b2d0a2c | 50 | Requires: %{name} = %{version}-%{release} |
136806ae | 51 | Requires: glib2-devel >= 1:2.50.0 |
8bb7cdb3 | 52 | Obsoletes: libxfce4menu-devel |
136806ae | 53 | Obsoletes: garcon-gtk2-devel |
5b2d0a2c JR |
54 | |
55 | %description devel | |
56 | Header files for garcon library. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Pliki nagłówkowe biblioteki garcon. | |
60 | ||
61 | %package static | |
62 | Summary: Static garcon library | |
63 | Summary(pl.UTF-8): Statyczna biblioteka garcon | |
583a6232 | 64 | Group: Development/Libraries |
5b2d0a2c | 65 | Requires: %{name}-devel = %{version}-%{release} |
8bb7cdb3 | 66 | Obsoletes: libxfce4menu-static |
5b2d0a2c JR |
67 | |
68 | %description static | |
69 | Static garcon library. | |
70 | ||
71 | %description static -l pl.UTF-8 | |
72 | Statyczna biblioteka garcon. | |
73 | ||
d274fc6f JR |
74 | %package gtk3 |
75 | Summary: Freedesktop.org compliant menu library - GTK+ 3 support | |
76 | Summary(pl.UTF-8): Biblioteka menu zgodnego z Freedesktop.org - obsługa GTK+3 | |
77 | Group: X11/Libraries | |
78 | Requires: %{name} = %{version}-%{release} | |
58371417 | 79 | Requires: gtk+3 >= 3.20.0 |
136806ae | 80 | Requires: libxfce4ui >= 4.16.0 |
d274fc6f JR |
81 | |
82 | %description gtk3 | |
83 | Freedesktop.org compliant menu library - GTK+ 3 support. | |
84 | ||
85 | %description gtk3 -l pl.UTF-8 | |
86 | Biblioteka menu zgodnego z Freedesktop.org - obsługa GTK+3. | |
87 | ||
88 | %package gtk3-devel | |
89 | Summary: Header files for garcon-gtk3 library | |
90 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki garcon-gtk3 | |
91 | Group: X11/Development/Libraries | |
92 | Requires: %{name}-devel = %{version}-%{release} | |
93 | Requires: %{name}-gtk3 = %{version}-%{release} | |
58371417 | 94 | Requires: gtk+3-devel >= 3.20.0 |
136806ae | 95 | Requires: libxfce4ui-devel >= 4.16.0 |
d274fc6f JR |
96 | |
97 | %description gtk3-devel | |
98 | Header files for garcon-gtk3 library. | |
99 | ||
100 | %description gtk3-devel -l pl.UTF-8 | |
101 | Pliki nagłówkowe biblioteki garcon-gtk3. | |
102 | ||
103 | %package gtk3-static | |
104 | Summary: Static garcon-gtk3 library | |
105 | Summary(pl.UTF-8): Biblioteka statyczna garcon-gtk3 | |
106 | Group: X11/Development/Libraries | |
107 | Requires: %{name}-gtk3-devel = %{version}-%{release} | |
108 | ||
109 | %description gtk3-static | |
110 | Static garcon-gtk3 library. | |
111 | ||
112 | %description gtk3-static -l pl.UTF-8 | |
113 | Biblioteka statyczna garcon-gtk3. | |
114 | ||
5b2d0a2c JR |
115 | %package apidocs |
116 | Summary: garcon API documentation | |
117 | Summary(pl.UTF-8): Dokumentacja API biblioteki garcon | |
118 | Group: Documentation | |
8bb7cdb3 MB |
119 | Requires: gtk-doc-common |
120 | Obsoletes: libxfce4menu-apidocs | |
58371417 | 121 | %if "%{_rpmversion}" >= "4.6" |
52399e16 ER |
122 | BuildArch: noarch |
123 | %endif | |
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 |
58371417 | 157 | # not supported by glibc (as of 2.32) |
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) | |
136806ae | 173 | %doc AUTHORS ChangeLog HACKING NEWS STATUS TODO |
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 KM |
178 | %{_libdir}/girepository-1.0/Garcon-1.0.typelib |
179 | %{_iconsdir}/hicolor/32x32/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 |