Accepting request 1065583 from home:mnhauke

Initial package for hivelytracker

OBS-URL: https://build.opensuse.org/request/show/1065583
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/hivelytracker?expand=0&rev=1
This commit is contained in:
Takashi Iwai 2023-02-15 07:31:26 +00:00 committed by Git OBS Bridge
commit a2f5871601
6 changed files with 204 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
hivelytracker-1_9.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a3c6d8a041fe9952f0a72a31953461254b497d3bfbf3d07301d1bf4e9e8fb65d
size 5821708

View File

@ -0,0 +1,95 @@
diff --git a/gui.c b/gui.c
index b4280df..0d7a24b 100755
--- a/gui.c
+++ b/gui.c
@@ -3333,7 +3333,7 @@ void gui_loadskinsettings( void )
{
#ifdef __SDL_WRAPPER__
#ifdef PREFIX
- strcpy( prpfontname, PREFIX "/share/hivelytracker/ttf/");
+ strcpy( prpfontname, PREFIX "/share/fonts/texlive-dejavu/");
#else
strcpy( prpfontname, skindir ); // // // Set path to skin directory
strcat( prpfontname, "/" ); // // //
@@ -3345,9 +3345,9 @@ void gui_loadskinsettings( void )
{
strcpy( prpfontname,
#ifdef PREFIX
- PREFIX "/share/hivelytracker/"
+ PREFIX "/share/fonts/texlive-dejavu/"
#endif
- "ttf/DejaVuSans.ttf" );
+ "DejaVuSans.ttf" );
}
#endif
continue;
@@ -3357,7 +3357,7 @@ void gui_loadskinsettings( void )
{
#ifdef __SDL_WRAPPER__
#ifdef PREFIX
- strcpy( fixfontname, PREFIX "/share/hivelytracker/ttf/");
+ strcpy( fixfontname, PREFIX "/share/fonts/texlive-dejavu/");
#else
strcpy( fixfontname, skindir ); // // //
strcat( fixfontname, "/" ); // // //
@@ -3368,9 +3368,9 @@ void gui_loadskinsettings( void )
{
strcpy( fixfontname,
#ifdef PREFIX
- PREFIX "/share/hivelytracker/"
+ PREFIX "/share/fonts/texlive-dejavu/"
#endif
- "ttf/DejaVuSansMono.ttf" );
+ "DejaVuSansMono.ttf" );
}
#endif
continue;
@@ -3380,7 +3380,7 @@ void gui_loadskinsettings( void )
{
#ifdef __SDL_WRAPPER__
#ifdef PREFIX
- strcpy( sfxfontname, PREFIX "/share/hivelytracker/ttf/");
+ strcpy( sfxfontname, PREFIX "/share/fonts/texlive-dejavu/");
#else
strcpy( sfxfontname, skindir ); // // //
strcat( sfxfontname, "/" ); // // //
@@ -3391,9 +3391,9 @@ void gui_loadskinsettings( void )
{
strcpy( sfxfontname,
#ifdef PREFIX
- PREFIX "/share/hivelytracker/"
+ PREFIX "/share/fonts/texlive-dejavu/"
#endif
- "ttf/DejaVuSansMono.ttf" );
+ "DejaVuSansMono.ttf" );
}
#endif
continue;
@@ -3980,21 +3980,21 @@ BOOL gui_init( void )
strcpy( fixfontname,
#ifdef PREFIX
PREFIX
- "/share/hivelytracker/"
+ "/share/fonts/texlive-dejavu/"
#endif
- "ttf/DejaVuSansMono.ttf" );
+ "DejaVuSansMono.ttf" );
strcpy( sfxfontname,
#ifdef PREFIX
PREFIX
- "/share/hivelytracker/"
+ "/share/fonts/texlive-dejavu/"
#endif
- "ttf/DejaVuSansMono.ttf" );
+ "DejaVuSansMono.ttf" );
strcpy( prpfontname,
#ifdef PREFIX
PREFIX
- "/share/hivelytracker/"
+ "/share/fonts/texlive-dejavu/"
#endif
- "ttf/DejaVuSans.ttf" );
+ "DejaVuSans.ttf" );
#endif
#endif

6
hivelytracker.changes Normal file
View File

@ -0,0 +1,6 @@
-------------------------------------------------------------------
Mon Feb 13 19:38:30 UTC 2023 - Martin Hauke <mardnh@gmx.de>
- Initial package, version 1.9
- Add patch:
* hivelytracker-fontpath.patch

76
hivelytracker.spec Normal file
View File

@ -0,0 +1,76 @@
#
# spec file for package hivelytracker
#
# # Copyright (c) 2023, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define realver 1_9
Name: hivelytracker
Version: 1.9
Release: 0
Summary: Music tracker for AHX and HVL formats
License: BSD-3-Clause
Group: Productivity/Multimedia/Sound/Players
URL: http://www.hivelytracker.co.uk/
#Git-Clone: https://github.com/pete-gordon/hivelytracker.git
Source: https://github.com/pete-gordon/hivelytracker/archive/refs/tags/V%{realver}.tar.gz#/%{name}-%{realver}.tar.gz
Patch0: hivelytracker-fontpath.patch
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: pkgconfig(SDL_image)
BuildRequires: pkgconfig(SDL_ttf)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(sdl)
Requires: texlive-dejavu-fonts
%description
Hively Tracker is a tracker program based upon the AHX format created
in the mid '90s by Dexter and Pink of Abyss. The format was relatively
popular, and many songs were created and used in scene productions and
games. AHX was designed to create a very SID-like sound on the Amiga.
HivelyTracker can import and export modules and instruments in the AHX
format, but it also improves on AHX in several ways and therefore has
its own instrument and module formats.
HivelyTracker offers the following features over AHX:
* Multichannel (4 to 16 channels)
* Per-channel stereo panning
* Two commands per note instead of one
* Ring modulation
* A more feature rich editor
%prep
%setup -q -n %{name}-%{realver}
%patch0 -p1
%build
%make_build -C sdl -f Makefile.linux
%install
%make_install -C sdl -f Makefile.linux PREFIX=%{buildroot}%{_prefix}/
# unbundle DejaVu fonts
rm -R %{buildroot}/usr/share/hivelytracker/ttf
%fdupes %{buildroot}/%{_datadir}/hivelytracker/Skins
%files
%license LICENSE
%doc README.MD
%{_bindir}/hivelytracker
%{_datadir}/hivelytracker
%{_datadir}/applications/hivelytracker.desktop
%{_datadir}/icons/hivelytracker.png
%{_mandir}/man1/hivelytracker.1%{?ext_man}
%changelog