forked from yast/yast-network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyast2-network.spec.in
95 lines (77 loc) · 2.27 KB
/
yast2-network.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
@HEADER-COMMENT@
@HEADER@
Group: System/YaST
License: GPL-2.0+
# should be required by devtools
BuildRequires: perl-XML-Writer pkgconfig rpm
BuildRequires: update-desktop-files
BuildRequires: yast2-devtools yast2-testsuite
BuildRequires: yast2-country
BuildRequires: yast2-installation >= 2.15.27
# NetworkInterfaces::Write should write ifcfgs only once
# Wizard::SetDesktopTitleAndIcon
# yast2 v2.23.0 - support for shel (un)quoting
BuildRequires: yast2 >= 2.21.22
Requires: yast2 >= 2.23.0
#netconfig (FaTE #303618)
Requires: sysconfig >= 0.71.2
#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
PreReq: /bin/rm
# carrier detection
Conflicts: yast2-core < 2.10.6
Summary: YaST2 - Network Configuration
%package devel-doc
Group: System/YaST
Summary: YaST2 - Developer documentation for yast2-network
%description
This package contains the YaST2 component for network configuration.
%description devel-doc
This package contains autogenerated documentation for yast2-network
@PREP@
@BUILD@
@INSTALL@
%ifarch s390 s390x
/bin/rm -f $RPM_BUILD_ROOT/@desktopdir@/dsl.desktop
/bin/rm -f $RPM_BUILD_ROOT/@desktopdir@/isdn.desktop
/bin/rm -f $RPM_BUILD_ROOT/@desktopdir@/modem.desktop
%endif
/bin/rm -f $RPM_BUILD_ROOT/@desktopdir@/network.desktop
/bin/rm -f $RPM_BUILD_ROOT/@desktopdir@/provider.desktop
@CLEAN@
%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)
@ybindir@/*
@ydatadir@/*
@yncludedir@/network
@clientdir@/*.ycp
@moduledir@/YaPI/NETWORK.pm
@moduledir@/*.ycp
@moduledir@/*.ybc
@desktopdir@/*.desktop
@scrconfdir@/*.scr
@agentdir@/ag_udev_persistent
@schemadir@/autoyast/rnc/networking.rnc
@schemadir@/autoyast/rnc/host.rnc
%dir @docdir@
@docdir@/COPYING
%readme @docdir@/README
%files devel-doc
%defattr(-,root,root)
%doc @docdir@
%exclude @docdir@/COPYING
%exclude @docdir@/README
%changelog