File mate-utils.spec of Package mate-utils

#
# spec file for mate-utils
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           mate-utils
Version:        1.8.1
Release:        0
License:        GPL-2.0+ and LGPL-2.0+ and GFDL-1.1
Summary:        MATE Desktop utilities
Url:            http://mate-desktop.org
Group:          System/GUI/Other
Source:         http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
%glib2_gsettings_schema_requires

BuildRequires:  fdupes
BuildRequires:  itstool
BuildRequires:  libxml2-python
BuildRequires:  mate-common
BuildRequires:  pkgconfig(libgtop-2.0)
BuildRequires:  pkgconfig(libmatepanelapplet-4.0) >= 1.8.0
BuildRequires:	pkgconfig(libcanberra-gtk)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  popt-devel
BuildRequires:  update-desktop-files
# Avoid owned /usr/share/mate-panel
BuildRequires:  mate-panel-branding-upstream

%description
This package provides all the tools bundled with MATE Desktop utilities:
 - mate-disk-usage-analyzer, a disk usage analyser
 - mate-dictionary, a program which can look up the definition of words
 - mate-search-tool, with which one can find files by name or content
 - mate-system-log, a log viewing application
 - mate-screenshot, a tool to take desktop screenshots and save them

%package common-lang
Summary:        Languages for MATE utilities
Group:          System/Localization
Provides:       mate-search-tool-lang = %{version}
Provides:       mate-disk-usage-analyzer-lang = %{version}
Provides:       mate-dictionary-lang = %{version}
Provides:       mate-system-log-lang = %{version}
Provides:       mate-screenshot-lang = %{version}
BuildArch:      noarch

%description common-lang
Provides common translations shared by Caja extensions

%package -n mate-search-tool
License:        GPL-2.0+
Summary:        Mate Search Tool
Group:          System/GUI/Other
Recommends:     mate-search-tool-lang

%description -n mate-search-tool
This is the MATE Seach Tool as shipped with the MATE utilities. It uses
command-line tools such as find and locate to get results.

%package -n mate-disk-usage-analyzer
License:        GPL-2.0+
Summary:        Mate disk usage analyser
Group:          System/GUI/Other
Recommends:     mate-disk-usage-analyzer-lang

%description -n mate-disk-usage-analyzer
This is the MATE Disk Usage Analyzer as shipped with the MATE utilities.
mate-disk-usage-analyzer is able to scan either specific directories or 
the wholefilesystem, in order to give the user a graphical tree representation
including each directory size or percentage in the branch.
It also auto-detects in real-time any change made to your home 
folder as far as any mounted/unmounted device.

%package -n mate-dictionary
License:        GPL-2.0+
Summary:        Mate dictionary
Group:          System/GUI/Other
Recommends:     mate-dictionary-lang

%description -n mate-dictionary
This is the MATE dictionary as shipped with the MATE utilities.
mate-dictionary is a program which can look up the definition of
words

%package -n mate-system-log
License:        GPL-2.0+
Summary:        Mate system log viewer
Group:          System/GUI/Other
Recommends:     mate-system-log-lang

%description -n mate-system-log
This is the MATE system log viewer as shipped with the MATE utilities.
mate-system-log is a program which can view logs generated by the
operating system.

%package -n mate-screenshot
License:        GPL-2.0+
Summary:        Mate screenshot maker
Group:          System/GUI/Other
Recommends:     mate-screenshot-lang

%description -n mate-screenshot
This is the MATE screenshot maker as shipped with the MATE utilities.
mate-screenshot is a program which cantake desktop screenshots and
save them.

%package -n libmatedict6
License:        GPL-2.0+
Summary:        Library to look up words in dictionary sources
Group:          System/Libraries

%description -n libmatedict6
The matedict library is an engine to look up words in dictionary sources.

%package -n libmatedict-devel
License:        GPL-2.0+
Summary:        Library to look up words in dictionary sources -- Development Files
Group:          Development/Libraries/C and C++
Requires:       libmatedict6 = %{version}

%description -n libmatedict-devel
The matedict library is an engine to look up words in dictionary sources.
This package contains development files for libmatedict

%prep
%setup -q

%build
%configure                                                             \
   --disable-static                                                    \
   --libexecdir=%{_libexecdir}/%{name}                                 \
   --enable-ipv6=yes
make %{?_smp_mflags}


%install
%makeinstall
%find_lang %{name}
find %{buildroot}%{_libdir} -type f -name "*.la" -print -delete
if [ -d %{buildroot}%{_datadir}/MateConf ]; then
   rm -rf %{buildroot}%{_datadir}/MateConf
fi
%fdupes %{buildroot}%{_datadir}
%suse_update_desktop_file mate-disk-usage-analyzer
%suse_update_desktop_file mate-dictionary
%suse_update_desktop_file mate-search-tool
%suse_update_desktop_file mate-system-log
%suse_update_desktop_file mate-screenshot

%post -n libmatedict6
/sbin/ldconfig

%post -n mate-disk-usage-analyzer
%glib2_gsettings_schema_post
%desktop_database_post

%post -n mate-dictionary
%glib2_gsettings_schema_post
%desktop_database_post

%post -n mate-screenshot
%glib2_gsettings_schema_post
%desktop_database_post

%post -n mate-search-tool
%glib2_gsettings_schema_post
%desktop_database_post

%post -n mate-system-log
%glib2_gsettings_schema_post
%desktop_database_post

%postun -n libmatedict6
/sbin/ldconfig

%postun -n mate-disk-usage-analyzer
%glib2_gsettings_schema_postun
%desktop_database_postun

%postun -n mate-dictionary
%glib2_gsettings_schema_postun
%desktop_database_postun

%postun -n mate-screenshot
%glib2_gsettings_schema_postun
%desktop_database_postun

%postun -n mate-search-tool
%glib2_gsettings_schema_postun
%desktop_database_postun

%postun -n mate-system-log
%glib2_gsettings_schema_postun
%desktop_database_postun

%files -n mate-disk-usage-analyzer
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README COPYING COPYING.docs COPYING.libs
%{_bindir}/mate-disk-usage-analyzer
%{_datadir}/applications/mate-disk-usage-analyzer.desktop
%{_datadir}/mate-disk-usage-analyzer/
%{_datadir}/glib-2.0/schemas/org.mate.disk-usage-analyzer.gschema.xml
%{_datadir}/help/C/mate-disk-usage-analyzer/
%{_datadir}/icons/hicolor/*/apps/mate-disk-usage-analyzer.png
%{_datadir}/icons/hicolor/scalable/apps/mate-disk-usage-analyzer.svg
%{_mandir}/man1/mate-disk-usage-analyzer.1*

%files -n mate-dictionary
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README COPYING COPYING.docs COPYING.libs
%{_datadir}/help/C/mate-dictionary/
%{_bindir}/mate-dictionary
%{_datadir}/applications/mate-dictionary.desktop
%{_datadir}/dbus-1/services/org.mate.panel.applet.DictionaryAppletFactory.service
%{_datadir}/glib-2.0/schemas/org.mate.dictionary.gschema.xml
%{_datadir}/mate-dictionary/
%{_datadir}/mate-panel/applets/org.mate.DictionaryApplet.mate-panel-applet
%dir %{_libexecdir}/mate-utils
%{_libexecdir}/mate-utils/mate-dictionary-applet
%{_mandir}/man1/mate-dictionary.1*

%files -n mate-screenshot
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README COPYING COPYING.docs COPYING.libs
%{_bindir}/mate-panel-screenshot
%{_bindir}/mate-screenshot
%{_datadir}/applications/mate-screenshot.desktop
%{_datadir}/glib-2.0/schemas/org.mate.screenshot.gschema.xml
%{_datadir}/mate-screenshot/
%{_mandir}/man1/mate-panel-screenshot.1.gz
%{_mandir}/man1/mate-screenshot.1*

%files -n mate-search-tool
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README COPYING COPYING.docs COPYING.libs
%{_bindir}/mate-search-tool
%{_datadir}/applications/mate-search-tool.desktop
%{_datadir}/glib-2.0/schemas/org.mate.search-tool.gschema.xml
%{_datadir}/help/C/mate-search-tool
%{_mandir}/man1/mate-search-tool.1.gz
%dir %{_datadir}/pixmaps/mate-search-tool
%{_datadir}/pixmaps/mate-search-tool/thumbnail_frame.png

%files -n mate-system-log
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README COPYING COPYING.docs COPYING.libs
%{_datadir}/help/C/mate-system-log/
%{_bindir}/mate-system-log
%{_datadir}/applications/mate-system-log.desktop
%{_datadir}/glib-2.0/schemas/org.mate.system-log.gschema.xml
%{_datadir}/mate-utils/
%{_mandir}/man1/mate-system-log.1*

%files -n libmatedict6
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README COPYING COPYING.docs COPYING.libs
%{_datadir}/mate-dict
%{_libdir}/libmatedict.so.*

%files -n libmatedict-devel
%defattr(-,root,root,-)
%dir %{_includedir}/mate-dict
%{_includedir}/mate-dict/gdict
%{_datadir}/gtk-doc/html/mate-dict
%{_libdir}/libmatedict.so
%{_libdir}/pkgconfig/mate-dict.pc

%files common-lang -f %{name}.lang
%defattr(-,root,root,-)
%{_datadir}/help/
%exclude %{_datadir}/help/C

%changelog
openSUSE Build Service is sponsored by