-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Rakefile to use libyui-rake tasks
- Loading branch information
Showing
2 changed files
with
153 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
# make continuous integration using rubygem-packaging_rake_tasks and | ||
# rubygem-libyui-rake. | ||
# Copyright © 2014 SUSE LLC | ||
# MIT license | ||
|
||
require "libyui/rake" | ||
|
||
Libyui::Tasks.configuration do |conf| | ||
# lets ignore license check for now | ||
conf.skip_license_check << /.*/ | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
# | ||
# spec file for package libyui-bindings | ||
# | ||
# Copyright (c) 2015 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/ | ||
# | ||
# nodebuginfo | ||
|
||
|
||
Name: libyui-bindings | ||
Version: 1.1.1 | ||
Release: 0 | ||
Summary: Bindings for libyui | ||
License: LGPL-2.1 or LGPL-3.0 | ||
Group: Development/Sources | ||
Url: https://github.com/libyui/libyui-bindings | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-build | ||
BuildRequires: cmake | ||
BuildRequires: gcc-c++ | ||
BuildRequires: libyui-devel >= 2.21.5 | ||
BuildRequires: perl | ||
BuildRequires: python-devel | ||
BuildRequires: ruby-devel | ||
BuildRequires: swig | ||
Source: %{name}-%{version}.tar.bz2 | ||
Prefix: /usr | ||
|
||
%description | ||
This package provides Ruby language bindings to access functions of | ||
libyui - An 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 -DYPREFIX=%{prefix} \ | ||
-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 \ | ||
-DBUILD_RUBY_GEM=no \ | ||
.. | ||
make %{?jobs:-j %jobs} | ||
|
||
%install | ||
cd build | ||
make install DESTDIR=$RPM_BUILD_ROOT | ||
|
||
%clean | ||
%{__rm} -rf %{buildroot} | ||
|
||
%package -n ruby-yui | ||
Summary: Ruby bindings for libyui | ||
Group: Development/Languages/Ruby | ||
|
||
%description -n ruby-yui | ||
This package provides Ruby language bindings to access functions of | ||
libyui - An 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 | ||
%py_requires | ||
Summary: Python bindings for libyui | ||
Group: Development/Languages/Python | ||
|
||
%description -n python-yui | ||
This package provides Python language bindings to access functions of | ||
yast2-libyui - An 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 | ||
%{perl_requires} | ||
Summary: Perl bindings for libyui | ||
Group: Development/Languages/Perl | ||
|
||
%description -n perl-yui | ||
This package provides Perl language bindings to access functions of | ||
yast2-libyui - An 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 |