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