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