/[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.6 - (hide annotations) (download)
Sat Jul 23 21:12:26 2022 UTC (2 years, 4 months ago) by jpp
Branch: MAIN
Changes since 1.5: +11 -3 lines
* Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.0.3761-6.sme
- add to core backup [SME: 12014]
- update for 6.2 neededing java-1.8.0
- add local test webservices
- main rpm is now using systemd [SME: 11619]

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

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