File yzis.spec of Package yzis

#
# spec file for package yzis
#
# Copyright (c) 2012 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:           yzis
# skip-check-libtool-deps
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  file-devel
BuildRequires:  kdelibs4-core
BuildRequires:  libkde4-devel
BuildRequires:  libqt4-devel
BuildRequires:  ncurses-devel
BuildRequires:  pkgconfig(lua) < 5.2
Summary:        Vim Clone for KDE
License:        GPL-2.0+ ; LGPL-2.1+
Group:          Productivity/Editors/Vi
Version:        1.0alpha1
Release:        0
%define tar_version 1.0-alpha1
Url:            http://www.yzis.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %name-%tar_version.tar.bz2
Patch0:         %{name}-lib64.patch

%description
Yzis a brand new editor inspired by vim. Yzis aims to be a powerful,
fast editor with all of Vim's features and hopefully, at some point,
more.

%prep
%setup -q -n %name-%tar_version
%patch0

%build
mkdir build
cd build
export CXXFLAGS=$RPM_OPT_FLAGS
cmake -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_SUFFIX=$(echo %_lib | cut -b4-) -DCMAKE_BUILD_TYPE=release -DENABLE_KPART_YZIS=on -DGENERATE_DOC=on ..
%make_jobs

%install
cd build
%makeinstall
%kde_post_install
  for i in {16,32,64,128}; do
     mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps
     cp $RPM_BUILD_ROOT/usr/share/icons/crystalsvg/"$i"x"$i"/apps/l10n/hicolor/qyzis.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps/;
  done

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig 

%files
%defattr(-,root,root)
%{_bindir}/*
%{_libdir}/lib*
%{_libdir}/kde4
%{_datadir}/%{name}
%{_datadir}/applnk
%{_datadir}/icons/*
%{_datadir}/kde4

%changelog
openSUSE Build Service is sponsored by