2013-05-03 19:01:31 +02:00
|
|
|
#
|
|
|
|
# spec file for package yast2-network
|
|
|
|
#
|
2014-01-08 10:40:47 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-05-03 19:01:31 +02:00
|
|
|
#
|
|
|
|
# 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
|
2014-09-08 11:14:25 +02:00
|
|
|
Version: 3.1.95
|
2013-05-03 19:01:31 +02:00
|
|
|
Release: 0
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-10-16 10:39:27 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2013-05-03 19:01:31 +02:00
|
|
|
|
|
|
|
# should be required by devtools
|
|
|
|
BuildRequires: perl-XML-Writer
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: rpm
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: yast2-country
|
2013-12-19 10:54:15 +01:00
|
|
|
BuildRequires: yast2-devtools >= 3.1.15
|
2014-09-02 11:14:27 +02:00
|
|
|
BuildRequires: yast2-proxy
|
2013-05-03 19:01:31 +02:00
|
|
|
BuildRequires: yast2-testsuite
|
|
|
|
|
2014-07-22 15:29:23 +02:00
|
|
|
# yast2 v3.1.86: Added ServicesProposal library
|
|
|
|
BuildRequires: yast2 >= 3.1.86
|
2014-08-13 09:14:39 +02:00
|
|
|
# yast2 v3.1.97: Fixed checking whether SuSEfirewall2 package is installed/selected
|
|
|
|
Requires: yast2 >= 3.1.97
|
2013-05-03 19:01:31 +02:00
|
|
|
|
|
|
|
#netconfig (FaTE #303618)
|
|
|
|
Requires: sysconfig >= 0.80.0
|
|
|
|
#GetLanguageCountry
|
|
|
|
#(in newly created yast2-country-data)
|
|
|
|
Requires: yast2-country-data >= 2.16.3
|
|
|
|
# Storage::IsDeviceOnNetwork
|
|
|
|
BuildRequires: yast2-storage >= 2.21.11
|
|
|
|
Requires: yast2-storage >= 2.21.11
|
|
|
|
|
2013-10-16 10:39:27 +02:00
|
|
|
# testsuite
|
2014-09-08 11:14:25 +02:00
|
|
|
BuildRequires: rubygem(rspec)
|
2013-10-16 10:39:27 +02:00
|
|
|
|
2013-05-03 19:01:31 +02:00
|
|
|
PreReq: /bin/rm
|
|
|
|
|
|
|
|
# carrier detection
|
|
|
|
Conflicts: yast2-core < 2.10.6
|
|
|
|
|
2013-07-31 11:51:45 +02:00
|
|
|
Requires: yast2-ruby-bindings >= 1.0.0
|
|
|
|
|
2013-05-03 19:01:31 +02:00
|
|
|
Summary: YaST2 - Network Configuration
|
|
|
|
License: GPL-2.0
|
|
|
|
Group: System/YaST
|
|
|
|
|
|
|
|
%package devel-doc
|
|
|
|
Summary: YaST2 - Developer documentation for yast2-network
|
|
|
|
Group: System/YaST
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the YaST2 component for network configuration.
|
|
|
|
|
|
|
|
%description devel-doc
|
|
|
|
This package contains autogenerated documentation for yast2-network
|
|
|
|
|
|
|
|
%prep
|
2013-10-16 10:39:27 +02:00
|
|
|
%setup -n %{name}-%{version}
|
2013-05-03 19:01:31 +02:00
|
|
|
|
|
|
|
%build
|
2013-10-16 10:39:27 +02:00
|
|
|
%yast_build
|
2013-05-03 19:01:31 +02:00
|
|
|
|
|
|
|
%install
|
2013-10-16 10:39:27 +02:00
|
|
|
%yast_install
|
2013-05-03 19:01:31 +02:00
|
|
|
|
|
|
|
%ifarch s390 s390x
|
2013-10-16 10:39:27 +02:00
|
|
|
/bin/rm -f $RPM_BUILD_ROOT/%{yast_desktopdir}/dsl.desktop
|
|
|
|
/bin/rm -f $RPM_BUILD_ROOT/%{yast_desktopdir}/isdn.desktop
|
|
|
|
/bin/rm -f $RPM_BUILD_ROOT/%{yast_desktopdir}/modem.desktop
|
2013-05-03 19:01:31 +02:00
|
|
|
%endif
|
2013-10-16 10:39:27 +02:00
|
|
|
/bin/rm -f $RPM_BUILD_ROOT/%{yast_desktopdir}/network.desktop
|
|
|
|
/bin/rm -f $RPM_BUILD_ROOT/%{yast_desktopdir}/provider.desktop
|
2013-05-03 19:01:31 +02:00
|
|
|
|
|
|
|
%post -p /bin/bash
|
|
|
|
# This fixes the files that were touched when #24842 was in effect.
|
|
|
|
# #42990: shut up when no wlan files are there.
|
|
|
|
shopt -s nullglob
|
|
|
|
files=`echo /etc/sysconfig/network/ifcfg-wlan*`
|
|
|
|
if [ -n "$files" ]; then
|
|
|
|
/bin/chown root:root $files
|
|
|
|
/bin/chmod 0600 $files
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-10-16 10:39:27 +02:00
|
|
|
%{yast_ybindir}/*
|
|
|
|
%{yast_yncludedir}/network
|
|
|
|
%{yast_clientdir}/*.rb
|
|
|
|
%{yast_moduledir}/YaPI/NETWORK.pm
|
|
|
|
%{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
|
2013-12-19 10:54:15 +01:00
|
|
|
%dir %{yast_libdir}/network
|
|
|
|
%{yast_libdir}/network
|
2013-10-16 10:39:27 +02:00
|
|
|
|
|
|
|
%dir %{yast_docdir}
|
|
|
|
%{yast_docdir}/COPYING
|
2013-05-03 19:01:31 +02:00
|
|
|
|
|
|
|
%files devel-doc
|
|
|
|
%defattr(-,root,root)
|
2013-10-16 10:39:27 +02:00
|
|
|
%doc %{yast_docdir}
|
|
|
|
%exclude %{yast_docdir}/COPYING
|
|
|
|
%exclude %{yast_docdir}/README
|
2013-05-03 19:01:31 +02:00
|
|
|
|
|
|
|
%changelog
|