Name:           kde4-windeco-dekorator
Group:          Graphics
Summary:        Themable and Customizable Window Decoration Engine for KDE 4
License:        GPL v2 or later
Url:            http://www.kde-look.org/content/show.php?content=87921
Version:        0.4.0.4
Release:        alt0.1
Source0:        87921-dekorator-%{version}.tar.bz2
BuildRequires:  cmake gcc-c++
BuildRequires:  kde4base-workspace-devel libqimageblitz-devel kde4libs-devel


%description
Неофициальный порт на kde4

Автор:
--------
    Moty Rahamim <moty.rahamim@gmail.com>

%description -l ru.UTF-8
Неофициальный порт на kde4

Автор:
--------
    Moty Rahamim <moty.rahamim@gmail.com>


%prep
%setup -q -n dekorator-%version

%build
cmake \
-DCMAKE_INSTALL_PREFIX=%_prefix \
-DCMAKE_CXX_FLAGS:STRING="%optflags" \
-DCMAKE_C_FLAGS:STRING="%optflags" \
-DLIB_DIR:STRING=%_lib



%install
rm -rf %{buildroot}
%make DESTDIR=%buildroot install
%__mkdir -p %buildroot%_datadir/
%__mkdir -p %buildroot%_libdir/

%__install -Dp -m 0644 client/config/deKoratorthemes.knsrc %buildroot%_datadir/kde4/config/deKoratorthemes.knsrc
%__install -Dp -m 0644 lib/kwin3_deKorator.so %buildroot%_libdir/kwin3_deKorator.so
%__install -Dp -m 0644 lib/kwin_deKorator_config.so %buildroot%_libdir/kde4/kwin_deKorator_config.so
%__install -Dp -m 0644 client/deKorator.desktop %buildroot%_desktopdir/kde4/deKorator.desktop
%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%_desktopdir/*
%_libdir/kde4/kwin3_deKorator.so
%_libdir/kde4/kwin_deKorator_config.so
%_datadir/kde4/config/deKoratorthemes.knsrc
