File libyui-bindings.spec of Package libyui-bindings

#
# spec file for package libyui-bindings (Version 0.1.0)
#
# Copyright (c) 2008 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/
#

# nodebuginfo


Name:           libyui-bindings
Version:        0.1.0
Release:        5
License:        GPL v2 or later
Summary:        Ruby bindings for yast2-libyui
Group:          Development/Libraries/Ruby
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cmake gcc-c++ perl python-devel ruby-devel swig
BuildRequires:  yast2-libyui-devel >= 2.16
Source:         %{name}-%{version}.tar.bz2
Prefix:         /usr

%description
This package provides Ruby language bindings to access functions of
yast2-libyui - the YaST User Interface engine that provides the
abstraction from graphical user interfaces (Qt, Gtk) and text based
user interfaces (ncurses).



Authors:
--------
    kkaempf@suse.de
    dmacvicar@suse.de

%prep
%setup -q

%build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
      -DLIB=%{_lib} \
      -DPYTHON_SITEDIR=%{py_sitedir} \
      -DCMAKE_VERBOSE_MAKEFILE=TRUE \
      -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
      -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_SKIP_RPATH=1 \
      ..
make %{?jobs:-j %jobs}

%install
cd build
make install DESTDIR=$RPM_BUILD_ROOT

%clean
%{__rm} -rf %{buildroot}

%package -n ruby-yui
License:        GPL v2 or later
Summary:        Ruby bindings for yast2-libyui
Group:          Development/Libraries/Ruby

%description -n ruby-yui
This package provides Ruby language bindings to access functions of
yast2-libyui - the YaST User Interface engine that provides the
abstraction from graphical user interfaces (Qt, Gtk) and text based
user interfaces (ncurses).



Authors:
--------
    kkaempf@suse.de
    dmacvicar@suse.de

%package -n python-yui
License:        GPL v2 or later
%py_requires
Summary:        Python bindings for yast2-libyui
Group:          Development/Libraries/Python

%description -n python-yui
This package provides Python language bindings to access functions of
yast2-libyui - the YaST User Interface engine that provides the
abstraction from graphical user interfaces (Qt, Gtk) and text based
user interfaces (ncurses).



Authors:
--------
    kkaempf@suse.de
    dmacvicar@suse.de

%package -n perl-yui
License:        GPL v2 or later
Requires:       perl = %{perl_version}
Summary:        Perl bindings for yast2-libyui
Group:          Development/Libraries/Perl

%description -n perl-yui
This package provides Perl language bindings to access functions of
yast2-libyui - the YaST User Interface engine that provides the
abstraction from graphical user interfaces (Qt, Gtk) and text based
user interfaces (ncurses).



Authors:
--------
    kkaempf@suse.de
    dmacvicar@suse.de

%files -n ruby-yui
%defattr(-,root,root,-)
%doc swig/ruby/examples/*.rb
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/yui.so

%files -n python-yui
%defattr(-,root,root,-)
%doc swig/python/examples/*.py
%{py_sitedir}/_yui.so
%{py_sitedir}/yui.py

%files -n perl-yui
%defattr(-,root,root,-)
%doc swig/perl/examples/*.pl
%{perl_vendorarch}/yui.so
%{perl_vendorlib}/yui.pm

%changelog
* Thu Aug 07 2008 kkaempf@suse.de
- use rpm macros for Perl and Python directories. Fixes building
  against Python 2.6.
* Fri May 23 2008 kkaempf@suse.de
- fix widget (pointer) comparison for Perl and Python.
* Tue May 20 2008 kkaempf@suse.de
- Fix requires for perl-yui (bnc#392558)
* Tue May 20 2008 kkaempf@suse.de
- follow naming conventions (bnc#392524). Its now ruby-yui,
  python-yui and perl-yui.
* Mon May 19 2008 kkaempf@suse.de
- Add examples for Perl and Python
* Fri May 16 2008 kkaempf@suse.de
- Also generate Python (libyui-python) and Perl (perl-libyui)
  bindings.
* Tue May 13 2008 kkaempf@suse.de
- Add copyright (gpl 2.0) (bnc#379919)
- Add Ruby examples.
* Mon Apr 14 2008 kkaempf@suse.de
- Extended, now sufficient for selection_box1.
* Fri Apr 11 2008 kkaempf@suse.de
- Initial version, just enough for 'Hello, world!'
openSUSE Build Service is sponsored by