]>
Commit | Line | Data |
---|---|---|
b51b8be5 | 1 | # |
cd44bed8 | 2 | # Conditional build: |
e7085775 | 3 | %bcond_without apidocs # disable gtk-doc |
cd44bed8 ER |
4 | |
5 | Summary: Shared code for mate-panel, mate-session, mate-file-manager, etc | |
6 | Name: mate-desktop | |
707cab3a ER |
7 | Version: 1.5.6 |
8 | Release: 1 | |
62a037bd ER |
9 | License: GPL v2+ and LGPL v2+ and MIT |
10 | Group: X11/Applications | |
cd44bed8 | 11 | Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz |
707cab3a | 12 | # Source0-md5: 8d7c7348c13913ba55d07891a184b515 |
cd44bed8 | 13 | Source1: user-dirs-update-mate.desktop |
62a037bd | 14 | URL: http://wiki.mate-desktop.org/mate-desktop |
cd44bed8 | 15 | BuildRequires: desktop-file-utils |
3127cae8 ER |
16 | BuildRequires: docbook-dtd412-xml |
17 | BuildRequires: gettext-devel | |
62a037bd ER |
18 | BuildRequires: intltool >= 0.40.0 |
19 | BuildRequires: libunique-devel | |
cd44bed8 | 20 | BuildRequires: mate-common |
6728f842 | 21 | %{?with_apidocs:BuildRequires: mate-doc-utils >= 1.1.0} |
30e215e6 | 22 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
62a037bd | 23 | BuildRequires: startup-notification-devel |
cd44bed8 ER |
24 | BuildRequires: tar >= 1:1.22 |
25 | BuildRequires: xz | |
26 | Requires: %{name}-libs = %{version}-%{release} | |
27 | Requires: glib2 >= 1:2.26.0 | |
303fcda0 | 28 | #Requires: python-pygtk-gtk |
b51b8be5 | 29 | # for identifying monitors from pnp.ids (libmate-desktop/display-name.c) |
303fcda0 | 30 | Requires: hwdata >= 0.243-6 |
cd44bed8 ER |
31 | #Requires: redhat-menus |
32 | Requires: xdg-user-dirs-gtk | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | The mate-desktop package contains an internal library (libmatedesktop) | |
37 | used to implement some portions of the MATE desktop, and also some | |
38 | data files and other shared components of the MATE user environment. | |
39 | ||
40 | %package libs | |
41 | Summary: Shared libraries for libmate-desktop | |
42 | License: LGPL v2+ | |
43 | Group: Libraries | |
cd44bed8 ER |
44 | |
45 | %description libs | |
46 | Shared libraries for libmate-desktop | |
47 | ||
48 | %package devel | |
49 | Summary: Libraries and headers for libmate-desktop | |
50 | License: LGPL v2+ | |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-libs = %{version}-%{release} | |
53 | ||
54 | %description devel | |
55 | Libraries and header files for the MATE-internal private library | |
56 | libmatedesktop. | |
57 | ||
e7085775 ER |
58 | %package apidocs |
59 | Summary: mate-desktop API documentation | |
60 | Summary(pl.UTF-8): Dokumentacja API mate-desktop | |
61 | Group: Documentation | |
62 | Requires: gtk-doc-common | |
63 | ||
64 | %description apidocs | |
65 | mate-desktop API documentation. | |
66 | ||
67 | %description apidocs -l pl.UTF-8 | |
68 | Dokumentacja API mate-desktop. | |
69 | ||
cd44bed8 ER |
70 | %prep |
71 | %setup -q | |
cd44bed8 ER |
72 | |
73 | %build | |
e7085775 | 74 | NOCONFIGURE=1 ./autogen.sh |
cd44bed8 | 75 | %configure \ |
707cab3a | 76 | --disable-silent-rules \ |
cd44bed8 ER |
77 | --enable-gnucat \ |
78 | --disable-scrollkeeper \ | |
79 | --disable-static \ | |
80 | --disable-schemas-compile \ | |
303fcda0 | 81 | --with-pnp-ids-path=/lib/hwdata/pnp.ids \ |
cd44bed8 | 82 | --enable-unique \ |
e7085775 | 83 | %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} \ |
30e215e6 | 84 | --with-omf-dir=%{_datadir}/omf/%{name} |
cd44bed8 | 85 | |
707cab3a | 86 | %{__make} |
cd44bed8 ER |
87 | |
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | %{__make} install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
0dad9a85 | 93 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmate-desktop-2.la |
cd44bed8 | 94 | |
707cab3a ER |
95 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf |
96 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-desktop.convert | |
97 | ||
cd44bed8 ER |
98 | desktop-file-install \ |
99 | --remove-category="MATE" \ | |
100 | --add-category="X-Mate" \ | |
101 | --delete-original \ | |
102 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
103 | $RPM_BUILD_ROOT%{_desktopdir}/mate-about.desktop | |
104 | ||
105 | install -Dp %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/user-dirs-update-mate.desktop | |
106 | ||
30e215e6 | 107 | %find_lang %{name} --with-mate --with-omf --all-name |
cd44bed8 ER |
108 | |
109 | %post libs -p /sbin/ldconfig | |
110 | %postun libs -p /sbin/ldconfig | |
111 | ||
112 | %post | |
113 | %glib_compile_schemas | |
114 | ||
115 | %postun | |
116 | %glib_compile_schemas | |
117 | ||
118 | %clean | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %files -f %{name}.lang | |
122 | %defattr(644,root,root,755) | |
123 | %doc AUTHORS COPYING COPYING.LIB NEWS README | |
cd44bed8 | 124 | %{_sysconfdir}/xdg/autostart/user-dirs-update-mate.desktop |
30e215e6 | 125 | %attr(755,root,root) %{_bindir}/mate-about |
cd44bed8 ER |
126 | %{_mandir}/man1/mate-about.1* |
127 | %{_pixmapsdir}/gnu-cat* | |
30e215e6 ER |
128 | %{_desktopdir}/mate-about.desktop |
129 | %dir %{_datadir}/omf/%{name}/fdl | |
130 | %dir %{_datadir}/omf/%{name}/gpl | |
131 | %dir %{_datadir}/omf/%{name}/lgpl | |
132 | %{_datadir}/mate-about | |
133 | %{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml | |
cd44bed8 ER |
134 | |
135 | %files libs | |
136 | %defattr(644,root,root,755) | |
137 | %attr(755,root,root) %{_libdir}/libmate-desktop-2.so.*.*.* | |
138 | %ghost %{_libdir}/libmate-desktop-2.so.17 | |
139 | ||
140 | %files devel | |
141 | %defattr(644,root,root,755) | |
cd44bed8 ER |
142 | %{_libdir}/libmate-desktop-2.so |
143 | %{_pkgconfigdir}/mate-desktop-2.0.pc | |
144 | %{_includedir}/mate-desktop-2.0 | |
e7085775 ER |
145 | |
146 | %if %{with apidocs} | |
147 | %files apidocs | |
148 | %defattr(644,root,root,755) | |
149 | %{_gtkdocdir}/mate-desktop | |
150 | %endif |