forked from uyuni-project/uyuni
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsusemanager-branding-oss.spec
74 lines (65 loc) · 2.51 KB
/
susemanager-branding-oss.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
#
# spec file for package susemanager-branding-oss
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%global susemanager_shared_path %{_datadir}/susemanager
%global wwwroot %{susemanager_shared_path}/www
%global wwwdocroot %{wwwroot}/htdocs
Name: susemanager-branding-oss
Version: 5.1.1
Release: 0
Summary: SUSE Manager branding oss specific files
License: GPL-2.0-only
# FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Applications/System
URL: https://github.com/uyuni-project/uyuni
Source0: %{name}-%{version}.tar.gz
BuildRequires: skelcd-EULA-suse-manager-server-container
Requires: skelcd-EULA-suse-manager-server-container
Conflicts: oracle-server
Conflicts: susemanager-branding
Provides: susemanager-branding = %{version}
BuildArch: noarch
# This package is not needed for Uyuni, so we do not build it if
# the OS is openSUSE or anything else that is not SLE
%if 0%{?is_opensuse} || (!0%{?sle_version} && !0%{?is_opensuse})
ExcludeArch: i586 x86_64 ppc64le s390x aarch64
%endif
%description
A collection of files which are specific for
SUSE Manager oss flavors.
%prep
%setup -q
%build
cp %{_datadir}/licenses/product/SUSE-Manager-Server/license.txt license.txt
echo "<p>" > eula.html
cat license.txt | sed 's/^$/<\/p><p>/' >> eula.html
echo "</p>" >> eula.html
%install
mkdir -p %{buildroot}%{wwwdocroot}/help/
mkdir -p %{buildroot}/%{_defaultdocdir}/susemanager/
# final license
install -m 644 eula.html %{buildroot}%{wwwdocroot}/help/
install -m 644 license.txt %{buildroot}/%{_defaultdocdir}/susemanager/
%files
%defattr(-,root,root,-)
%docdir %{_defaultdocdir}/susemanager
%dir %{_defaultdocdir}/susemanager
%{_defaultdocdir}/susemanager/license.txt
%dir %{susemanager_shared_path}
%dir %{wwwroot}
%dir %{wwwdocroot}
%dir %{wwwdocroot}/help
%{wwwdocroot}/help/eula.html
%changelog