-
Notifications
You must be signed in to change notification settings - Fork 0
/
tigeros-logos.spec
146 lines (120 loc) · 4.94 KB
/
tigeros-logos.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
Name: tigeros-logos
Version: 1.0
Release: 5%{?dist}
Summary: TigerOS icons and images
URL: https://github.com/RITlug/tigeros-logos
Source0: %{name}-%{version}-%{release}.tar.gz
#The KDE Logo is under a LGPL license (no version statement)
License: GPLv2, LGPLv2+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Obsoletes: redhat-logos
Obsoletes: generic-logos < 17.0.0-5
Provides: redhat-logos = %{version}-%{release}
Provides: system-logos = %{version}-%{release}
Obsoletes: fedora-logos
Provides: fedora-logos
Conflicts: anaconda-images <= 10
Conflicts: redhat-artwork <= 5.0.5
BuildRequires: hardlink
# For _kde4_* macros:
BuildRequires: kde-filesystem
# For generating the EFI icon
BuildRequires: libicns-utils
Requires(post): coreutils
%description
The TigerOS-logos package contains various image files which can be
used by the bootloader, anaconda, and other related tools.
It replaces generic-logos for the TigerOS Fedora Remix.
%prep
%setup -q
%build
make
%install
%{__mkdir_p} %{buildroot}%{_datadir}/firstboot/themes/generic
for i in firstboot/* ; do
install -p -m 644 $i %{buildroot}%{_datadir}/firstboot/themes/generic
done
%{__mkdir_p} %{buildroot}%{_datadir}/pixmaps/bootloader
install -p -m 644 bootloader/fedora.icns %{buildroot}%{_datadir}/pixmaps/bootloader
install -p -m 644 bootloader/fedora.vol %{buildroot}%{_datadir}/pixmaps/bootloader
install -p -m 644 bootloader/fedora-media.vol %{buildroot}%{_datadir}/pixmaps/bootloader
%{__mkdir_p} %{buildroot}%{_datadir}/pixmaps/splash
for i in gnome-splash/* ; do
install -p -m 644 $i %{buildroot}%{_datadir}/pixmaps/splash
done
%{__mkdir_p} %{buildroot}%{_datadir}/pixmaps
for i in pixmaps/* ; do
install -p -m 644 $i %{buildroot}%{_datadir}/pixmaps
done
%{__mkdir_p} %{buildroot}%{_kde4_iconsdir}/oxygen/48x48/apps/
install -p -m 644 icons/Fedora/48x48/apps/* %{buildroot}%{_kde4_iconsdir}/oxygen/48x48/apps/
%{__mkdir_p} %{buildroot}%{_kde4_appsdir}/ksplash/Themes/Leonidas/2048x1536
install -p -m 644 ksplash/SolarComet-kde.png %{buildroot}%{_kde4_appsdir}/ksplash/Themes/Leonidas/2048x1536/logo.png
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge/
for i in plymouth/charge/* ; do
install -p -m 644 $i $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge/
done
# File or directory names do not count as trademark infringement
%{__mkdir_p} %{buildroot}%{_datadir}/icons/Fedora/48x48/apps/
%{__mkdir_p} %{buildroot}%{_datadir}/icons/Fedora/scalable/apps/
install -p -m 644 icons/Fedora/48x48/apps/* %{buildroot}%{_datadir}/icons/Fedora/48x48/apps/
install -p -m 644 icons/Fedora/scalable/apps/* %{buildroot}%{_datadir}/icons/Fedora/scalable/apps/
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/scalable/places/
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
install -p -m 644 pixmaps/fedora-logo-sprite.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/places/start-here.svg
install -p -m 644 icons/Fedora/scalable/apps/anaconda.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/anaconda.svg
(cd anaconda; make DESTDIR=%{buildroot} install)
# save some dup'd icons
/usr/sbin/hardlink -v %{buildroot}/
%post
touch --no-create %{_datadir}/icons/Fedora || :
touch --no-create %{_kde4_iconsdir}/oxygen ||:
%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/Fedora || :
touch --no-create %{_kde4_iconsdir}/oxygen ||:
if [ -x /usr/bin/gtk-update-icon-cache ]; then
if [ -f %{_datadir}/icons/Fedora/index.theme ]; then
gtk-update-icon-cache --quiet %{_datadir}/icons/Fedora || :
fi
if [ -f %{_kde4_iconsdir}/Fedora-KDE/index.theme ]; then
gtk-update-icon-cache --quiet %{_kde4_iconsdir}/Fedora-KDE/index.theme || :
fi
fi
fi
%posttrans
if [ -x /usr/bin/gtk-update-icon-cache ]; then
if [ -f %{_datadir}/icons/Fedora/index.theme ]; then
gtk-update-icon-cache --quiet %{_datadir}/icons/Fedora || :
fi
if [ -f %{_kde4_iconsdir}/oxygen/index.theme ]; then
gtk-update-icon-cache --quiet %{_kde4_iconsdir}/oxygen/index.theme || :
fi
fi
%files
%defattr(-,root,root,-)
%doc COPYING COPYING-kde-logo README
%{_datadir}/firstboot/themes/*
%{_datadir}/anaconda/boot/*
%{_datadir}/anaconda/pixmaps/*
%{_datadir}/icons/Fedora/*/apps/*
%{_datadir}/pixmaps/*
%exclude %{_datadir}/pixmaps/poweredby.png
%{_datadir}/plymouth/themes/charge/*
%{_kde4_appsdir}/ksplash/Themes/Leonidas/2048x1536/logo.png
%{_kde4_iconsdir}/oxygen/
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/icons/hicolor/*/places/*
%changelog
* Wed Oct 17 2018 Tim Zabel <[email protected]> - 1.0-5
- Fedora 29 Build
* Tue May 15 2018 Tim Zabel <[email protected]> - 1.0-4
- Fedora 28 build
- Spec file overhaul
* Sun May 14 2017 Aidan Kahrs <[email protected]> - 1.0.0-3
- add hicolor icons for anaconda
* Sat May 13 2017 Aidan Kahrs <[email protected]> - 1.0.0-2
- Fix obsoletes and provides
* Fri Apr 21 2017 Aidan Kahrs <[email protected]> - 1.0.0-1
- Initial version