This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
gt/gt.spec

101 lines
2.6 KiB
RPMSpec

Name: gt
Version: 0.4
Release: 2mamba
Summary: Modified Timidity which supportes enhanced gus format patches
Group: Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://alsa.opensrc.org/index.php/GusSoundfont
Source: ftp://ling.lll.hawaii.edu/pub/greg/gt-%{version}.tar.gz
License: GPL
Patch0: gt-0.4-noac3.patch
Patch1: gt-0.4-compile-fix.patch
Patch2: gt-0.4-optflags.patch
Patch3: gt-0.4-config-default-velocity-layer.patch
Patch4: gt-0.4-ppc-compile-fix.patch
Patch5: gt-0.4-unsf-bigendian-fix.patch
Patch6: gt-0.4-unsf-tremolo.patch
Patch7: gt-0.4-glibc-2.36.patch
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libalsa-devel
BuildRequires: libncurses-devel
BuildRequires: libvorbis-devel
## AUTOBUILDREQ-END
%description
Modified timidity midi player which supportes enhanced gus format patches and
surround audio output.
%package -n soundfont-utils
Summary: Utilities for converting from / to various soundfont formats
Group: Applications/Multimedia
%description -n soundfont-utils
Utilities for converting from / to various soundfont formats and a midi file
disassembler.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
#%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
cp -p src/README README.timidity
# NON FREE
rm -rf examples/patch
rm -rf sfz
rm -rf src/ac3*
%build
export CFLAGS="%{optflags} -fsigned-char"
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
mv %{buildroot}%{_bindir}/dim %{buildroot}%{_bindir}/midi-disasm
mv %{buildroot}%{_mandir}/man1/dim.1 %{buildroot}%{_mandir}/man1/midi-disasm.1
sed -i 's/dim/midi-disasm/g' %{buildroot}%{_mandir}/man1/midi-disasm.1
touch -r utils/midifile.c %{buildroot}%{_mandir}/man1/midi-disasm.1
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/gt
%{_mandir}/man1/gt.1*
%doc AUTHORS COPYING
%files -n soundfont-utils
%defattr(-,root,root)
%{_bindir}/midi-disasm
%{_bindir}/patcat
%{_bindir}/patinfo
%{_bindir}/sf2cfg
%{_bindir}/sfz2pat
%{_bindir}/unsf
%{_bindir}/wav2pat
%{_mandir}/man1/midi-disasm.1*
%{_mandir}/man1/patcat.1*
%{_mandir}/man1/sf2cfg.1*
%{_mandir}/man1/sfz2pat.1*
%{_mandir}/man1/unsf.1*
%doc AUTHORS COPYING
%changelog
* Sat Aug 20 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4-2mamba
- rebuilt for x86_64
* Thu Jul 08 2010 gil <puntogil@libero.it> 0.4-1mamba
- package created by autospec