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

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

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


Revision 1.8 - (show annotations) (download)
Wed Nov 23 06:53:11 2022 UTC (23 months, 1 week ago) by jpp
Branch: MAIN
CVS Tags: smeserver-madsonic-5_0_3761-8_el7_sme
Changes since 1.7: +17 -5 lines
* Tue Nov 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.0.3761-8.sme
- remove remaining sysvinit files [SME: 12239]
- fix few minors issues, typo and cosmetics

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

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