File cairo-dock-plugins-extra.spec.in of Package cairo-dock-plugins-extra
#
# spec file for package cairo-dock-plugins-extra
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 Adam Mizerski <adam@mizerski.pl>
#
# 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 ver_major 3
%define ver_minor 4
%define ver_patch 0
%define destdir %{_datadir}/cairo-dock/plug-ins/Dbus/third-party
Name: cairo-dock-plugins-extra
Version: %{ver_major}.%{ver_minor}.%{ver_patch}
Release: 0
Summary: Cairo-dock is a small simple but effective docklet like Mac
License: GPL-2.0+
Group: System/GUI/Other
Url: http://www.glx-dock.org/
Source: https://launchpad.net/cairo-dock-plug-ins-extras/%{ver_major}.%{ver_minor}/%{version}/+download/cairo-dock-plug-ins-extras_%{version}.tar.gz
Patch0: HDDtemperature.patch
# for proper directory ownership
BuildRequires: cairo-dock-plugins-dbus
BuildRequires: fdupes
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Dummy package
%plugins_specs
%lang_package
%prep
%setup -q -n cairo-dock-plug-ins-extras_%{version}
%patch0 -p1
%build
echo "dummy package" > README
%install
mkdir -p %{buildroot}%{destdir}
for plugin in %plugins_names; do
pushd $plugin
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
for file in $(find . -type f); do [ "$(head -c2 $file)" = "#!" ] && chmod +x $file; done
chmod +x $plugin
popd
cp -a $plugin %{buildroot}%{destdir}/
%fdupes -s %{buildroot}%{destdir}/$plugin
done
mkdir -p %{buildroot}%{_datadir}
cp -r locale %{buildroot}%{_datadir}/
%fdupes -s %{buildroot}%{_datadir}/locale
%find_lang %{name}
%files
%defattr(-,root,root)
%doc README
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog