File fate.spec of Package fate.openSUSE_Backports_SLE-12-SP1
#
# spec file for package fate
#
# Copyright (c) 2017 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/
#
%define baseversion 1.6
%define patchlevel .0
%define snapshot 20170608-ebd3ef1b
Name: fate
Version: %{baseversion}%{patchlevel}
Release: 0
Summary: SUSE Feature Management Tool
License: GPL-2.0 or GPL-3.0 or LGPL-2.1+
Group: Productivity/Office/Other
Url: http://inttools.suse.de
Source0: fate-%{snapshot}.tar.bz2
Source1: mkdist
Source2: update
BuildRequires: cmake >= 2.8
BuildRequires: libctemplate-devel
BuildRequires: libkde4-devel
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: pkgconfig
BuildRequires: sqlite-devel
Requires: kdebase4-runtime
Requires: oxygen-icon-theme
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1010
Recommends: diffutils
Recommends: sxtopdf >= 0.5.7
%endif
%if 0%{?suse_version} > 1220
Requires: iceauth
%endif
%description
Fate is the client for the SUSE Feature Management database. It
provides views on the feature data and allows to query and edit them.
%prep
%setup -q -n fate-%{snapshot}
%build
make clean
export SUSE_ASNEEDED=0
export CFLAGS="${optflags}"
export CMAKE_INSTALL_PREFIX=%{_prefix}
make %{?_smp_mflags}
%install
export SUSE_ASNEEDED=0
%make_install
%files
%defattr(-,root,root)
%{_bindir}/fate
%{_datadir}/doc/kde/HTML/en/fate
%{_datadir}/kde4/apps/fate
%{_datadir}/kde4/services/fate.protocol
%{_datadir}/applications/fate.desktop
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/scalable/apps/fate.svgz
%changelog