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