/
yast2.spec
210 lines (186 loc) · 6.18 KB
/
yast2.spec
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
#
# spec file for package yast2
#
# Copyright (c) 2018 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
Version: 4.0.93
Release: 0
Summary: YaST2 - Main Package
License: GPL-2.0-only
Group: System/YaST
Url: https://github.com/yast/yast-yast2
Source0: %{name}-%{version}.tar.bz2
Source1: yast2-rpmlintrc
# for symlinking yardoc duplicates
BuildRequires: fdupes
# Needed for tests
BuildRequires: grep
BuildRequires: perl-XML-Writer
# for defining abstract methods in libraries
BuildRequires: rubygem(%{rb_default_ruby_abi}:abstract_method)
# for file access using augeas
BuildRequires: rubygem(%{rb_default_ruby_abi}:cfa)
# for running scripts
BuildRequires: update-desktop-files
BuildRequires: rubygem(%{rb_default_ruby_abi}:cheetah)
# For running RSpec tests during build
BuildRequires: rubygem(%{rb_default_ruby_abi}:rspec)
# For converting to/from punycode strings
BuildRequires: rubygem(%{rb_default_ruby_abi}:simpleidn)
# Needed already in build time
BuildRequires: yast2-core >= 2.18.12
BuildRequires: yast2-devtools >= 3.1.10
BuildRequires: yast2-pkg-bindings >= 2.20.3
# To have Yast::WFM.scr_root
BuildRequires: yast2-ruby-bindings >= 3.2.8
BuildRequires: yast2-testsuite
# UI::.SetApplicationTitle
BuildRequires: yast2-ycp-ui-bindings >= 3.2.0
# for the PackageExtractor tests, just make sure they are present,
# these should be installed in the default build anyway
BuildRequires: cpio
BuildRequires: rpm
# for ag_tty (/bin/stty)
# for /usr/bin/md5sum
Requires: coreutils
# for GPG.ycp
Requires: gpg2
# For Cron Agent, Module
Requires: perl-Config-Crontab
# for ag_anyxml
Requires: perl-XML-Simple
# for defining abstract methods in libraries
Requires: rubygem(%{rb_default_ruby_abi}:abstract_method)
# for file access using augeas
Requires: rubygem(%{rb_default_ruby_abi}:cfa)
# For converting to/from punycode strings
Requires: rubygem(%{rb_default_ruby_abi}:simpleidn)
Requires: sysconfig >= 0.80.0
# for running scripts
Requires: rubygem(%{rb_default_ruby_abi}:cheetah)
# ag_ini section_private
# ag_ini with (un)quoting support
Requires: yast2-core >= 2.23.0
Requires: yast2-hardware-detection
# for SLPAPI.pm
Requires: yast2-perl-bindings
# changed StartPackage callback signature
Requires: yast2-pkg-bindings >= 2.20.3
# for y2start
Requires: yast2-ruby-bindings >= 3.2.10
Requires: yast2-xml
# new UI::SetApplicationTitle
Requires: yast2-ycp-ui-bindings >= 3.2.0
Requires: yui_backend
# pre-requires for filling the sysconfig template (sysconfig.yast2)
PreReq: %fillup_prereq
# xdg-su in .desktops
Recommends: xdg-utils
# SrvStatusComponent moved to yast2.rpm
Conflicts: yast2-dns-server < 3.1.17
# InstError
Conflicts: yast2-installation < 2.18.5
# moved cfg_mail.scr
Conflicts: yast2-mail < 3.1.7
# Older packager use removed API
Conflicts: yast2-packager < 4.0.33
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Obsoletes: yast2-devel-doc
# for the PackageExtractor class, just make sure they are present,
# these should be present even in a very minimal installation
Requires: cpio
Requires: rpm
%description
This package contains scripts and data needed for SUSE Linux
installation with YaST2
%prep
%setup -q
%build
%yast_build
# removed explicit adding of translations to group desktop files, since it is covered by the general call (they are in a subdirectory) and it caused build fail
%install
%yast_install
mkdir -p %{buildroot}%{yast_clientdir}
mkdir -p %{buildroot}%{yast_desktopdir}
mkdir -p %{buildroot}%{yast_imagedir}
mkdir -p %{buildroot}%{yast_localedir}
mkdir -p %{buildroot}%{yast_moduledir}
mkdir -p %{buildroot}%{yast_scrconfdir}
mkdir -p %{buildroot}%{yast_ybindir}
mkdir -p %{buildroot}%{yast_ydatadir}
mkdir -p %{buildroot}%{yast_yncludedir}
mkdir -p %{buildroot}%{yast_libdir}
mkdir -p %{buildroot}%{yast_vardir}
mkdir -p %{buildroot}%{yast_vardir}/hooks
mkdir -p %{buildroot}%{yast_schemadir}/control/rnc
mkdir -p %{buildroot}%{yast_schemadir}/autoyast/rnc
mkdir -p %{buildroot}%{_sysconfdir}/YaST2
# symlink the yardoc duplicates, saves over 2MB in installed system
# (the RPM package size is decreased just by few kilobytes
# because of the compression)
%fdupes -s %{buildroot}/%{_docdir}/yast2
%post
%{fillup_only -n yast2}
%files
%defattr(-,root,root)
# basic directory structure
%dir %{yast_clientdir}
%dir %{yast_desktopdir}
%{yast_desktopdir}/groups
%dir %{yast_imagedir}
%dir %{yast_localedir}
%dir %{yast_moduledir}
%dir %{yast_scrconfdir}
%dir %{yast_ybindir}
%dir %{yast_ydatadir}
%dir %{yast_yncludedir}
%dir %{yast_vardir}
%dir %{yast_libdir}
%dir %{yast_schemadir}
%dir %{yast_schemadir}/control
%dir %{yast_schemadir}/control/rnc
%dir %{yast_schemadir}/autoyast
%dir %{yast_schemadir}/autoyast/rnc
%dir %{_sysconfdir}/YaST2
%dir %{yast_vardir}/hooks
# yast2
%{yast_ydatadir}/*.ycp
%{yast_clientdir}/*
%{yast_moduledir}/*
%{yast_libdir}/*
%{yast_scrconfdir}/*
%{yast_ybindir}/*
%{yast_agentdir}/ag_*
%{_fillupdir}/sysconfig.yast2
# configuration files
%config %{_sysconfdir}/bash_completion.d/yast2*.sh
%config %{_sysconfdir}/YaST2/XVersion
# documentation (not included in devel subpackage)
%doc %dir %{yast_docdir}
%doc %{yast_docdir}/COPYING
%{_mandir}/*/*
%doc %{yast_vardir}/hooks/README.md
/sbin/*
%{_sbindir}/*
# wizard
%dir %{yast_yncludedir}/wizard
%{yast_yncludedir}/wizard/*.rb
#packags
%dir %{yast_yncludedir}/packages
%{yast_yncludedir}/packages/*.rb
#system
%dir %{yast_yncludedir}/hwinfo
%{yast_yncludedir}/hwinfo/*.rb
%{yast_desktopdir}/messages.desktop
%changelog