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