7432978d10
- 0.0.23 OBS-URL: https://build.opensuse.org/package/show/YaST:Head/yast2-services-manager?expand=0&rev=34
92 lines
2.5 KiB
RPMSpec
92 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package yast2-services-manager
|
|
#
|
|
# Copyright (c) 2014 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/
|
|
#
|
|
|
|
|
|
######################################################################
|
|
#
|
|
# IMPORTANT: Please do not change spec file in build service directly
|
|
# Use https://github.com/yast/yast-services-manager repo
|
|
#
|
|
######################################################################
|
|
|
|
Name: yast2-services-manager
|
|
Version: 0.0.23
|
|
Release: 0
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
Requires: ruby
|
|
Requires: yast2 >= 3.0.5
|
|
Requires: yast2-ruby-bindings >= 1.2.0
|
|
|
|
Obsoletes: yast2-runlevel
|
|
|
|
BuildRequires: ruby
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: yast2 >= 3.0.5
|
|
BuildRequires: yast2-ruby-bindings >= 1.2.0
|
|
# need install task
|
|
BuildRequires: rubygem-yast-rake >= 0.1.6
|
|
# Backward compatibility fix for opensuse-13.1
|
|
%if 0%{?suse_version} > 1310
|
|
BuildRequires: rubygem-rspec
|
|
%endif
|
|
|
|
Summary: YaST2 - Services Manager
|
|
License: GPL-2.0+
|
|
Group: System/YaST
|
|
Url: https://github.com/yast/yast-services-manager
|
|
|
|
%description
|
|
Provides user interface and libraries to configure systemd
|
|
services and targets.
|
|
|
|
%prep
|
|
%setup -n %{name}-%{version}
|
|
|
|
%build
|
|
|
|
%check
|
|
# opensuse-13.1 does not contain rspec in default repositories
|
|
%if 0%{?suse_version} > 1310
|
|
rspec test/*_test.rb
|
|
%endif
|
|
|
|
%install
|
|
rake install DESTDIR="%{buildroot}"
|
|
%suse_update_desktop_file services-manager
|
|
|
|
%define yast_dir %{_prefix}/share/YaST2
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{yast_dir}/clients/*.rb
|
|
%{yast_dir}/modules/*.rb
|
|
%{yast_dir}/schema/autoyast/rnc/*.rnc
|
|
%{yast_dir}/lib/services-manager/*.rb
|
|
%dir %{yast_dir}/lib/
|
|
%{yast_dir}/lib/services-manager/
|
|
%{_prefix}/share/applications/YaST2/services-manager.desktop
|
|
|
|
%dir %_docdir/
|
|
%_docdir/%name/
|
|
%_docdir/%name/COPYING
|
|
|
|
%changelog
|