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

Annotation of /rpms/smeserver-madsonic/contribs10/smeserver-madsonic.spec

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


Revision 1.3 - (hide annotations) (download)
Fri Jun 4 06:29:06 2021 UTC (3 years, 5 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-madsonic-5_0_3761-4_el7_sme
Changes since 1.2: +20 -1 lines
* Fri Jun 04 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.0.3761-4.sme
- fix new configuration for madsonic 6 [SME: 11280]
  add update event
- add madsonic user to audio group [SME: 10700]
- add /var/media folders and subfolders [SME: 10701]

1 brianr 1.1 %define name smeserver-madsonic
2     %define version 5.0.3761
3 jpp 1.3 %define release 4
4 brianr 1.2 Summary: madsonic is a music streaming system
5 brianr 1.1 Name: %{name}
6     Version: %{version}
7     Release: %{release}%{?dist}
8     Distribution: SME Server
9     License: GNU GPL version 2
10     Group: SMEserver/addon
11     Source: smeserver-madsonic-%{version}.tar.gz
12 jpp 1.3 Patch0: smeserver-madsonic-5.0.3761-sme10.patch
13    
14 brianr 1.1 BuildArchitectures: noarch
15     BuildRoot: /var/tmp/%{name}-%{version}-buildroot
16     BuildRequires: e-smith-devtools
17     Requires: e-smith-release >= 8.0
18     Requires: madsonic
19 jpp 1.3 Requires: alsa-utils
20 brianr 1.1 Requires: ffmpeg
21     Requires: java-1.7.0-openjdk >= 1.7
22     AutoReqProv: no
23    
24     %description
25     madsonic is an application adapted as a contrib for SMEserver
26    
27     %changelog
28 jpp 1.3 * Fri Jun 04 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.0.3761-4.sme
29     - fix new configuration for madsonic 6 [SME: 11280]
30     add update event
31     - add madsonic user to audio group [SME: 10700]
32     - add /var/media folders and subfolders [SME: 10701]
33    
34 brianr 1.2 * Sun Dec 20 2020 Brian Read <brianr@bjsystems.co.uk> 5.0.3761-3.sme
35     - Initial Import in SME10 [SME: 11280]
36    
37 brianr 1.1 * Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 5.0.3761-1.sme
38     - initial import to SME9 contribs
39    
40     * Wed Nov 20 2013 CONTRIB MAKER <tests@pialasse.com> 5.0.3760-2.sme
41     - initial release
42     - builds from unchanged .tar.gz
43    
44     %pre
45     grep '^madsonic:' /etc/passwd > /dev/null || \
46     /usr/sbin/useradd -c "madsonic" -M -d /usr/share/madsonic -s /bin/bash madsonic
47 jpp 1.3 /usr/sbin/usermod -aG audio madsonic
48 brianr 1.1
49     %prep
50     %setup
51 jpp 1.3 %patch0 -p1
52     mkdir -p root/var/media/playlist/export root/var/media/playlist/import root/var/media/incoming root/var/media/podcast root/var/media/playlists/backup
53 brianr 1.1
54     %build
55     perl createlinks
56    
57     %install
58     rm -rf $RPM_BUILD_ROOT
59     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
60     rm -f %{name}-%{version}-filelist
61     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
62 jpp 1.3 --dir /var/media/ 'attr(0755,madsonic,madsonic)' \
63     --dir /var/media/playlist/ 'attr(0750,madsonic,madsonic)' \
64     --dir /var/media/playlist/export/ 'attr(0750,madsonic,madsonic)' \
65     --dir /var/media/playlist/import/ 'attr(0750,madsonic,madsonic)' \
66     --dir /var/media/incoming/ 'attr(0750,madsonic,madsonic)' \
67     --dir /var/media/podcast/ 'attr(0750,madsonic,madsonic)' \
68     --dir /var/media/playlists/backup/ 'attr(0750,madsonic,madsonic)' \
69 brianr 1.1 > %{name}-%{version}-filelist
70    
71     %clean
72     rm -rf $RPM_BUILD_ROOT
73    
74     %files -f %{name}-%{version}-filelist
75     %defattr(-,root,root)
76    
77    

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