]> git.pld-linux.org Git - packages/mate-desktop.git/blame - mate-desktop.spec
- release 2 (by relup.sh)
[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
4c420560 9Version: 1.8.0
1a6e0d91 10Release: 2
4a2e326a 11License: LGPL v2+ with MIT parts (library), GPL v2+ (mate-about)
62a037bd 12Group: X11/Applications
4c420560
JP
13Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
14# Source0-md5: d808e7dd6445991bc41b65982144df00
15Patch0: %{name}-help_prefix.patch
62a037bd 16URL: http://wiki.mate-desktop.org/mate-desktop
4c420560
JP
17BuildRequires: autoconf
18BuildRequires: automake >= 1:1.9
19BuildRequires: dconf-devel >= 0.13.4
cd44bed8 20BuildRequires: desktop-file-utils
3127cae8 21BuildRequires: docbook-dtd412-xml
4a2e326a 22BuildRequires: gdk-pixbuf2-devel >= 2.4.0
3127cae8 23BuildRequires: gettext-devel
4a2e326a
JB
24BuildRequires: glib2-devel >= 1:2.26.0
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
62a037bd 28BuildRequires: intltool >= 0.40.0
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
30e215e6 33BuildRequires: rpmbuild(find_lang) >= 1.36
4a2e326a 34BuildRequires: startup-notification-devel >= 0.5
cd44bed8 35BuildRequires: tar >= 1:1.22
4a2e326a
JB
36BuildRequires: xorg-lib-libX11-devel
37BuildRequires: xorg-lib-libXrandr-devel >= 1.2
cd44bed8 38BuildRequires: xz
4c420560 39BuildRequires: yelp-tools
cd44bed8 40Requires: %{name}-libs = %{version}-%{release}
b51b8be5 41# for identifying monitors from pnp.ids (libmate-desktop/display-name.c)
303fcda0 42Requires: hwdata >= 0.243-6
de29a936 43Requires: xdg-user-dirs-gtk >= 0.10-2
cd44bed8
ER
44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46%description
47The mate-desktop package contains an internal library (libmatedesktop)
48used to implement some portions of the MATE desktop, and also some
49data files and other shared components of the MATE user environment.
50
4a2e326a
JB
51%description -l pl.UTF-8
52Pakiet mate-desktop zawiera bibliotekę wewnętrzną (libmatedesktop)
53służącą do implementacji niektórych elementów środowiska MATE, trochę
54plików z danymi oraz inne współdzielone komponenty środowiska
55użytkownika MATE.
56
cd44bed8 57%package libs
4a2e326a
JB
58Summary: Shared libmate-desktop library
59Summary(pl.UTF-8): Biblioteka współdzielona libmate-desktop
cd44bed8
ER
60License: LGPL v2+
61Group: Libraries
4a2e326a
JB
62Requires: gdk-pixbuf2 >= 2.4.0
63Requires: glib2 >= 1:2.26.0
64%{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0}
65%{?with_gtk3:Requires: gtk+3 >= 3.0.0}
66Requires: startup-notification >= 0.5
67Requires: xorg-lib-libXrandr >= 1.2
cd44bed8
ER
68
69%description libs
4a2e326a
JB
70Shared libmate-desktop library.
71
72%description libs -l pl.UTF_8
73Biblioteka współdzielona libmate-desktop.
cd44bed8
ER
74
75%package devel
4a2e326a
JB
76Summary: Header files for libmate-desktop
77Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmate-desktop
cd44bed8
ER
78License: LGPL v2+
79Group: Development/Libraries
80Requires: %{name}-libs = %{version}-%{release}
4a2e326a 81Requires: gdk-pixbuf2-devel >= 2.4.0
f7725faf 82Requires: glib2-devel >= 1:2.26.0
4a2e326a
JB
83%{!?with_gtk3:Requires: gtk+2-devel >= 2:2.24.0}
84%{?with_gtk3:Requires: gtk+3-devel >= 3.0.0}
85Requires: startup-notification-devel >= 0.5
cd44bed8
ER
86
87%description devel
4a2e326a
JB
88Header files for the MATE-internal private library libmate-desktop.
89
90%description devel -l pl.UTF-8
91Pliki nagłówkowe prywatnej biblioteki wewnętrznej MATE
92libmate-desktop.
cd44bed8 93
e7085775
ER
94%package apidocs
95Summary: mate-desktop API documentation
96Summary(pl.UTF-8): Dokumentacja API mate-desktop
97Group: Documentation
98Requires: gtk-doc-common
99
100%description apidocs
101mate-desktop API documentation.
102
103%description apidocs -l pl.UTF-8
104Dokumentacja API mate-desktop.
105
cd44bed8
ER
106%prep
107%setup -q
4c420560 108%patch0 -p1
cd44bed8
ER
109
110%build
4c420560
JP
111%{__gtkdocize}
112%{__libtoolize}
113%{__aclocal} -I m4
114%{__autoconf}
115%{__autoheader}
116%{__automake}
cd44bed8 117%configure \
4a2e326a
JB
118 %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} \
119 --disable-schemas-compile \
4a2e326a 120 --disable-silent-rules \
cd44bed8 121 --disable-static \
cd44bed8 122 --enable-unique \
65a4b04d 123 --enable-mpaste \
4a2e326a 124 %{?with_gtk3:--with-gtk=3.0} \
4a2e326a 125 --with-pnp-ids-path=/lib/hwdata/pnp.ids
cd44bed8 126
707cab3a 127%{__make}
cd44bed8
ER
128
129%install
130rm -rf $RPM_BUILD_ROOT
131%{__make} install \
132 DESTDIR=$RPM_BUILD_ROOT
133
0dad9a85 134%{__rm} $RPM_BUILD_ROOT%{_libdir}/libmate-desktop-2.la
4c420560 135%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn
cd44bed8 136
707cab3a
ER
137# mate < 1.5 did not exist in pld, avoid dependency on mate-conf
138%{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-desktop.convert
139
cd44bed8
ER
140desktop-file-install \
141 --remove-category="MATE" \
142 --add-category="X-Mate" \
143 --delete-original \
144 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
4a2e326a 145 $RPM_BUILD_ROOT%{_desktopdir}/mate-about.desktop
cd44bed8 146
30e215e6 147%find_lang %{name} --with-mate --with-omf --all-name
cd44bed8 148
4a2e326a
JB
149%clean
150rm -rf $RPM_BUILD_ROOT
cd44bed8
ER
151
152%post
153%glib_compile_schemas
154
155%postun
156%glib_compile_schemas
157
4a2e326a
JB
158%post libs -p /sbin/ldconfig
159%postun libs -p /sbin/ldconfig
cd44bed8
ER
160
161%files -f %{name}.lang
162%defattr(644,root,root,755)
4a2e326a 163%doc AUTHORS ChangeLog MAINTAINERS NEWS README
30e215e6 164%attr(755,root,root) %{_bindir}/mate-about
06fcb55c 165%attr(755,root,root) %{_bindir}/mate-gsettings-toggle
65a4b04d 166%attr(755,root,root) %{_bindir}/mpaste
cd44bed8 167%{_mandir}/man1/mate-about.1*
4c420560 168%{_mandir}/man1/mate-gsettings-toggle.1*
30e215e6 169%{_desktopdir}/mate-about.desktop
4c420560 170%{_desktopdir}/mate-user-guide.desktop
30e215e6
ER
171%{_datadir}/mate-about
172%{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml
cd44bed8
ER
173
174%files libs
175%defattr(644,root,root,755)
176%attr(755,root,root) %{_libdir}/libmate-desktop-2.so.*.*.*
4a2e326a 177%attr(755,root,root) %ghost %{_libdir}/libmate-desktop-2.so.17
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
4a2e326a 183%{_pkgconfigdir}/mate-desktop-2.0.pc
e7085775
ER
184
185%if %{with apidocs}
186%files apidocs
187%defattr(644,root,root,755)
188%{_gtkdocdir}/mate-desktop
189%endif
This page took 0.097744 seconds and 4 git commands to generate.