File mate-applet-dock.spec of Package mate-applet-dock

#
# spec file for package mate-applet-dock
#
# Copyright (c) 2015 SUSE LINUX 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/
#


%define _name   dock-applet
Name:           mate-applet-dock
Version:        0.65
Release:        0
Summary:        Dock applet for the MATE panel
License:        GPL-2.0+
Group:          System/GUI/Other
Url:            https://github.com/robint99/dock-applet
Source:         https://github.com/robint99/%{_name}/archive/V%{version}.tar.gz#/%{_name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  gobject-introspection-devel
BuildRequires:  python3-devel
Requires:       python3-xdg
%glib2_gsettings_schema_requires

%description
An application dock applet for the MATE panel.

The applet allows you to:
 * Place a dock on any MATE panel, of any size, on any side of the
   desktop you desire.
 * Pin and unpin apps to the dock.
 * Rearrange application icons on the dock.
 * Launch apps by clicking on their icons in the dock.
 * Minimise/unminimise running app windows by clicking the
   applications dock icon.
 * Detect changes in the current icon theme and update the dock
   accordingly.
 * Use an indicator by each app to show when it is running.
 * Optionally, use multiple indicators for each window an app has
   open.
 * Use either a light or dark indicator that it can always be seen
   no matter what colour the panel is.

%prep
%setup -q -n %{_name}-%{version}
if [ -L COPYING ]; then
    cp -f %{_datadir}/automake-*/COPYING License
    mv -f License COPYING
fi
sed -i 's|%{_bindir}/env/|%{_bindir}/env|' src/docked_app.in

%build
autoreconf -fi
%configure
make %{?_smp_mflags}

%install
%make_install
%fdupes %{buildroot}%{_libdir}

find %{buildroot}%{_libdir} -type f -name '*.py' | while read py; do
    if [[ "$(head -c2 "$py"; echo)" == "#!" ]]; then
        chmod a+x "$py"
    else
        chmod a-x "$py"
    fi
done

%post
%glib2_gsettings_schema_post

%postun
%glib2_gsettings_schema_postun

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%dir %{_libdir}/mate-applets/
%{_libdir}/mate-applets/mate-dock-applet/
%dir %{_datadir}/dbus-1/
%dir %{_datadir}/dbus-1/services/
%{_datadir}/dbus-1/services/org.mate.panel.applet.*.service
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%dir %{_datadir}/mate-panel/
%dir %{_datadir}/mate-panel/applets/
%{_datadir}/mate-panel/applets/org.mate.panel.*.mate-panel-applet

%changelog
openSUSE Build Service is sponsored by