]>
Commit | Line | Data |
---|---|---|
f7725faf ER |
1 | # |
2 | # Conditional build: | |
e7085775 | 3 | %bcond_without apidocs # disable gtk-doc |
4a2e326a | 4 | %bcond_with gtk3 # use GTK+ 3.x instead of GTK+ 2.x |
cd44bed8 | 5 | |
4a2e326a JB |
6 | Summary: Shared code for mate-panel, mate-session, mate-file-manager, etc. |
7 | Summary(pl.UTF-8): Kod współdzielony przez pakiety mate-panel, mate-session, mate-file-manager itd. | |
cd44bed8 | 8 | Name: mate-desktop |
5296f63b JP |
9 | Version: 1.14.0 |
10 | Release: 1 | |
4a2e326a | 11 | License: LGPL v2+ with MIT parts (library), GPL v2+ (mate-about) |
62a037bd | 12 | Group: X11/Applications |
5296f63b JP |
13 | Source0: http://pub.mate-desktop.org/releases/1.14/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 59108d3f99b502a02305804852e8eed8 | |
62a037bd | 15 | URL: http://wiki.mate-desktop.org/mate-desktop |
acb3ce9b | 16 | BuildRequires: autoconf >= 2.50 |
4c420560 JP |
17 | BuildRequires: automake >= 1:1.9 |
18 | BuildRequires: dconf-devel >= 0.13.4 | |
cd44bed8 | 19 | BuildRequires: desktop-file-utils |
3127cae8 | 20 | BuildRequires: docbook-dtd412-xml |
4a2e326a | 21 | BuildRequires: gdk-pixbuf2-devel >= 2.4.0 |
d2e139ab | 22 | BuildRequires: gettext-tools |
5a969d14 JB |
23 | BuildRequires: glib2-devel >= 1:2.36.0 |
24 | BuildRequires: gobject-introspection-devel >= 0.9.7 | |
4a2e326a JB |
25 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.24.0} |
26 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} | |
27 | BuildRequires: gtk-doc >= 1.4 | |
0ddb7482 | 28 | BuildRequires: intltool >= 0.50.1 |
4c420560 | 29 | BuildRequires: libtool |
4a2e326a JB |
30 | %{!?with_gtk3:BuildRequires: libunique-devel >= 1.0} |
31 | %{?with_gtk3:BuildRequires: libunique3-devel >= 3.0} | |
cd44bed8 | 32 | BuildRequires: mate-common |
acb3ce9b | 33 | BuildRequires: pkgconfig |
30e215e6 | 34 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
4a2e326a | 35 | BuildRequires: startup-notification-devel >= 0.5 |
cd44bed8 | 36 | BuildRequires: tar >= 1:1.22 |
4a2e326a | 37 | BuildRequires: xorg-lib-libX11-devel |
0ddb7482 | 38 | BuildRequires: xorg-lib-libXrandr-devel >= 1.3 |
cd44bed8 | 39 | BuildRequires: xz |
4c420560 | 40 | BuildRequires: yelp-tools |
0ddb7482 JP |
41 | Requires(post,postun): gtk-update-icon-cache |
42 | Requires(post,postun): hicolor-icon-theme | |
cd44bed8 | 43 | Requires: %{name}-libs = %{version}-%{release} |
b51b8be5 | 44 | # for identifying monitors from pnp.ids (libmate-desktop/display-name.c) |
303fcda0 | 45 | Requires: hwdata >= 0.243-6 |
de29a936 | 46 | Requires: xdg-user-dirs-gtk >= 0.10-2 |
cd44bed8 ER |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
49 | %description | |
50 | The mate-desktop package contains an internal library (libmatedesktop) | |
51 | used to implement some portions of the MATE desktop, and also some | |
52 | data files and other shared components of the MATE user environment. | |
53 | ||
4a2e326a JB |
54 | %description -l pl.UTF-8 |
55 | Pakiet mate-desktop zawiera bibliotekę wewnętrzną (libmatedesktop) | |
56 | służącą do implementacji niektórych elementów środowiska MATE, trochę | |
57 | plików z danymi oraz inne współdzielone komponenty środowiska | |
58 | użytkownika MATE. | |
59 | ||
cd44bed8 | 60 | %package libs |
4a2e326a JB |
61 | Summary: Shared libmate-desktop library |
62 | Summary(pl.UTF-8): Biblioteka współdzielona libmate-desktop | |
cd44bed8 ER |
63 | License: LGPL v2+ |
64 | Group: Libraries | |
397d9511 | 65 | Requires: dconf >= 0.13.4 |
4a2e326a | 66 | Requires: gdk-pixbuf2 >= 2.4.0 |
5a969d14 | 67 | Requires: glib2 >= 1:2.36.0 |
4a2e326a JB |
68 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0} |
69 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
70 | Requires: startup-notification >= 0.5 | |
397d9511 | 71 | Requires: xorg-lib-libXrandr >= 1.3 |
cd44bed8 ER |
72 | |
73 | %description libs | |
4a2e326a JB |
74 | Shared libmate-desktop library. |
75 | ||
93ef31b9 | 76 | %description libs -l pl.UTF-8 |
4a2e326a | 77 | Biblioteka współdzielona libmate-desktop. |
cd44bed8 ER |
78 | |
79 | %package devel | |
4a2e326a JB |
80 | Summary: Header files for libmate-desktop |
81 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmate-desktop | |
cd44bed8 ER |
82 | License: LGPL v2+ |
83 | Group: Development/Libraries | |
84 | Requires: %{name}-libs = %{version}-%{release} | |
397d9511 | 85 | Requires: dconf-devel >= 0.13.4 |
4a2e326a | 86 | Requires: gdk-pixbuf2-devel >= 2.4.0 |
5a969d14 | 87 | Requires: glib2-devel >= 1:2.36.0 |
4a2e326a JB |
88 | %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.24.0} |
89 | %{?with_gtk3:Requires: gtk+3-devel >= 3.0.0} | |
90 | Requires: startup-notification-devel >= 0.5 | |
cd44bed8 ER |
91 | |
92 | %description devel | |
4a2e326a JB |
93 | Header files for the MATE-internal private library libmate-desktop. |
94 | ||
95 | %description devel -l pl.UTF-8 | |
96 | Pliki nagłówkowe prywatnej biblioteki wewnętrznej MATE | |
97 | libmate-desktop. | |
cd44bed8 | 98 | |
e7085775 ER |
99 | %package apidocs |
100 | Summary: mate-desktop API documentation | |
101 | Summary(pl.UTF-8): Dokumentacja API mate-desktop | |
102 | Group: Documentation | |
103 | Requires: gtk-doc-common | |
c5b98691 ER |
104 | %if "%{_rpmversion}" >= "5" |
105 | BuildArch: noarch | |
106 | %endif | |
e7085775 ER |
107 | |
108 | %description apidocs | |
109 | mate-desktop API documentation. | |
110 | ||
111 | %description apidocs -l pl.UTF-8 | |
112 | Dokumentacja API mate-desktop. | |
113 | ||
cd44bed8 ER |
114 | %prep |
115 | %setup -q | |
cd44bed8 ER |
116 | |
117 | %build | |
4c420560 JP |
118 | %{__gtkdocize} |
119 | %{__libtoolize} | |
120 | %{__aclocal} -I m4 | |
121 | %{__autoconf} | |
122 | %{__autoheader} | |
123 | %{__automake} | |
cd44bed8 | 124 | %configure \ |
4a2e326a JB |
125 | %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} \ |
126 | --disable-schemas-compile \ | |
4a2e326a | 127 | --disable-silent-rules \ |
cd44bed8 | 128 | --disable-static \ |
cd44bed8 | 129 | --enable-unique \ |
65a4b04d | 130 | --enable-mpaste \ |
4a2e326a | 131 | %{?with_gtk3:--with-gtk=3.0} \ |
4a2e326a | 132 | --with-pnp-ids-path=/lib/hwdata/pnp.ids |
cd44bed8 | 133 | |
707cab3a | 134 | %{__make} |
cd44bed8 ER |
135 | |
136 | %install | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | %{__make} install \ | |
139 | DESTDIR=$RPM_BUILD_ROOT | |
140 | ||
0dad9a85 | 141 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmate-desktop-2.la |
cd44bed8 ER |
142 | |
143 | desktop-file-install \ | |
144 | --remove-category="MATE" \ | |
145 | --add-category="X-Mate" \ | |
146 | --delete-original \ | |
147 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
4a2e326a | 148 | $RPM_BUILD_ROOT%{_desktopdir}/mate-about.desktop |
cd44bed8 | 149 | |
9bc2eb00 JP |
150 | # jv,ku_IQ not supported yet by glibc, ur_PK is empty version of ur |
151 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{jv,ku_IQ,ur_PK} | |
397d9511 JB |
152 | |
153 | %find_lang %{name} --with-mate | |
cd44bed8 | 154 | |
4a2e326a JB |
155 | %clean |
156 | rm -rf $RPM_BUILD_ROOT | |
cd44bed8 ER |
157 | |
158 | %post | |
159 | %glib_compile_schemas | |
0ddb7482 | 160 | %update_icon_cache hicolor |
cd44bed8 ER |
161 | |
162 | %postun | |
163 | %glib_compile_schemas | |
0ddb7482 | 164 | %update_icon_cache hicolor |
cd44bed8 | 165 | |
4a2e326a JB |
166 | %post libs -p /sbin/ldconfig |
167 | %postun libs -p /sbin/ldconfig | |
cd44bed8 ER |
168 | |
169 | %files -f %{name}.lang | |
170 | %defattr(644,root,root,755) | |
4a2e326a | 171 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
30e215e6 | 172 | %attr(755,root,root) %{_bindir}/mate-about |
5a969d14 | 173 | %attr(755,root,root) %{_bindir}/mate-color-select |
65a4b04d | 174 | %attr(755,root,root) %{_bindir}/mpaste |
cd44bed8 | 175 | %{_mandir}/man1/mate-about.1* |
7bb89418 JP |
176 | %{_mandir}/man1/mate-color-select.1* |
177 | %{_mandir}/man1/mpaste.1* | |
30e215e6 | 178 | %{_desktopdir}/mate-about.desktop |
5a969d14 | 179 | %{_desktopdir}/mate-color-select.desktop |
0ddb7482 JP |
180 | %{_iconsdir}/hicolor/*/apps/mate.png |
181 | %{_iconsdir}/hicolor/scalable/apps/mate-symbolic.svg | |
30e215e6 ER |
182 | %{_datadir}/mate-about |
183 | %{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml | |
cd44bed8 ER |
184 | |
185 | %files libs | |
186 | %defattr(644,root,root,755) | |
187 | %attr(755,root,root) %{_libdir}/libmate-desktop-2.so.*.*.* | |
4a2e326a | 188 | %attr(755,root,root) %ghost %{_libdir}/libmate-desktop-2.so.17 |
5a969d14 | 189 | %{_libdir}/girepository-1.0/MateDesktop-2.0.typelib |
cd44bed8 ER |
190 | |
191 | %files devel | |
192 | %defattr(644,root,root,755) | |
4a2e326a | 193 | %attr(755,root,root) %{_libdir}/libmate-desktop-2.so |
cd44bed8 | 194 | %{_includedir}/mate-desktop-2.0 |
5a969d14 | 195 | %{_datadir}/gir-1.0/MateDesktop-2.0.gir |
4a2e326a | 196 | %{_pkgconfigdir}/mate-desktop-2.0.pc |
e7085775 ER |
197 | |
198 | %if %{with apidocs} | |
199 | %files apidocs | |
200 | %defattr(644,root,root,755) | |
201 | %{_gtkdocdir}/mate-desktop | |
202 | %endif |