-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathglasscoder.spec.in
157 lines (129 loc) · 5.08 KB
/
glasscoder.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
## glasscoder.spec.in
##
## Minimalist Audio Streaming Encoder
##
## Copyright (C) 2014-2024 Fred Gleason <[email protected]>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of version 2 of the GNU General Public License as
## published by the Free Software Foundation;
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330,
## Boston, MA 02111-1307 USA
##
# So python bytecompilation works correctly
%define __python /usr/bin/python3.6
Summary: Minimalist Audio Streaming Encoder
Name: glasscoder
Version: @VERSION@
Release: @RPM_RELEASE@%{?dist}
License: GPLv2
Packager: Fred Gleason <[email protected]>
Group: Productivity/Multimedia/Other
Source: %{name}-@[email protected]
BuildRequires: qt5-qtbase-devel libsamplerate-devel libsndfile-devel alsa-lib-devel hpklinux-devel
BuildRoot: /var/tmp/%{name}-@VERSION@
Requires: curl
%description
Glasscoder is a live audio encoder intended for use with Shoutcast and Icecast
streaming servers as well as HTTP Live Streams [HLS]. It can source audio
from ALSA, JACK and AudioScience HPI devices and is capable of generating live
audio streams in a variety of formats. It is controlled completely from the
command-line, with no configuration files or GUI required.
%package gui
Summary: GlassGui and GlassCommander control applets for GlassCoder
Group: Productivity/Multimedia/Other
Requires: glasscoder = @VERSION@
%description gui
GlassGui is a control applet for driving a single instance of the GlassCoder
audio streaming encoder. It provides a complete point-and-click interface
for setting all of the GlassCoder parameters and can be used directly to
instantiate an actual instance of GlassCoder or to generate a command-line
invocation that can be copy/pasted into another environment.
GlassCommander is a control applet for driving multiple simultaneous
instances (potentially dozens) of the GlassCoder audio streaming encoder.
It provides full visibility and control of the operating state of each
GlassCoder instance while conserving screen real estate.
%package pypad
Summary: PyPAD script for Rivendell
Requires: rivendell-pypad python36 python36-requests
%description pypad
This package provides a PyPAD script for use with the Rivendell Radio
Automation System. It can be used to send articulated PAD updates to
GlassCoder instances.
%prep
%setup
%build
%configure
make -j @CPUS_AVAIL@
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%post
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
%{_bindir}/gtk-update-icon-cache -f --quiet %{_datadir}/icons/hicolor || :
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/glasscoder
%{_bindir}/glassconv
%{_mandir}/man1/glasscoder.1.gz
%{_mandir}/man1/glasscommander.1.gz
%{_mandir}/man1/glassgui.1.gz
%{_mandir}/man7/glasscoder-ipc.7.gz
%doc AUTHORS
%doc ChangeLog
%doc COPYING
%doc NEWS
%doc README
%doc conf/httpd/hls.conf
%doc conf/httpd/hls_methods.pl
%doc conf/httpd/hls.passwd
%doc conf/httpd/README.httpd
%files gui
%{_bindir}/glassgui
%{_bindir}/glasscommander
%{_datadir}/applications/glassgui.desktop
%{_datadir}/applications/glasscommander.desktop
%{_datadir}/icons/hicolor/16x16/apps/glasscoder.png
%{_datadir}/icons/hicolor/22x22/apps/glasscoder.png
%{_datadir}/icons/hicolor/48x48/apps/glasscoder.png
%files pypad
/usr/lib/rivendell/pypad/pypad_glasscoder.py
/usr/lib/rivendell/pypad/pypad_glasscoder.exemplar
@PYPAD_BINARY@
%changelog
* Tue May 28 2024 Fred Gleason <[email protected]>
-- Fixed installation location for the 'pypad_glasscoder.py' script.
* Thu Mar 17 2022 Fred Gleason <[email protected]>
-- Added glassconv(1).
-- Tightened the 'glasscoder' dependency for the 'glasscoder-gui' sub-package
to require matching versions.
* Mon Jan 10 2022 Fred Gleason <[email protected]>
-- Replaced the 'qt-devel' build dependency with 'qt5-qtbase-devel'.
* Thu Jan 23 2020 Fred Gleason <[email protected]>
-- Removed 'python36' dependency from the 'glasscoder' package.
-- Added 'python36' and 'python36-requests' depedencies to the
'glasscoder-pypad' package.
* Tue Sep 17 2019 Fred Gleason <[email protected]>
-- Add the 'pypad' subpackage.
* Fri Nov 18 2016 Fred Gleason <[email protected]>
-- Added glasscommander(1) to the 'gui' subpackage.
* Wed Aug 26 2015 Fred Gleason <[email protected]>
-- Added a 'gui' subpackage.
* Tue Aug 11 2015 Fred Gleason <[email protected]>
-- Added a curl(1) dependency.
-- Added HLS httpd example configuration.
* Tue Jun 10 2014 Fred Gleason <[email protected]>
-- Removed the 'libshout-devel' and 'lame-devel' build dependencies.
* Tue Feb 18 2014 Fred Gleason <[email protected]>
-- Initial RPM creation.