]> git.pld-linux.org Git - packages/mate-desktop.git/blame - mate-desktop.spec
up to 1.12.1
[packages/mate-desktop.git] / mate-desktop.spec
CommitLineData
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
6Summary: Shared code for mate-panel, mate-session, mate-file-manager, etc.
7Summary(pl.UTF-8): Kod współdzielony przez pakiety mate-panel, mate-session, mate-file-manager itd.
cd44bed8 8Name: mate-desktop
146eda87 9Version: 1.12.1
0ddb7482 10Release: 1
4a2e326a 11License: LGPL v2+ with MIT parts (library), GPL v2+ (mate-about)
62a037bd 12Group: X11/Applications
0ddb7482 13Source0: http://pub.mate-desktop.org/releases/1.12/%{name}-%{version}.tar.xz
146eda87 14# Source0-md5: f5e1fb4f0b59b3d09b00a90cb07bc281
62a037bd 15URL: http://wiki.mate-desktop.org/mate-desktop
acb3ce9b 16BuildRequires: autoconf >= 2.50
4c420560
JP
17BuildRequires: automake >= 1:1.9
18BuildRequires: dconf-devel >= 0.13.4
cd44bed8 19BuildRequires: desktop-file-utils
3127cae8 20BuildRequires: docbook-dtd412-xml
4a2e326a 21BuildRequires: gdk-pixbuf2-devel >= 2.4.0
d2e139ab 22BuildRequires: gettext-tools
5a969d14
JB
23BuildRequires: glib2-devel >= 1:2.36.0
24BuildRequires: 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}
27BuildRequires: gtk-doc >= 1.4
0ddb7482 28BuildRequires: intltool >= 0.50.1
4c420560 29BuildRequires: libtool
4a2e326a
JB
30%{!?with_gtk3:BuildRequires: libunique-devel >= 1.0}
31%{?with_gtk3:BuildRequires: libunique3-devel >= 3.0}
cd44bed8 32BuildRequires: mate-common
acb3ce9b 33BuildRequires: pkgconfig
30e215e6 34BuildRequires: rpmbuild(find_lang) >= 1.36
4a2e326a 35BuildRequires: startup-notification-devel >= 0.5
cd44bed8 36BuildRequires: tar >= 1:1.22
4a2e326a 37BuildRequires: xorg-lib-libX11-devel
0ddb7482 38BuildRequires: xorg-lib-libXrandr-devel >= 1.3
cd44bed8 39BuildRequires: xz
4c420560 40BuildRequires: yelp-tools
0ddb7482
JP
41Requires(post,postun): gtk-update-icon-cache
42Requires(post,postun): hicolor-icon-theme
cd44bed8 43Requires: %{name}-libs = %{version}-%{release}
b51b8be5 44# for identifying monitors from pnp.ids (libmate-desktop/display-name.c)
303fcda0 45Requires: hwdata >= 0.243-6
de29a936 46Requires: xdg-user-dirs-gtk >= 0.10-2
cd44bed8
ER
47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49%description
50The mate-desktop package contains an internal library (libmatedesktop)
51used to implement some portions of the MATE desktop, and also some
52data files and other shared components of the MATE user environment.
53
4a2e326a
JB
54%description -l pl.UTF-8
55Pakiet mate-desktop zawiera bibliotekę wewnętrzną (libmatedesktop)
56służącą do implementacji niektórych elementów środowiska MATE, trochę
57plików z danymi oraz inne współdzielone komponenty środowiska
58użytkownika MATE.
59
cd44bed8 60%package libs
4a2e326a
JB
61Summary: Shared libmate-desktop library
62Summary(pl.UTF-8): Biblioteka współdzielona libmate-desktop
cd44bed8
ER
63License: LGPL v2+
64Group: Libraries
397d9511 65Requires: dconf >= 0.13.4
4a2e326a 66Requires: gdk-pixbuf2 >= 2.4.0
5a969d14 67Requires: 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}
70Requires: startup-notification >= 0.5
397d9511 71Requires: xorg-lib-libXrandr >= 1.3
cd44bed8
ER
72
73%description libs
4a2e326a
JB
74Shared libmate-desktop library.
75
93ef31b9 76%description libs -l pl.UTF-8
4a2e326a 77Biblioteka współdzielona libmate-desktop.
cd44bed8
ER
78
79%package devel
4a2e326a
JB
80Summary: Header files for libmate-desktop
81Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmate-desktop
cd44bed8
ER
82License: LGPL v2+
83Group: Development/Libraries
84Requires: %{name}-libs = %{version}-%{release}
397d9511 85Requires: dconf-devel >= 0.13.4
4a2e326a 86Requires: gdk-pixbuf2-devel >= 2.4.0
5a969d14 87Requires: 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}
90Requires: startup-notification-devel >= 0.5
cd44bed8
ER
91
92%description devel
4a2e326a
JB
93Header files for the MATE-internal private library libmate-desktop.
94
95%description devel -l pl.UTF-8
96Pliki nagłówkowe prywatnej biblioteki wewnętrznej MATE
97libmate-desktop.
cd44bed8 98
e7085775
ER
99%package apidocs
100Summary: mate-desktop API documentation
101Summary(pl.UTF-8): Dokumentacja API mate-desktop
102Group: Documentation
103Requires: gtk-doc-common
c5b98691
ER
104%if "%{_rpmversion}" >= "5"
105BuildArch: noarch
106%endif
e7085775
ER
107
108%description apidocs
109mate-desktop API documentation.
110
111%description apidocs -l pl.UTF-8
112Dokumentacja 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
137rm -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 142
707cab3a
ER
143# mate < 1.5 did not exist in pld, avoid dependency on mate-conf
144%{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-desktop.convert
145
cd44bed8
ER
146desktop-file-install \
147 --remove-category="MATE" \
148 --add-category="X-Mate" \
149 --delete-original \
150 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
4a2e326a 151 $RPM_BUILD_ROOT%{_desktopdir}/mate-about.desktop
cd44bed8 152
397d9511
JB
153# ku_IQ not supported yet by glibc, ur_PK is empty version of ur
154%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{ku_IQ,ur_PK}
155
156%find_lang %{name} --with-mate
cd44bed8 157
4a2e326a
JB
158%clean
159rm -rf $RPM_BUILD_ROOT
cd44bed8
ER
160
161%post
162%glib_compile_schemas
0ddb7482 163%update_icon_cache hicolor
cd44bed8
ER
164
165%postun
166%glib_compile_schemas
0ddb7482 167%update_icon_cache hicolor
cd44bed8 168
4a2e326a
JB
169%post libs -p /sbin/ldconfig
170%postun libs -p /sbin/ldconfig
cd44bed8
ER
171
172%files -f %{name}.lang
173%defattr(644,root,root,755)
4a2e326a 174%doc AUTHORS ChangeLog MAINTAINERS NEWS README
30e215e6 175%attr(755,root,root) %{_bindir}/mate-about
5a969d14 176%attr(755,root,root) %{_bindir}/mate-color-select
65a4b04d 177%attr(755,root,root) %{_bindir}/mpaste
cd44bed8 178%{_mandir}/man1/mate-about.1*
7bb89418
JP
179%{_mandir}/man1/mate-color-select.1*
180%{_mandir}/man1/mpaste.1*
30e215e6 181%{_desktopdir}/mate-about.desktop
5a969d14 182%{_desktopdir}/mate-color-select.desktop
0ddb7482
JP
183%{_iconsdir}/hicolor/*/apps/mate.png
184%{_iconsdir}/hicolor/scalable/apps/mate-symbolic.svg
30e215e6
ER
185%{_datadir}/mate-about
186%{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml
cd44bed8
ER
187
188%files libs
189%defattr(644,root,root,755)
190%attr(755,root,root) %{_libdir}/libmate-desktop-2.so.*.*.*
4a2e326a 191%attr(755,root,root) %ghost %{_libdir}/libmate-desktop-2.so.17
5a969d14 192%{_libdir}/girepository-1.0/MateDesktop-2.0.typelib
cd44bed8
ER
193
194%files devel
195%defattr(644,root,root,755)
4a2e326a 196%attr(755,root,root) %{_libdir}/libmate-desktop-2.so
cd44bed8 197%{_includedir}/mate-desktop-2.0
5a969d14 198%{_datadir}/gir-1.0/MateDesktop-2.0.gir
4a2e326a 199%{_pkgconfigdir}/mate-desktop-2.0.pc
e7085775
ER
200
201%if %{with apidocs}
202%files apidocs
203%defattr(644,root,root,755)
204%{_gtkdocdir}/mate-desktop
205%endif
This page took 0.234607 seconds and 4 git commands to generate.