avatar
Rosa has added a05aa165d3
Automatic import for version 1.0-1
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "neru-icon-mate-classic-theme-1.0.tar.gz": cb2db13104636c1fa5be253eccb57485ffd778eb
view file @ a05aa165d3
... ... --- /dev/null
... ... +++ b/mate-rospo-icon-theme.spec
... ... @@ -0,0 +1,97 @@
1
%define oname	neru-icon-mate-classic-theme
2
3
Summary:	Mate icons themes
4
Name:		mate-rospo-icon-theme
5
Version:	1.0
6
Release:	1
7
License:	LGPLv3
8
Group:		Graphical desktop/Other
9
Url:		https://github.com/chistota/neru-icon-mate-classic-theme/
10
Source0:	https://github.com/chistota/%{oname}/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
11
BuildRequires:	fdupes
12
BuildRequires:	svgcleaner
13
14
BuildArch:	noarch
15
16
%description
17
%{summary}
18
19
%files
20
%{_iconsdir}/neru-mate-blue-light/
21
%{_iconsdir}/neru-mate-green-light/
22
%{_iconsdir}/neru-mate-blue-dark/
23
%{_iconsdir}/neru-mate-green-dark/
24
25
#----------------------------------------------------------------------------
26
27
%prep
28
%setup -qn %{oname}-%{version}
29
30
%build
31
32
%install
33
#Remove duble
34
rm -rf neru-mate-blue-light/neru-mate-blue-dark
35
36
#Delete broken symlinks
37
rm -f neru-mate-blue-light/medium/apps/com.librehat.yahooweather.svg
38
rm -f neru-mate-blue-light/medium/apps/org.gnome.Weather.Application.svg
39
rm -f neru-mate-green-light/medium/apps/org.gnome.weather.svg
40
rm -f neru-mate-green-light/medium/apps/gis-weather.svg
41
rm -f neru-mate-blue-light/medium/apps/xfce4-weather.svg
42
rm -f neru-mate-blue-light/medium/apps/org.gnome.Weather.svg
43
rm -f neru-mate-blue-light/medium/apps/org.gnome.weather.svg
44
rm -f neru-mate-green-light/medium/apps/indicator-weather.svg
45
rm -f neru-mate-blue-light/medium/apps/gis-weather.svg
46
rm -f neru-mate-blue-dark/medium/apps/xfce4-weather.svg
47
rm -f neru-mate-green-dark/medium/apps/indicator-weather.svg
48
rm -f neru-mate-green-light/medium/apps/xfce4-weather.svg
49
rm -f neru-mate-blue-dark/medium/apps/indicator-weather.svg
50
rm -f neru-mate-green-light/medium/apps/com.librehat.yahooweather.svg
51
rm -f neru-mate-green-light/medium/apps/gnome-weather.svg
52
rm -f neru-mate-blue-light/medium/apps/gnome-weather.svg
53
rm -f neru-mate-blue-light/medium/apps/indicator-weather.svg
54
rm -f neru-mate-green-light/medium/apps/org.gnome.Weather.svg
55
rm -f neru-mate-green-light/medium/apps/org.gnome.Weather.Application.svg
56
rm -f neru-mate-green-light/medium/apps/org.gnome.weather.application.svg
57
rm -f neru-mate-blue-light/medium/apps/org.gnome.weather.application.svg
58
rm -f neru-mate-blue-light/medium/apps/cumulus.svg
59
rm -f neru-mate-green-dark/medium/apps/xfce4-weather.svg
60
rm -f neru-mate-green-light/medium/apps/cumulus.svg
61
62
#Move clementine
63
for i in neru-mate-{blue,green}-{dark,light}; do
64
cp -rf $i/*/*/clementine $i/small/
65
done
66
rm -rf neru-mate-{blue,green}-{dark,light}/*/extra
67
sed -i 's|extra/||g' */index.theme
68
69
#Replace all symlinks to files
70
mkdir delsym
71
cp -rfL neru-mate-{blue,green}-{dark,light} delsym/
72
rm -rf neru-mate-{blue,green}-{dark,light}
73
mv -f delsym/neru-mate-{blue,green}-{dark,light} ./
74
rmdir delsym
75
76
install -d %{buildroot}%{_iconsdir}/
77
cp -R * %{buildroot}%{_iconsdir}/
78
79
#Replace copies to symlinks
80
#Indexes are identical for neru-mate-green and neru-mate-blue
81
fdupes -r * > dupes.txt
82
sed -i '/index.theme/d' dupes.txt
83
RESURS=""; KEY=""
84
while read LINE; do
85
if [ "$KEY" = "" ]; then RESURS="$LINE"; else if [ "$LINE" != "" ]; then ln -sf ../../../$RESURS %{buildroot}%{_iconsdir}/$LINE; fi; fi
86
KEY="$LINE"
87
done < dupes.txt
88
89
find %{buildroot} -type l | grep -v svg && Need to fix dirs
90
find %{buildroot} -type f -exec chmod 0644 {} \;
91
find %{buildroot} -type d -exec chmod 0755 {} \;
92
93
#Clean svg
94
find %{buildroot} -type f |grep .svg |grep -v .svgz > filelist.txt
95
for i in $(cat filelist.txt); do svgcleaner --multipass --quiet $i $i; done
96
rm -f filelist.txt
97

Comments