/[smecontribs]/rpms/madsonic/contribs10/madsonic.spec
ViewVC logotype

Diff of /rpms/madsonic/contribs10/madsonic.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by jpp, Thu Jun 3 16:04:36 2021 UTC Revision 1.3 by jpp, Fri Jun 4 06:40:40 2021 UTC
# Line 1  Line 1 
1  %define name madsonic  %define name madsonic
2  %define version 6.2.9084  %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 \
# Line 21  License:        GPLv3 Line 21  License:        GPLv3
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  * Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 6.2.9084-1.sme
30  - update to 6.2.9084  - update to 6.2.9084
31  - first build for SME10  - first build for SME10
# Line 49  rm -rf $RPM_BUILD_ROOT Line 54  rm -rf $RPM_BUILD_ROOT
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$"\
# Line 62  rm -rf $RPM_BUILD_ROOT Line 69  rm -rf $RPM_BUILD_ROOT
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
# Line 86  rm -rf /var/madsonic/jetty Line 97  rm -rf /var/madsonic/jetty
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


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed