Summary: KDE4 Foo Bar Baz Name: kde4_foo Version: 1.0 Release: 4%{?dist} # KDE e.V. may determine that future GPL versions are accepted License: GPLv2 or GPLv3 URL: http://kde.org/ Source0: %{name}-%{version}.tar.xz BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: kdelibs4-devel %{?kde4_macros_api:Requires: kde4-macros(api) = %{?kde4_macros_api}} Requires: kde-runtime%{?_kde4_version: >= %{_kde4_version}} %description KDE4 Foo Bar Baz is the last application you'll ever need! %prep %setup -q %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake_kde4} .. popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %find_lang %{name} --with-kde || touch %{name}.lang %check for i in %{buildroot}%{_kde4_datadir}/applications/kde4/*.desktop ; do desktop-file-validate "$i" done %post /bin/touch --no-create %{_kde4_iconsdir}/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_kde4_iconsdir}/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &>/dev/null || : fi %posttrans /usr/bin/gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &>/dev/null || : %files -f %{name}.lang %doc AUTHORS COPYING %{_kde4_bindir}/foobarbaz %{_kde4_appsdir}/foobarbaz/ %{_kde4_iconsdir}/hicolor/*/*/* %changelog * Mon May 26 2014 Kevin Kofler 1.0-4 - fix %%{_kde4_datadir} macro name * Tue May 07 2014 Kevin Kofler 1.0-3 - use make install/fast * Tue May 07 2014 Kevin Kofler 1.0-2 - update for current packaging guidelines, upstream licensing policies, tar.xz * Mon Jan 28 2008 Rex Dieter 1.0-1 - first try