-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathharbour-dyncal.spec
executable file
·101 lines (80 loc) · 2.22 KB
/
harbour-dyncal.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
Name: harbour-dyncal
Version: 0.4.7
Release: 1
Summary: DynCal
Group: System/Tools
Vendor: fravaccaro
Distribution: SailfishOS
Requires: sailfish-version >= 2.0.1
Packager: fravaccaro <[email protected]>
URL: www.jollacommunity.it
License: GPL
%description
Change Calendar icon accordingly with the day.
%files
%defattr(-,root,root,-)
/usr/share/*
%post
chmod +x /usr/share/harbour-dyncal/*.sh
mv /usr/share/harbour-dyncal/harbour-dyncal.service /etc/systemd/system/
mv /usr/share/harbour-dyncal/harbour-dyncal.timer /etc/systemd/system/
cp /usr/share/applications/jolla-calendar.desktop /usr/share/harbour-dyncal/jolla-calendar.desktop.bak
/usr/share/harbour-dyncal/harbour-dyncal.sh
systemctl start harbour-dyncal.timer
systemctl enable harbour-dyncal.timer
systemctl start harbour-dyncal.service
systemctl enable harbour-dyncal.service
%preun
/usr/share/harbour-dyncal/harbour-dyncal-uninstall.sh
%postun
if [ $1 = 0 ]; then
// Do stuff specific to uninstalls
systemctl stop harbour-dyncal.timer
systemctl disable harbour-dyncal.timer
systemctl stop harbour-dyncal.service
systemctl disable harbour-dyncal.service
rm /etc/systemd/system/harbour-dyncal.timer
rm /etc/systemd/system/harbour-dyncal.service
rm -rf /usr/share/harbour-dyncal
else
if [ $1 = 1 ]; then
// Do stuff specific to upgrades
echo "Upgrading"
/usr/share/harbour-dyncal/harbour-dyncal.sh
fi
fi
%changelog
* Sat Oct 6 2018 0.4.6
- Bug fix.
* Mon Jul 3 2017 0.4.5
- Bug fix.
* Thu Jan 5 2017 0.4.4
- Bug fix.
* Thu Oct 6 2016 0.4.3
- Black icon fixed.
* Sat Sep 24 2016 0.4.2
- Icon jumping to the bottom of the app tray may be fixed.
* Wed Sep 21 2016 0.4.1
- High-res icons.
- Some icons redesigned.
* Tue Jan 19 2016 0.4.0
- Sailfish OS 2.0.7 support.
* Tue Dec 29 2015 0.3.1
- Reduced package size.
* Tue Dec 8 2015 0.3.0
- Extensions support added.
* Thu Oct 8 2015 0.2.5
- Holidays' icons updated.
* Wed Oct 7 2015 0.2.4
- Icon jumping to the bottom of the app tray may be fixed.
* Sat Oct 3 2015 0.2.3
- Bugfix.
* Tue Sep 29 2015 0.2.2
- Bugfix.
* Tue Sep 29 2015 0.2.1
- Bugfix.
* Mon Sep 28 2015 0.2
- Added some holidays' icons.
- Fixed icon not updating.
* Thu Sep 22 2015 0.1
- First build.