File libqdialogsolver1.spec of Package libqdialogsolver1

#
# spec file for package libqdialogsolver1 (Version 1.3.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/
#

# norootforbuild


Name:           libqdialogsolver1
Version:        1.3.0
Release:        2.<RELEASE12>
License:        GPLv2+
Group:          System/Packages
Summary:        QDialog class for showing solver results
Requires:       libzypp >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' libzypp`) graphviz
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cmake gcc-c++ gettext-devel libqt4-devel yast2-libyui-devel
# API Changes in zypp 2.1
BuildRequires:  libzypp-devel >= 2.8.7
Source:         libqdialogsolver1-%{version}.tar.bz2

%description
This package provides a QDialog class for showing solver results



Authors:
--------
    Rajko Albrecht <ral@alwins-world.de>
    Stefan Schubert <schubi@suse.de>

%package devel
License:        GPLv2+
Requires:       libqdialogsolver1 == %{version}
Summary:        QDialog class for showing solver results
Group:          Development/Libraries/Other

%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}

%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)
%dir %{_libdir}/YaST2/plugin
%dir %{_libdir}/YaST2
%{_libdir}/libqdialogsolver.so.1
%{_libdir}/YaST2/plugin/libpy2qt_zypp_solver_dialog.so.2

%files devel
%defattr(-,root,root)
%dir /usr/include/zypp
/usr/include/zypp/*
%{_libdir}/libqdialogsolver.so
%{_libdir}/YaST2/plugin/libpy2qt_zypp_solver_dialog.so

%changelog
openSUSE Build Service is sponsored by