File yast2-qt-graph.spec of Package yast2-qt-graph

#
# spec file for package yast2-qt-graph (Version 2.19.0)
#
# Copyright (c) 2010 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:           yast2-qt-graph
Version:        2.19.0
Release:        1

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-qt-graph-2.19.0.tar.bz2
Group:          System/YaST
License:        GPLv2+
BuildRequires:  cmake graphviz-devel libqt4-devel
BuildRequires:  yast2-devtools yast2-libyui-devel >= 2.18.7 yast2-qt-devel >= 2.18.6
Requires:       yast2-libyui >= 2.18.7 yast2-qt >= 2.18.6
Provides:       yast2-qt:/usr/lib/YaST2/plugin/libpy2qt_graph.so.2
Provides:       yast2_ui_graph
Supplements:    packageand(yast2-storage:yast2-qt)
Summary:        YaST graph plugin

%description
Plugin for YaST to display graphs.

%prep
%setup

%build
mkdir build
cd build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$CFLAGS"
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
      -DLIB=%{_lib} \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_SKIP_RPATH=1 \
      ..
make %{?jobs:-j %jobs} VERBOSE=1

%install
cd build
make install DESTDIR=$RPM_BUILD_ROOT
cd ..

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr (-, root, root)
%doc COPYING
%_libdir/YaST2/plugin/libpy2qt_graph.so.*
%_libdir/YaST2/plugin/libpy2qt_graph.so

%changelog
openSUSE Build Service is sponsored by