File kdewin-png2ico.spec of Package kdewin-png2ico
#
# spec file for package kdewin-png2ico
#
# Copyright (c) 2013 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/
#
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libqt4-devel
BuildRequires: libqt4-x11
Name: kdewin-png2ico
Summary: Creates windows .ico files from png images
License: GPL-2.0+
Group: Development
Version: 0.0+svn1192707
Release: 0
Source: png2ico-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://windows.kde.org
Patch0: add-find-package-qt4-to-cmakelists.patch
%define prefix /usr
%description
This is the version from kdesupport/kdewin/tools, it's needed for the kde4_add_app_icon cmake macro.
(png2ico from opensuse repositories is incompatible)
%prep
%setup -q -n png2ico-%{version}
%patch -P0 -p0
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$CFLAGS"
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DOWN_SHAPER=1 .
make %{?jobs:-j %jobs} VERBOSE=1
%install
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf "$RPM_BUILD_ROOT"
%post
%postun
%files
%defattr(-,root,root,0755)
%{_bindir}/png2ico
%changelog