-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathocp.spec
More file actions
147 lines (120 loc) · 5.71 KB
/
ocp.spec
File metadata and controls
147 lines (120 loc) · 5.71 KB
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
# rpm spec file for RedHat / Fedora linux
%define name ocp
%define version 3.3.0
Name: %{name}
Version: %{version}
Release: 0
Summary: Linux port of Open Cubic Player
Group: Applications/Multimedia
URL: https://stian.cubic.org/coding-ocp.php
Buildroot: /var/tmp/ocp-buildroot
Source0: https://stian.cubic.org/ocp/%{name}-%{version}.tar.bz2
Source1: https://stian.cubic.org/mirror/ftp.cubic.org/pub/player/gfx/opencp25image1.zip
Source2: https://stian.cubic.org/mirror/ftp.cubic.org/pub/player/gfx/opencp25ani1.zip
License: GPL-2, Creative Commons Attribution 3.0
# OCP itself is GPL-2
# The extra data provided is Creative Commons Attribute 3.0
%if 0%{?suse_version}
BuildRequires: ncurses-devel zlib-devel bzip2-devel libmad-devel libSDL3-devel libogg-devel libvorbis-devel gcc >= 3.0-0 gcc-c++ >= 3.0-0 flac-devel desktop-file-utils hicolor-icon-theme unzip texinfo update-desktop-files libjpeg62-turbo-devel libpng16-devel xa libdiscid-devel cjson-devel alsa-devel libfreetype2-devel gnu-unifont-bitmap-fonts libgme-devel ancient-devel
%else
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: ncurses-devel zlib-devel bzip2-devel libmad-devel SDL3-devel libogg-devel libvorbis-devel gcc >= 3.0-0 gcc-c++ >= 3.0-0 flac-devel desktop-file-utils hicolor-icon-theme unzip texinfo libjpeg-turbo-devel libpng-devel xa libdiscid-devel cjson-devel alsa-lib-devel libfreetype-devel unifont-fonts ancient-devel game-music-emulator-devel
%else
BuildRequires: ncurses-devel zlib-devel bzip2-devel libmad-devel libSDL3-devel libogg-devel libvorbis-devel gcc >= 3.0-0 gcc-c++ >= 3.0-0 flac-devel desktop-file-utils hicolor-icon-theme unzip texinfo libjpeg-turbo-devel libpng-devel xa libdiscid-devel cjson-devel alsa-lib-devel libfreetype-devel unifont-fonts ancient-devel libgme-devel
%endif
%endif
Requires: curl
%description
Open Cubic Player is a music player ported from DOS. Provides a nice text-based
frontend, with some few optional features in graphical. Plays modules, sids,
wave and mp3
%changelog
Changes from version 3.2.3 to 3.3.0:
[SID]
* Update libsidplayfp to v3.0.0
* Update libresidfp to latest master
* Adjust keyboard repeat detection for accelerating adjusting the filters.
* enableOld6581caps option for C64 Assembly 326298
* Fix potential crashes in 'o' and 'b' modes.
[ULT]
* Adjust cmdVolSlide to be 4 times as powerful. Also add minor missing effects/commands.
[SNDH]
* Add support for SNDH files using psgplay
[XM]
* Give warning if tune contains non-standard non-supported ADPCM sample
* After a ECx, a note without an instrument should unmute the channel. (#176)
[HVL]
* Fix potential crashes in 'o' and 'b' modes.
[modland.com]
* no longer hosts playsid directory, and update the list of unknown directories
[channel viewer]
* a DC bias should not produce volume-bars active
[YM]
* Update register to frequency logic to match SNDH. (Fixes a bug where the HI part of the registers ended up being ignored)
[nCurses]
* Try to support rxvt styled terminals regarding SHIFT+F(n) keys.
* Do not purge keyboard input buffer on conRestore/conSave
* Move graphic refresh to its own timer callback instead of keyboard pull/read for a more consistent responsivness. Implemented for for nCurses, X11 and SDL.
[X11]
* allow to enable/disable X11 SHM extension API during ./configure (for docker container)
* Do not purge keyboard input buffer on conRestore/conSave
* Move graphic refresh to its own timer callback instead of keyboard pull/read for a more consistent responsivness. Implemented for for nCurses, X11 and SDL.
[SDL]
* With SDL3, scrollwheel now works as UP/DOWN keys - usefull in filebrowser.
* install icons when building with SDL3.
* Do not purge keyboard input buffer on conRestore/conSave
* Move graphic refresh to its own timer callback instead of keyboard pull/read for a more consistent responsivness. Implemented for for nCurses, X11 and SDL.
[mingw]
* update support-libraries to latest versions.
* devpdisk, file-creation failed due to filename being in LFN syntax, but without any drive and directory.
[QOA]
* Update to latest git (no impact for OCP)
%prep
%setup -q -n %{name}-%{version}
unzip $RPM_SOURCE_DIR/opencp25image1.zip
unzip -o $RPM_SOURCE_DIR/opencp25ani1.zip
%build
CFLAGS=$RPM_OPT_FLAGS CXXFLAGS=$RPM_OPT_FLAGS ./configure --prefix=%{_prefix} --exec_prefix=%{_exec_prefix} --infodir=%{_infodir} --sysconfdir=/etc
make
%post
if [ "$1" = "1" ] ; then # first install
if [ -x /sbin/install-info ]; then
install-info --info-dir=%{_infodir} %{_infodir}/ocp.info.gz || true
fi
fi
%preun
if [ "$1" = "0" ] ; then # last uninstall
if [ -x /sbin/install-info ]; then
install-info --delete --info-dir=%{_infodir} %{_infodir}/ocp.info.gz || true
fi
fi
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
make DESTDIR=%{buildroot} install
%if 0%{?suse_version}
%suse_update_desktop_file -n -r cubic.org-opencubicplayer AudioVideo Player
%endif
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%config %{_prefix}/share/ocp/etc/ocp.ini
%{_exec_prefix}/lib/ocp
%{_prefix}/bin/ocp
%{_prefix}/bin/ocp-curses
%{_prefix}/bin/ocp-sdl3
%{_prefix}/bin/ocp-vcsa
%{_infodir}/ocp.info.gz
%{_prefix}/share/icons/hicolor/16x16/apps/opencubicplayer.png
%{_prefix}/share/icons/hicolor/22x22/apps/opencubicplayer.png
%{_prefix}/share/icons/hicolor/24x24/apps/opencubicplayer.png
%{_prefix}/share/icons/hicolor/32x32/apps/opencubicplayer.png
%{_prefix}/share/icons/hicolor/48x48/apps/opencubicplayer.png
%{_prefix}/share/icons/hicolor/48x48/apps/opencubicplayer.xpm
%{_prefix}/share/icons/hicolor/128x128/apps/opencubicplayer.png
%{_prefix}/share/icons/hicolor/scalable/apps/opencubicplayer.svg
%{_prefix}/share/applications/cubic.org-opencubicplayer.desktop
%dir %{_prefix}/share/ocp
%docdir %{_prefix}/share/doc/ocp
%{_prefix}/share/doc/ocp