]> git.pld-linux.org Git - packages/mate-desktop.git/blobdiff - mate-desktop.spec
up to 1.12.0
[packages/mate-desktop.git] / mate-desktop.spec
index cc1e08e7ef5bf5b9e851463eb960df2c7ffe2252..0571eddc09eb0aa380d69bfd4db37bf3a1098284 100644 (file)
@@ -1,29 +1,46 @@
 #
 # Conditional build:
 %bcond_without apidocs         # disable gtk-doc
+%bcond_with    gtk3            # use GTK+ 3.x instead of GTK+ 2.x
 
-Summary:       Shared code for mate-panel, mate-session, mate-file-manager, etc
+Summary:       Shared code for mate-panel, mate-session, mate-file-manager, etc.
+Summary(pl.UTF-8):     Kod współdzielony przez pakiety mate-panel, mate-session, mate-file-manager itd.
 Name:          mate-desktop
-Version:       1.5.8
+Version:       1.12.0
 Release:       1
-License:       GPL v2+ and LGPL v2+ and MIT
+License:       LGPL v2+ with MIT parts (library), GPL v2+ (mate-about)
 Group:         X11/Applications
-Source0:       http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
-# Source0-md5: c3b13f8d9125578c98cdf4c8ef940bfb
+Source0:       http://pub.mate-desktop.org/releases/1.12/%{name}-%{version}.tar.xz
+# Source0-md5: 1b7ed68fb5017b40a001e020349be514
 URL:           http://wiki.mate-desktop.org/mate-desktop
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.9
+BuildRequires: dconf-devel >= 0.13.4
 BuildRequires: desktop-file-utils
 BuildRequires: docbook-dtd412-xml
-BuildRequires: gettext-devel
-BuildRequires: intltool >= 0.40.0
-BuildRequires: libunique-devel
+BuildRequires: gdk-pixbuf2-devel >= 2.4.0
+BuildRequires: gettext-tools
+BuildRequires: glib2-devel >= 1:2.36.0
+BuildRequires: gobject-introspection-devel >= 0.9.7
+%{!?with_gtk3:BuildRequires:   gtk+2-devel >= 2:2.24.0}
+%{?with_gtk3:BuildRequires:    gtk+3-devel >= 3.0.0}
+BuildRequires: gtk-doc >= 1.4
+BuildRequires: intltool >= 0.50.1
+BuildRequires: libtool
+%{!?with_gtk3:BuildRequires:   libunique-devel >= 1.0}
+%{?with_gtk3:BuildRequires:    libunique3-devel >= 3.0}
 BuildRequires: mate-common
-%{?with_apidocs:BuildRequires: mate-doc-utils >= 1.1.0}
+BuildRequires: pkgconfig
 BuildRequires: rpmbuild(find_lang) >= 1.36
-BuildRequires: startup-notification-devel
+BuildRequires: startup-notification-devel >= 0.5
 BuildRequires: tar >= 1:1.22
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXrandr-devel >= 1.3
 BuildRequires: xz
+BuildRequires: yelp-tools
+Requires(post,postun): gtk-update-icon-cache
+Requires(post,postun): hicolor-icon-theme
 Requires:      %{name}-libs = %{version}-%{release}
-Requires:      glib2 >= 1:2.26.0
 # for identifying monitors from pnp.ids (libmate-desktop/display-name.c)
 Requires:      hwdata >= 0.243-6
 Requires:      xdg-user-dirs-gtk >= 0.10-2
@@ -34,29 +51,57 @@ The mate-desktop package contains an internal library (libmatedesktop)
 used to implement some portions of the MATE desktop, and also some
 data files and other shared components of the MATE user environment.
 
+%description -l pl.UTF-8
+Pakiet mate-desktop zawiera bibliotekę wewnętrzną (libmatedesktop)
+służącą do implementacji niektórych elementów środowiska MATE, trochę
+plików z danymi oraz inne współdzielone komponenty środowiska
+użytkownika MATE.
+
 %package libs
-Summary:       Shared libraries for libmate-desktop
+Summary:       Shared libmate-desktop library
+Summary(pl.UTF-8):     Biblioteka współdzielona libmate-desktop
 License:       LGPL v2+
 Group:         Libraries
+Requires:      gdk-pixbuf2 >= 2.4.0
+Requires:      glib2 >= 1:2.36.0
+%{!?with_gtk3:Requires:        gtk+2 >= 2:2.24.0}
+%{?with_gtk3:Requires: gtk+3 >= 3.0.0}
+Requires:      startup-notification >= 0.5
+Requires:      xorg-lib-libXrandr >= 1.2
 
 %description libs
-Shared libraries for libmate-desktop
+Shared libmate-desktop library.
+
+%description libs -l pl.UTF-8
+Biblioteka współdzielona libmate-desktop.
 
 %package devel
-Summary:       Libraries and headers for libmate-desktop
+Summary:       Header files for libmate-desktop
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki libmate-desktop
 License:       LGPL v2+
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
+Requires:      gdk-pixbuf2-devel >= 2.4.0
+Requires:      glib2-devel >= 1:2.36.0
+%{!?with_gtk3:Requires:        gtk+2-devel >= 2:2.24.0}
+%{?with_gtk3:Requires: gtk+3-devel >= 3.0.0}
+Requires:      startup-notification-devel >= 0.5
 
 %description devel
-Libraries and header files for the MATE-internal private library
-libmatedesktop.
+Header files for the MATE-internal private library libmate-desktop.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe prywatnej biblioteki wewnętrznej MATE
+libmate-desktop.
 
 %package apidocs
 Summary:       mate-desktop API documentation
 Summary(pl.UTF-8):     Dokumentacja API mate-desktop
 Group:         Documentation
 Requires:      gtk-doc-common
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description apidocs
 mate-desktop API documentation.
@@ -68,17 +113,21 @@ Dokumentacja API mate-desktop.
 %setup -q
 
 %build
-NOCONFIGURE=1 ./autogen.sh
+%{__gtkdocize}
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
+       %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} \
+       --disable-schemas-compile \
        --disable-silent-rules \
-       --enable-gnucat \
-       --disable-scrollkeeper \
        --disable-static \
-       --disable-schemas-compile \
-       --with-pnp-ids-path=/lib/hwdata/pnp.ids \
        --enable-unique \
-       %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} \
-       --with-omf-dir=%{_datadir}/omf/%{name}
+       --enable-mpaste \
+       %{?with_gtk3:--with-gtk=3.0} \
+       --with-pnp-ids-path=/lib/hwdata/pnp.ids
 
 %{__make}
 
@@ -88,54 +137,64 @@ rm -rf $RPM_BUILD_ROOT
        DESTDIR=$RPM_BUILD_ROOT
 
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmate-desktop-2.la
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn
 
 # mate < 1.5 did not exist in pld, avoid dependency on mate-conf
 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-desktop.convert
 
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ku_IQ
+
 desktop-file-install \
        --remove-category="MATE" \
        --add-category="X-Mate" \
        --delete-original \
        --dir=$RPM_BUILD_ROOT%{_desktopdir} \
-$RPM_BUILD_ROOT%{_desktopdir}/mate-about.desktop
+       $RPM_BUILD_ROOT%{_desktopdir}/mate-about.desktop
 
 %find_lang %{name} --with-mate --with-omf --all-name
 
-%post  libs -p /sbin/ldconfig
-%postun        libs -p /sbin/ldconfig
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post
 %glib_compile_schemas
+%update_icon_cache hicolor
 
 %postun
 %glib_compile_schemas
+%update_icon_cache hicolor
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING COPYING.LIB NEWS README
+%doc AUTHORS ChangeLog MAINTAINERS NEWS README
 %attr(755,root,root) %{_bindir}/mate-about
+%attr(755,root,root) %{_bindir}/mate-color-select
+%attr(755,root,root) %{_bindir}/mpaste
 %{_mandir}/man1/mate-about.1*
-%{_pixmapsdir}/gnu-cat*
+%{_mandir}/man1/mate-color-select.1*
+%{_mandir}/man1/mpaste.1*
 %{_desktopdir}/mate-about.desktop
-%dir %{_datadir}/omf/%{name}/fdl
-%dir %{_datadir}/omf/%{name}/gpl
-%dir %{_datadir}/omf/%{name}/lgpl
+%{_desktopdir}/mate-color-select.desktop
+%{_iconsdir}/hicolor/*/apps/mate.png
+%{_iconsdir}/hicolor/scalable/apps/mate-symbolic.svg
 %{_datadir}/mate-about
 %{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml
 
 %files libs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libmate-desktop-2.so.*.*.*
-%ghost %{_libdir}/libmate-desktop-2.so.17
+%attr(755,root,root) %ghost %{_libdir}/libmate-desktop-2.so.17
+%{_libdir}/girepository-1.0/MateDesktop-2.0.typelib
 
 %files devel
 %defattr(644,root,root,755)
-%{_libdir}/libmate-desktop-2.so
-%{_pkgconfigdir}/mate-desktop-2.0.pc
+%attr(755,root,root) %{_libdir}/libmate-desktop-2.so
 %{_includedir}/mate-desktop-2.0
+%{_datadir}/gir-1.0/MateDesktop-2.0.gir
+%{_pkgconfigdir}/mate-desktop-2.0.pc
 
 %if %{with apidocs}
 %files apidocs
This page took 0.095463 seconds and 4 git commands to generate.