/[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.5 - (hide annotations) (download)
Sat Jul 23 01:13:26 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-madsonic-5_0_3761-6_el7_sme
Changes since 1.4: +6 -1 lines
* Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.0.3761-6.sme
- add to core backup [SME: 12014]

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

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