File cervisia.spec of Package cervisia
#
# spec file for package cervisia
#
# 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: cervisia
BuildRequires: libkde4-devel
BuildRequires: subversion-devel
Summary: CVS Frontend
License: GPL-2.0 and GFDL-1.2 and LGPL-2.0
Group: Development/Tools/Version Control
Url: http://www.kde.org/
Version: 15.04.0
Release: 0
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: kde4-cervisia = 4.3.0
Obsoletes: kde4-cervisia < 4.3.0
%kde4_runtime_requires
%description -n cervisia
Cervisia is a to work with and browse in CVS repositories.
%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
cd ..
%suse_update_desktop_file cervisia Development RevisionControl
# fix conflict with kdesdk3
rm $RPM_BUILD_ROOT/usr/share/man/man1/cervisia.1
%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 COPYING.LIB ChangeLog README
%{_kde4_bindir}/cervisia
%{_kde4_bindir}/cvsaskpass
%{_kde4_bindir}/cvsservice
%{_kde4_modulesdir}/cervisiapart.so
%{_kde4_libdir}/libkdeinit4_cervisia.so
%{_kde4_libdir}/libkdeinit4_cvsaskpass.so
%{_kde4_libdir}/libkdeinit4_cvsservice.so
%{_kde4_applicationsdir}/cervisia.desktop
%{_datadir}/dbus-1/interfaces/org.kde.cervisia.*.xml
%{_kde4_htmldir}/en/cervisia/
%{_kde4_iconsdir}/hicolor/*/actions/vcs-*.*
%{_kde4_iconsdir}/hicolor/*/apps/cervisia.*
%{_kde4_appsdir}/cervisia/
%{_kde4_appsdir}/cervisiapart/
%{_kde4_configkcfgdir}/cervisiapart.kcfg
%{_kde4_servicesdir}/cervisiapart.desktop
%{_kde4_servicesdir}/cvsservice.desktop
%dir %{_kde4_appsdir}/appdata
%{_kde4_appsdir}/appdata/cervisia.appdata.xml
%changelog