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