]>
Commit | Line | Data |
---|---|---|
5b2d0a2c JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without static_libs # don't build static libraries | |
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 |
8bb7cdb3 MB |
9 | Version: 0.1.5 |
10 | Release: 1 | |
5b2d0a2c JR |
11 | License: LGPL |
12 | Group: X11/Libraries | |
13 | Source0: http://archive.xfce.org/src/libs/garcon/0.1/%{name}-%{version}.tar.bz2 | |
8bb7cdb3 | 14 | # Source0-md5: c4fd42082b4ae157aa4c7abb6d6570aa |
5b2d0a2c | 15 | URL: http://archive.xfce.org/src/libs/garcon/ |
a6697972 | 16 | BuildRequires: gettext-devel |
8bb7cdb3 | 17 | BuildRequires: glib2-devel >= 1:2.14.0 |
5b2d0a2c | 18 | BuildRequires: gtk-doc >= 1.0 |
a6697972 | 19 | BuildRequires: intltool |
20 | BuildRequires: pkgconfig | |
8bb7cdb3 MB |
21 | BuildRequires: xfce4-dev-tools >= 4.8.0 |
22 | Obsoletes: libxfce4menu | |
5b2d0a2c JR |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
8bb7cdb3 MB |
26 | garcon is a freedesktop.org compliant menu implementation based on |
27 | GLib and GIO. It was started as a complete rewrite of the former Xfce | |
28 | menu library called libxfce4menu, which, in contrast to garcon, was | |
29 | lacking menu merging features essential for loading menus modified | |
5b2d0a2c JR |
30 | with menu editors. |
31 | ||
8bb7cdb3 MB |
32 | %description -l pl.UTF-8 |
33 | garcon jest implementacją menu zgodnego z freedesktop.org, bazującą na | |
34 | GLib i GIO. Została rozpoczęta jako całkowite przepisanie biblioteki | |
35 | libxfce4menu, której, w odróżnieniu do garcon, brakowało | |
36 | funkcjonalności łączenia menu, wymaganej w przypadku modyfikowania za | |
37 | pomocą edytora. | |
5b2d0a2c JR |
38 | |
39 | %package devel | |
40 | Summary: Header files for garcon library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki garcon | |
42 | Group: X11/Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
8bb7cdb3 MB |
44 | Requires: glib2-devel >= 1:2.14.0 |
45 | Obsoletes: libxfce4menu-devel | |
5b2d0a2c JR |
46 | |
47 | %description devel | |
48 | Header files for garcon library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe biblioteki garcon. | |
52 | ||
53 | %package static | |
54 | Summary: Static garcon library | |
55 | Summary(pl.UTF-8): Statyczna biblioteka garcon | |
56 | Group: X11/Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
8bb7cdb3 | 58 | Obsoletes: libxfce4menu-static |
5b2d0a2c JR |
59 | |
60 | %description static | |
61 | Static garcon library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka garcon. | |
65 | ||
66 | %package apidocs | |
67 | Summary: garcon API documentation | |
68 | Summary(pl.UTF-8): Dokumentacja API biblioteki garcon | |
69 | Group: Documentation | |
8bb7cdb3 MB |
70 | Requires: gtk-doc-common |
71 | Obsoletes: libxfce4menu-apidocs | |
5b2d0a2c JR |
72 | |
73 | %description apidocs | |
74 | API and internal documentation for garcon library. | |
75 | ||
76 | %description apidocs -l pl.UTF-8 | |
77 | Dokumentacja API biblioteki garcon. | |
78 | ||
79 | %prep | |
80 | %setup -q | |
81 | ||
82 | %build | |
83 | %configure \ | |
84 | %{!?with_static_libs:--disable-static} \ | |
85 | --enable-gtk-doc \ | |
8bb7cdb3 MB |
86 | --with-html-dir=%{_gtkdocdir} \ |
87 | --disable-silent-rules | |
5b2d0a2c JR |
88 | |
89 | %{__make} | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %{__make} install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT | |
96 | ||
8bb7cdb3 MB |
97 | # pt locale is already installed, so there is no need to rename it |
98 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/pt_PT | |
99 | ||
5b2d0a2c JR |
100 | %find_lang %{name} |
101 | ||
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %post -p /sbin/ldconfig | |
106 | %postun -p /sbin/ldconfig | |
107 | ||
108 | %files -f %{name}.lang | |
109 | %defattr(644,root,root,755) | |
110 | %doc AUTHORS ChangeLog HACKING NEWS README STATUS TODO | |
111 | %attr(755,root,root) %{_libdir}/libgarcon-1.so.*.*.* | |
112 | %attr(755,root,root) %ghost %{_libdir}/libgarcon-1.so.0 | |
113 | %{_sysconfdir}/xdg/menus | |
114 | %{_datadir}/desktop-directories/* | |
115 | ||
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_libdir}/libgarcon-1.so | |
119 | %{_libdir}/libgarcon-1.la | |
120 | %{_includedir}/garcon-1 | |
121 | %{_pkgconfigdir}/garcon-1.pc | |
122 | ||
123 | %if %{with static_libs} | |
124 | %files static | |
125 | %defattr(644,root,root,755) | |
126 | %{_libdir}/libgarcon-1.a | |
127 | %endif | |
128 | ||
129 | %if %{with apidocs} | |
130 | %files apidocs | |
131 | %defattr(644,root,root,755) | |
132 | %{_gtkdocdir}/garcon | |
133 | %endif |