yast2-services-manager/yast2-services-manager.spec

70 lines
2.0 KiB
RPMSpec

#
# spec file for package yast2-services-manager
#
# Copyright (c) 2013 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-services-manager
Version: 0.0.8
Release: 0
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-services-manager.tar.bz2
Requires: yast2 >= 2.24.1
Requires: yast2-ruby-bindings >= 1.1.2
BuildRequires: ruby
BuildRequires: rubygem-mocha
BuildRequires: update-desktop-files
BuildRequires: yast2 >= 2.24.1
BuildRequires: yast2-ruby-bindings >= 1.1.2
Summary: YaST2 - Services Manager
License: GPL-2.0
Group: System/YaST
Url: https://github.com/kobliha/yast-services-manager
%description
Provides user interface and libraries to configure running services and the default target.
%prep
%setup -n yast2-services-manager
%build
# Temporary fix: Disabling tests that do not work in openSUSE higher than 12.3
echo 0%{?suse_version}
%if 0%{?suse_version} > 0 && 0%{?suse_version} <= 1230
rake test DESTDIR="$RPM_BUILD_ROOT"
%endif
%install
rake install DESTDIR="$RPM_BUILD_ROOT"
%suse_update_desktop_file services-manager
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%{_prefix}/share/YaST2/clients/*.rb
%{_prefix}/share/YaST2/modules/*.rb
%{_prefix}/share/applications/YaST2/services-manager.desktop
%{_prefix}/share/YaST2/schema/autoyast/rnc/*.rnc
%changelog