]> 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 fe81fac9bab4cd1bf1c2ce8943b012b21dde4ed3..0571eddc09eb0aa380d69bfd4db37bf3a1098284 100644 (file)
@@ -1,39 +1,49 @@
-# TODO
-# - split or move libs to skip circular deps:
-# error: LOOP:
-#error: removing mate-desktop-1.5.5-0.3.i686 "Requires: mate-desktop-libs = 1.5.5-0.3" from tsort relations.
-#error:     mate-desktop-1.5.5-0.3.i686              Requires: mate-desktop-libs = 1.5.5-0.3
-#error: removing mate-desktop-libs-1.5.5-0.3.i686 "Requires: mate-desktop = 1.5.5-0.3" from tsort relations.
-#error:     mate-desktop-libs-1.5.5-0.3.i686         Requires: mate-desktop = 1.5.5-0.3
-# - fix gtk-doc building (probably missing some dtd's)
-# - devel: /usr/share/gtk-doc/html is needed by mate-desktop-devel-1.5.5-0.4.i686
-
+#
 # Conditional build:
 # Conditional build:
-%bcond_with    doc     # gtk doc. broken
+%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
 Name:          mate-desktop
-Version:       1.5.5
-Release:       0.4
-URL:           http://mate-desktop.org
-Source0:       http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
-# Source0-md5: 683a8c3efcb5270cd215d9c856b0ced6
-Source1:       user-dirs-update-mate.desktop
-License:       GPLv2+ and LGPLv2+ and MIT
+Version:       1.12.0
+Release:       1
+License:       LGPL v2+ with MIT parts (library), GPL v2+ (mate-about)
 Group:         X11/Applications
 Group:         X11/Applications
+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: desktop-file-utils
+BuildRequires: docbook-dtd412-xml
+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
 BuildRequires: mate-common
-BuildRequires: pkgconfig(gsettings-desktop-schemas)
-BuildRequires: pkgconfig(libstartup-notification-1.0)
-%{?with_apidoc:BuildRequires:  pkgconfig(mate-doc-utils)}
-BuildRequires: pkgconfig(unique-1.0)
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(find_lang) >= 1.36
+BuildRequires: startup-notification-devel >= 0.5
 BuildRequires: tar >= 1:1.22
 BuildRequires: tar >= 1:1.22
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXrandr-devel >= 1.3
 BuildRequires: xz
 BuildRequires: xz
+BuildRequires: yelp-tools
+Requires(post,postun): gtk-update-icon-cache
+Requires(post,postun): hicolor-icon-theme
 Requires:      %{name}-libs = %{version}-%{release}
 Requires:      %{name}-libs = %{version}-%{release}
-Requires:      glib2 >= 1:2.26.0
-Requires:      python-pygtk-gtk
-#Requires:     redhat-menus
-Requires:      xdg-user-dirs-gtk
+# for identifying monitors from pnp.ids (libmate-desktop/display-name.c)
+Requires:      hwdata >= 0.243-6
+Requires:      xdg-user-dirs-gtk >= 0.10-2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -41,152 +51,153 @@ 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.
 
 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
 %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
 License:       LGPL v2+
 Group:         Libraries
-Requires:      %{name} = %{version}-%{release}
+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
 
 %description libs
-Shared libraries for libmate-desktop
+Shared libmate-desktop library.
+
+%description libs -l pl.UTF-8
+Biblioteka współdzielona libmate-desktop.
 
 %package devel
 
 %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}
 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
 
 %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.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API mate-desktop.
 
 %prep
 %setup -q
 
 %prep
 %setup -q
-NOCONFIGURE=1 ./autogen.sh
 
 %build
 
 %build
+%{__gtkdocize}
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
 %configure \
-       --enable-gnucat \
-       --disable-scrollkeeper \
-       --disable-static \
+       %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} \
        --disable-schemas-compile \
        --disable-schemas-compile \
-       --with-pnp-ids-path="%{_datadir}/hwdata/pnp.ids" \
+       --disable-silent-rules \
+       --disable-static \
        --enable-unique \
        --enable-unique \
-       %{?with_doc:--enable-gtk-doc} \
-       --with-omf-dir=%{_datadir}/omf/mate-desktop
+       --enable-mpaste \
+       %{?with_gtk3:--with-gtk=3.0} \
+       --with-pnp-ids-path=/lib/hwdata/pnp.ids
 
 
-%{__make} \
-       V=1
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
+%{__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} \
 
 desktop-file-install \
        --remove-category="MATE" \
        --add-category="X-Mate" \
        --delete-original \
        --dir=$RPM_BUILD_ROOT%{_desktopdir} \
-$RPM_BUILD_ROOT%{_desktopdir}/mate-about.desktop
-
-install -Dp %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/user-dirs-update-mate.desktop
+       $RPM_BUILD_ROOT%{_desktopdir}/mate-about.desktop
 
 
-%find_lang %{name}
+%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
 
 %post
 %glib_compile_schemas
+%update_icon_cache hicolor
 
 %postun
 %glib_compile_schemas
 
 %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)
 
 %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-about
-%{_sysconfdir}/xdg/autostart/user-dirs-update-mate.desktop
+%attr(755,root,root) %{_bindir}/mate-color-select
+%attr(755,root,root) %{_bindir}/mpaste
+%{_mandir}/man1/mate-about.1*
+%{_mandir}/man1/mate-color-select.1*
+%{_mandir}/man1/mpaste.1*
 %{_desktopdir}/mate-about.desktop
 %{_desktopdir}/mate-about.desktop
-# XXX %lang
-%{_datadir}/mate/help/*/*/*.xml
-%{_datadir}/omf/mate-desktop/
-%{_datadir}/mate-about/
+%{_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
 %{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml
-%{_mandir}/man1/mate-about.1*
-%{_pixmapsdir}/gnu-cat*
-
-# XXX package these help dirs where?
-%dir %{_datadir}/mate/help/fdl
-%dir %{_datadir}/mate/help/gpl
-%dir %{_datadir}/mate/help/lgpl
-%dir %{_datadir}/mate/help/fdl/C
-# XXX %lang
-%dir %{_datadir}/mate/help/fdl/ar
-%dir %{_datadir}/mate/help/fdl/ca
-%dir %{_datadir}/mate/help/fdl/de
-%dir %{_datadir}/mate/help/fdl/el
-%dir %{_datadir}/mate/help/fdl/es
-%dir %{_datadir}/mate/help/fdl/eu
-%dir %{_datadir}/mate/help/fdl/fr
-%dir %{_datadir}/mate/help/fdl/hu
-%dir %{_datadir}/mate/help/fdl/ko
-%dir %{_datadir}/mate/help/fdl/oc
-%dir %{_datadir}/mate/help/fdl/pl
-%dir %{_datadir}/mate/help/fdl/sv
-%dir %{_datadir}/mate/help/fdl/uk
-%dir %{_datadir}/mate/help/fdl/vi
-%dir %{_datadir}/mate/help/gpl/C
-%dir %{_datadir}/mate/help/gpl/ar
-%dir %{_datadir}/mate/help/gpl/ca
-%dir %{_datadir}/mate/help/gpl/cs
-%dir %{_datadir}/mate/help/gpl/de
-%dir %{_datadir}/mate/help/gpl/el
-%dir %{_datadir}/mate/help/gpl/es
-%dir %{_datadir}/mate/help/gpl/eu
-%dir %{_datadir}/mate/help/gpl/fi
-%dir %{_datadir}/mate/help/gpl/fr
-%dir %{_datadir}/mate/help/gpl/hu
-%dir %{_datadir}/mate/help/gpl/ko
-%dir %{_datadir}/mate/help/gpl/nds
-%dir %{_datadir}/mate/help/gpl/oc
-%dir %{_datadir}/mate/help/gpl/pa
-%dir %{_datadir}/mate/help/gpl/sv
-%dir %{_datadir}/mate/help/gpl/uk
-%dir %{_datadir}/mate/help/gpl/vi
-%dir %{_datadir}/mate/help/gpl/zh_CN
-%dir %{_datadir}/mate/help/lgpl/C
-%dir %{_datadir}/mate/help/lgpl/ar
-%dir %{_datadir}/mate/help/lgpl/de
-%dir %{_datadir}/mate/help/lgpl/el
-%dir %{_datadir}/mate/help/lgpl/es
-%dir %{_datadir}/mate/help/lgpl/eu
-%dir %{_datadir}/mate/help/lgpl/fi
-%dir %{_datadir}/mate/help/lgpl/fr
-%dir %{_datadir}/mate/help/lgpl/hu
-%dir %{_datadir}/mate/help/lgpl/ko
-%dir %{_datadir}/mate/help/lgpl/oc
-%dir %{_datadir}/mate/help/lgpl/pa
-%dir %{_datadir}/mate/help/lgpl/sv
-%dir %{_datadir}/mate/help/lgpl/uk
-%dir %{_datadir}/mate/help/lgpl/vi
-%dir %{_datadir}/mate/help/lgpl/zh_CN
 
 %files libs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libmate-desktop-2.so.*.*.*
 
 %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)
 
 %files devel
 %defattr(644,root,root,755)
-#%doc %{_datadir}/gtk-doc/html/mate-desktop
-%{_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
 %{_includedir}/mate-desktop-2.0
+%{_datadir}/gir-1.0/MateDesktop-2.0.gir
+%{_pkgconfigdir}/mate-desktop-2.0.pc
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/mate-desktop
+%endif
This page took 0.091798 seconds and 4 git commands to generate.