/[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.3 by jpp, Fri Jun 4 06:40:40 2021 UTC Revision 1.5 by jpp, Sat Jul 23 07:06:28 2022 UTC
# Line 1  Line 1 
1  %define name madsonic  %define name madsonic
2  %define version 6.2.9084  %define version 6.2.9092
3  %define release 2  %define release 1
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 12  Version:        %{version} Line 12  Version:        %{version}
12  Release:        %{release}%{?dist}  Release:        %{release}%{?dist}
13  Summary:        A web-based music streamer, jukebox and Podcast receiver  Summary:        A web-based music streamer, jukebox and Podcast receiver
14  Source:         %{name}-%{version}.tar.gz  Source:         %{name}-%{version}.tar.gz
15    Patch0:         madsonic-6.2.9084-test.patch
16  BuildRoot: /var/tmp/%{name}-%{version}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-buildroot
17  BuildArch: noarch  BuildArch: noarch
18  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
# Line 21  License:        GPLv3 Line 22  License:        GPLv3
22  URL:            http://madsonic.org  URL:            http://madsonic.org
23    
24  %changelog  %changelog
25    * Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 6.2.9092-1.sme
26    - update with log4j fixes and more
27    - systemd capable
28    - enable mediasonic.test by default
29    
30  * Fri Jun 04 2021 Jean-Philippe Pialasse <tests@pialasse.com> 6.2.9084-2.sme  * Fri Jun 04 2021 Jean-Philippe Pialasse <tests@pialasse.com> 6.2.9084-2.sme
31  - fix permissions [SME: 10699]  - fix permissions [SME: 10699]
32  - fix noise on start with initial install [SME: 8016]  - fix noise on start with initial install [SME: 8016]
33    
   
34  * 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
35  - update to 6.2.9084  - update to 6.2.9084
36  - first build for SME10  - first build for SME10
# Line 43  from home. Line 48  from home.
48    
49  Apps for Android, iPhone and Windows Phone are also available.  Apps for Android, iPhone and Windows Phone are also available.
50    
51  Java 1.6 or higher is required to run Madsonic.  Java 1.8 or higher is required to run Madsonic.>= 6.2
52    
53  %prep  %prep
54  %setup  %setup
55    mkdir -p root/run/madsonic
56    mkdir -p root/usr/lib/tmpfiles.d/
57    echo "d /run/madsonic 0755 madsonic madsonic" > root/usr/lib/tmpfiles.d/madsonic.conf
58    rm root/etc/init.d/madsonic
59    ln -sf root/usr/share/madsonic/madsonic.sh root/usr/bin/madsonic
60    %patch0 -p1
61    
62    
63  %install  %install
# Line 56  rm -f %{name}-%{version}-filelist Line 67  rm -f %{name}-%{version}-filelist
67  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
68   --dir /usr/share/madsonic 'attr(0750,madsonic,madsonic)' \   --dir /usr/share/madsonic 'attr(0750,madsonic,madsonic)' \
69   --dir /var/madsonic 'attr(0750,madsonic,madsonic)' \   --dir /var/madsonic 'attr(0750,madsonic,madsonic)' \
70  | grep -v "/etc/sysconfig/madsonic" \   --file /usr/lib/tmpfiles.d/madsonic.conf 'attr(0750,root,root)' \
71  | grep -v   "/etc/init.d$" \   --dir /run/madsonic 'attr(0755,madsonic,madsonic)' \
72  | grep -v   "/etc/sysconfig$"\   --ignoredir /run \
73     --ignoredir "/etc/sysconfig/madsonic" \
74     --ignoredir   "/etc/init.d" \
75     --ignoredir   "/etc/sysconfig"\
76       > %{name}-%{version}-filelist       > %{name}-%{version}-filelist
77    
78  %clean  %clean
# Line 77  grep '^madsonic:' /etc/passwd > /dev/nul Line 91  grep '^madsonic:' /etc/passwd > /dev/nul
91  if [ -e /etc/init.d/madsonic ]; then  if [ -e /etc/init.d/madsonic ]; then
92    service madsonic stop    service madsonic stop
93  fi  fi
94    [ -e /usr/lib/systemd/system/madsonic.service ] && systemctl stop madsonic
95    
96  # Backup database.  # Backup database.
97  if [ -e /var/madsonic/db ]; then  if [ -e /var/madsonic/db ]; then
# Line 87  fi Line 102  fi
102  exit 0  exit 0
103    
104  %post  %post
105  ln -sf /usr/share/madsonic/madsonic.sh /usr/bin/madsonic  #ln -sf /usr/share/madsonic/madsonic.sh /usr/bin/madsonic
106  chmod 750 /var/madsonic  #chmod 750 /var/madsonic
107    
108  # Clear jetty cache.  # Clear jetty cache.
109  rm -rf /var/madsonic/jetty  rm -rf /var/madsonic/jetty
# Line 107  if [ $1 = 0 ] ; then Line 122  if [ $1 = 0 ] ; then
122    
123    # Stop the service.    # Stop the service.
124    [ -e /etc/init.d/madsonic ] && service madsonic stop    [ -e /etc/init.d/madsonic ] && service madsonic stop
125      [ -e /usr/lib/systemd/system/madsonic.service ] && systemctl stop madsonic
126    
127    # Remove symlink.    # Remove symlink.
128    rm -f /usr/bin/madsonic    rm -f /usr/bin/madsonic


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