File plasmoid-stealth-cashew.spec of Package plasmoid-stealth-cashew

#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild


%define pname stealth-cashew

Name:           plasmoid-stealth-cashew
Version:        git
Release:        0
License:        GPL-3.0+
Group:          System/GUI/KDE
Source:         %{name}-%{version}.tar.bz2
# git://gitorious.org/pdamsten/plasmoids.git
Summary:        Adjust cashew transparency
Url:            http://kde-look.org/content/show.php/Stealth+Cashew?content=108460
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  fdupes
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  zip
BuildRequires:  update-desktop-files
Requires:       kdebase4-workspace
Requires:       ruby-kde4
%kde4_runtime_requires
BuildArch:      noarch

%description

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}/%_kde4_appsdir/plasma/plasmoids/%pname
mkdir -p  %{buildroot}%_kde4_servicesdir
cp -r * %{buildroot}/%_kde4_appsdir/plasma/plasmoids/%pname/
cp metadata.desktop %{buildroot}%_kde4_servicesdir/plasma-applet-%pname.desktop
%kde_post_install

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root,-)
%doc COPYING
%dir %{_kde4_appsdir}/plasma/plasmoids
%dir %{_kde4_appsdir}/plasma/plasmoids/%pname
%{_kde4_appsdir}/plasma/plasmoids/%pname/*
%{_kde4_servicesdir}/plasma-applet-%pname.desktop

%changelog