1 |
%define name madsonic |
%define name madsonic |
2 |
%define version 6.2.9084 |
%define version 6.2.9092 |
3 |
%define release 1 |
%define release 1 |
4 |
%define __os_install_post \ |
%define __os_install_post \ |
5 |
/usr/lib/rpm/brp-compress \ |
/usr/lib/rpm/brp-compress \ |
21 |
URL: http://madsonic.org |
URL: http://madsonic.org |
22 |
|
|
23 |
%changelog |
%changelog |
24 |
|
* Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 6.2.9092-1.sme |
25 |
|
- update with log4j fixes and more |
26 |
|
|
27 |
|
* Fri Jun 04 2021 Jean-Philippe Pialasse <tests@pialasse.com> 6.2.9084-2.sme |
28 |
|
- fix permissions [SME: 10699] |
29 |
|
- fix noise on start with initial install [SME: 8016] |
30 |
|
|
31 |
* Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 6.2.9084-1.sme |
* Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 6.2.9084-1.sme |
32 |
- update to 6.2.9084 |
- update to 6.2.9084 |
33 |
- first build for SME10 |
- first build for SME10 |
56 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
57 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
58 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
59 |
|
--dir /usr/share/madsonic 'attr(0750,madsonic,madsonic)' \ |
60 |
|
--dir /var/madsonic 'attr(0750,madsonic,madsonic)' \ |
61 |
| grep -v "/etc/sysconfig/madsonic" \ |
| grep -v "/etc/sysconfig/madsonic" \ |
62 |
| grep -v "/etc/init.d$" \ |
| grep -v "/etc/init.d$" \ |
63 |
| grep -v "/etc/sysconfig$"\ |
| grep -v "/etc/sysconfig$"\ |
71 |
%config(noreplace) /etc/sysconfig/madsonic |
%config(noreplace) /etc/sysconfig/madsonic |
72 |
|
|
73 |
%pre |
%pre |
74 |
|
grep '^madsonic:' /etc/passwd > /dev/null || \ |
75 |
|
/usr/sbin/useradd -c "madsonic" -M -d /usr/share/madsonic -s /bin/bash madsonic |
76 |
|
/usr/sbin/usermod -aG audio madsonic |
77 |
|
|
78 |
# Stop Madsonic service. |
# Stop Madsonic service. |
79 |
if [ -e /etc/init.d/madsonic ]; then |
if [ -e /etc/init.d/madsonic ]; then |
80 |
service madsonic stop |
service madsonic stop |
99 |
chcon -t java_exec_t /etc/init.d/madsonic 2>/dev/null |
chcon -t java_exec_t /etc/init.d/madsonic 2>/dev/null |
100 |
|
|
101 |
# Configure and start Madsonic service. |
# Configure and start Madsonic service. |
102 |
chkconfig --add madsonic |
#chkconfig --add madsonic |
103 |
service madsonic start |
#service madsonic start |
104 |
|
|
105 |
exit 0 |
exit 0 |
106 |
%preun |
%preun |