File libqdialogsolver1.spec of Package libqdialogsolver1.2526
#
# spec file for package libqdialogsolver
#
# Copyright (c) 2007-2011 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/
#
# norootforbuild
Name: libqdialogsolver1
Version: 1.3.1
Release: 0
License: GPL-2.0+
Group: System/Packages
Summary: QDialog class for showing solver results
%if 0%{?suse_version}
%requires_ge libzypp
%endif
Requires: graphviz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libqt4-devel gettext-devel cmake
BuildRequires: gcc-c++ >= 4.5
%if 0%{?suse_version} <= 1220
BuildRequires: yast2-libyui-devel
%else
BuildRequires: libyui-devel
%endif
# API Changes in zypp 2.1
BuildRequires: libzypp-devel >= 2.8.7
Source: libqdialogsolver1-%{version}.tar.bz2
Patch0: libyui.patch
%description
This package provides a QDialog class for showing solver results
%package devel
License: GPL-2.0+
Requires: libqdialogsolver1 == %{version}
Summary: QDialog class for showing solver results
Group: Development/Libraries/Others
%description -n libqdialogsolver1-devel
This package provides a QDialog class for showing solver results.
Included needed header files
Authors:
--------
Rajko Albrecht <ral@alwins-world.de>
Stefan Schubert <schubi@suse.de>
%prep
%setup -q -n libqdialogsolver1-%{version}
%patch0 -p1
%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
make -C po %{?jobs:-j %jobs} translations
%install
cd build
make install DESTDIR=$RPM_BUILD_ROOT
make -C po install DESTDIR=$RPM_BUILD_ROOT
# Create filelist with translations
cd ..
%{find_lang} dialogsolver
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -f dialogsolver.lang
%defattr(-,root,root)
%{_libdir}/libqdialogsolver.so.1
%{_libdir}/yui/libyui-qt_zypp_solver_dialog.so.*
%files devel
%defattr(-,root,root)
%dir /usr/include/zypp
/usr/include/zypp/*
%{_libdir}/libqdialogsolver.so
%{_libdir}/yui/libyui-qt_zypp_solver_dialog.so
%changelog