File kompare.spec of Package kompare4
#
# spec file for package kompare
#
# Copyright (c) 2015 SUSE LINUX 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: kompare
BuildRequires: libkde4-devel
BuildRequires: libkomparediff2-devel
Summary: File Comparator
License: GPL-2.0 and GFDL-1.2
Group: Development/Tools/Other
Url: http://www.kde.org/
Version: 14.12.3
Release: 0
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: kde4-kompare = 4.3.0
Obsoletes: kde4-kompare < 4.3.0
%kde4_runtime_requires
%description
Tool to visualize changes between two versions of a file.
%package devel
Summary: Development files for the File Comparator
Group: Development/Tools/Other
Requires: %{name} = %{version}
%description devel
Development files for the File Comparator package
%prep
%setup -q -n %{name}-%{version}
%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
%suse_update_desktop_file -r kompare Utility TextEditor
%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 README
%{_kde4_bindir}/kompare
%{_kde4_modulesdir}/komparenavtreepart.so
%{_kde4_modulesdir}/komparepart.so
%{_kde4_libdir}/libkomparedialogpages.so.*
%{_kde4_libdir}/libkompareinterface.so.*
%{_kde4_applicationsdir}/kompare.desktop
%{_kde4_htmldir}/en/kompare/
%{_kde4_iconsdir}/hicolor/*/apps/kompare.*
%{_kde4_appsdir}/kompare/
%{_kde4_servicesdir}/komparenavtreepart.desktop
%{_kde4_servicesdir}/komparepart.desktop
%{_kde4_servicetypesdir}/komparenavigationpart.desktop
%{_kde4_servicetypesdir}/kompareviewpart.desktop
%files devel
%defattr(-,root,root)
%{_kde4_includedir}/kompare/
%{_kde4_libdir}/libkomparedialogpages.so
%{_kde4_libdir}/libkompareinterface.so
%changelog