yast2-network/yast2-network.spec

111 lines
3.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package yast2-network
#
# Copyright (c) 2019 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/
#
Name: yast2-network
Version: 4.2.3
Release: 0
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: https://github.com/yast/yast-network
Source0: %{name}-%{version}.tar.bz2
BuildRequires: update-desktop-files
BuildRequires: yast2-devtools >= 3.1.15
Requires: yast2-proxy
#for install task
BuildRequires: rubygem(%rb_default_ruby_abi:yast-rake)
# Y2Firewall interface zone mapping methods
BuildRequires: yast2 >= 4.1.53
Requires: yast2 >= 4.1.53
# Product control need xml agent
BuildRequires: yast2-xml
Requires: yast2-xml
#netconfig (FaTE #303618)
Requires: sysconfig >= 0.80.0
BuildRequires: yast2-storage-ng
Requires: yast2-storage-ng
# Packages::vnc_packages
Requires: yast2-packager >= 4.0.18
BuildRequires: yast2-packager >= 4.0.18
# cfa for parsing hosts
BuildRequires: rubygem(%rb_default_ruby_abi:cfa) >= 0.6.4
Requires: rubygem(%rb_default_ruby_abi:cfa) >= 0.6.4
# lenses are needed to use cfa
BuildRequires: augeas-lenses
Requires: augeas-lenses
# BusID of all the cards with the same one (bsc#1007172)
Requires: hwinfo >= 21.35
# testsuite
BuildRequires: rubygem(%rb_default_ruby_abi:rspec)
PreReq: /bin/rm
# carrier detection
Conflicts: yast2-core < 2.10.6
Requires: yast2-ruby-bindings >= 1.0.0
Obsoletes: yast2-network-devel-doc <= 3.1.154
Provides: yast2-network-devel-doc = %{version}
Summary: YaST2 - Network Configuration
License: GPL-2.0-only
Group: System/YaST
%build
%description
This package contains the YaST2 component for network configuration.
%prep
%setup -n %{name}-%{version}
%check
rake test:unit
%install
rake install DESTDIR="%{buildroot}"
%files
%defattr(-,root,root)
%{yast_yncludedir}/network
%{yast_clientdir}/*.rb
%{yast_moduledir}/*.rb
%{yast_desktopdir}/*.desktop
%{yast_scrconfdir}/*.scr
%{yast_agentdir}/ag_udev_persistent
%{yast_schemadir}/autoyast/rnc/networking.rnc
%{yast_schemadir}/autoyast/rnc/host.rnc
%{yast_libdir}/network
%{yast_libdir}/y2network
%{yast_libdir}/y2remote
%{yast_libdir}/cfa/
%{yast_ydatadir}/network
%{yast_icondir}
%dir %{yast_docdir}
%doc %{yast_docdir}/CONTRIBUTING.md
%license COPYING
%doc %{yast_docdir}/README.md
%changelog