# # spec file for package kapptemplate # # Copyright (c) 2014 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: kapptemplate BuildRequires: libkde4-devel Summary: Template for KDE Application Development License: GPL-2.0 and GFDL-1.2 Group: Development/Tools/IDE Url: http://www.kde.org/ Version: 4.13.1 Release: 0 Source0: %{name}-%{version}.tar.xz Patch1: desktop-files.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build Obsoletes: kde4-kapptemplate < %{version} Provides: kde4-kapptemplate = %{version} %kde4_runtime_requires %description This package contains templates to start the development of a new KDE application/part/plugin. %prep %setup -q -n %{name}-%{version} %patch1 -p0 %build %ifarch ppc64 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mminimal-toc" %endif export CXXFLAGS="$RPM_OPT_FLAGS -fPIC" export CFLAGS="$RPM_OPT_FLAGS -fPIC" %cmake_kde4 -d build -- -DCMAKE_CXXFLAGS="$RPM_OPT_FLAGS" -DCMAKE_CFLAGS="$RPM_OPT_FLAGS" #make_jobs make %install cd build %makeinstall cd .. %suse_update_desktop_file kapptemplate %kde_post_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYING COPYING.DOC %{_kde4_bindir}/kapptemplate %{_kde4_applicationsdir}/kapptemplate.desktop %{_kde4_htmldir}/en/kapptemplate/ %{_kde4_appsdir}/kdevappwizard/ %{_kde4_iconsdir}/hicolor/*/apps/kapptemplate.* %{_kde4_configkcfgdir}/kapptemplate.kcfg %changelog