-
Notifications
You must be signed in to change notification settings - Fork 3
/
fedberry-config.spec
172 lines (124 loc) · 4.47 KB
/
fedberry-config.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
%define bname fedberry
%define name %{bname}-config
Name: %{name}
Version: 0.4.7
Release: 1%{?dist}
License: GPLv3+
Summary: Easy configuration of various system options in FedBerry
Group: Applications/System
URL: https://github.com/fedberry/%{name}
Source0: %{url}/raw/master/%{name}
Source1: %{url}/raw/master/LICENSE
Source2: %{url}/raw/master/README.md
Source3: %{url}/raw/master/rootfs-grow.service
Source4: %{url}/raw/master/%{name}.desktop
Source5: %{url}/raw/master/%{name}.svg
Source6: %{url}/raw/master/pi3_disable_pwr_led.service
BuildArch: noarch
Obsoletes: rootfs-resize
Conflicts: rootfs-resize
BuildRequires: discount >= 2.1
BuildRequires: systemd
Requires: newt
Requires: pv
Requires: raspberrypi-vc-utils
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
A utility for making common Raspberry Pi configuration changes via a simple menu-driven interface.
The majority of the configuration changes result in automated modifications to /boot/config.txt
and/or other standard Fedora configuration files. Many options will require a reboot to take effect.
%prep
%setup -c -T
cp -a %{sources} .
%build
for MD_FILE in *.md; do
markdown -o ${MD_FILE%.*}.html ${MD_FILE}
done
%install
rm -rf %{buildroot}
%{__install} -d %{buildroot}/%{_sbindir}
%{__install} -p %{name} %{buildroot}/%{_sbindir}
%{__install} -d %{buildroot}/%{_unitdir}
%{__install} -p *.service %{buildroot}/%{_unitdir}
%{__install} -d %{buildroot}/%{_datadir}/applications
%{__install} -p %{name}.desktop %{buildroot}/%{_datadir}/applications
%{__install} -d %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps
%{__install} -p %{name}.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps
%post
%systemd_post rootfs-grow.service
%systemd_post pi3_disable_pwr_led.service
%preun
%systemd_preun rootfs-grow.service
%systemd_preun pi3_disable_pwr_led.service
%postun
%systemd_postun rootfs-grow.service
%systemd_postun pi3_disable_pwr_led.service
%files
%doc README.md README.html
%license LICENSE
%attr(0755,root,root) %{_sbindir}/%{name}
%attr(0644,root,root) %{_unitdir}/*.service
%attr(0755,root,root) %{_datadir}/applications/%{name}.desktop
%attr(0755,root,root) %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%changelog
* Wed Nov 28 2018 Vaughan <vaughan at agrez dot net> 0.4.7-1
- New release
* Fri Oct 12 2018 Vaughan <vaughan at agrez dot net> 0.4.6-1
- New release
* Fri Apr 20 2018 Vaughan <vaughan at agrez dot net> 0.4.5-1
- New release
* Tue Apr 03 2018 Vaughan <vaughan at agrez dot net> 0.4.4-1
- New release
* Fri Mar 30 2018 Vaughan <vaughan at agrez dot net> 0.4.3-1
- New release
- Remove executing gtk-update-icon-cache in %%post
* Sat Dec 16 2017 Vaughan <vaughan at agrez dot net> 0.4.2-1
- New release
* Fri Dec 01 2017 Vaughan <vaughan at agrez dot net> 0.4.1-1
- New release
* Sun Jul 23 2017 Vaughan <vaughan at agrez dot net> 0.4.0-1
- New release
* Tue May 02 2017 Vaughan <vaughan at agrez dot net> 0.3.11-1
- New release
- Add custom icon
* Sun Apr 30 2017 Vaughan <vaughan at agrez dot net> 0.3.10-2
- Update desktop file
* Fri Apr 28 2017 Vaughan <vaughan at agrez dot net> 0.3.10-1
- New release
- Add desktop file
* Fri Mar 17 2017 Vaughan <vaughan at agrez dot net> 0.3.9-1
- New release
* Wed Feb 15 2017 Vaughan <vaughan at agrez dot net> 0.3.8-1
- New release
* Sat Jan 07 2017 Vaughan <vaughan at agrez dot net> 0.3.7-1
- New release
- Simplify %%prep
* Mon Nov 07 2016 Vaughan <vaughan at agrez dot net> 0.3.6-1
- New release
* Tue Oct 11 2016 Vaughan <vaughan at agrez dot net> 0.3.5-1
- New release
* Sat Oct 01 2016 Vaughan <vaughan at agrez dot net> 0.3.3-2
- Ensure rootfs-grow.service executes before initial-setup.service
* Mon Sep 26 2016 Vaughan <vaughan at agrez dot net> 0.3.3-1
- New release
* Mon Aug 22 2016 Vaughan <vaughan at agrez dot net> 0.3.2-1
- New release
* Mon May 30 2016 Vaughan <vaughan at agrez dot net> 0.3.1-1
- New release
* Wed May 11 2016 Vaughan <vaughan at agrez dot net> 0.3.0-1
- New release
* Thu Apr 28 2016 Vaughan <vaughan at agrez dot net> 0.2.2-2
- Add %%postun macro
- Fix build with mock
* Wed Apr 27 2016 Vaughan <vaughan at agrez dot net> 0.2.2-1
- New release
- Requires 'pv'
* Sat Mar 12 2016 Vaughan <vaughan at agrez dot net> 0.2.1-1
- New release
* Sun Mar 06 2016 mrjoshuap <jpreston at redhat dot com> 0.2-2
- fix URL for package
- autogenerate html documentation from md files
* Sun Mar 06 2016 Vaughan <vaughan at agrez dot net> 0.2-1
- Initial package