Group :: Sound
RPM: milkytracker
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Group: Sound
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-cmake rpm-macros-fedora-compat
BuildRequires: /usr/bin/desktop-file-install /usr/bin/xmlto libalsa-devel libglvnd-devel
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: milkytracker
Version: 1.03.00
Release: alt1_1
Summary: Module tracker software for creating music
License: GPLv3+
URL: http://www.milkytracker.org/
Source0: https://github.com/milkytracker/MilkyTracker/archive/v%{version}.tar.gz
BuildRequires: libSDL2-devel
BuildRequires: ctest cmake
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: libappstream-glib
BuildRequires: librtmidi-devel
BuildRequires: zlib-devel
BuildRequires: zziplib-devel
BuildRequires: libjack-devel
Source44: import.info
Patch33: milkytracker-1.02.00-gcc8-fix.patch
%description
MilkyTracker is an application for creating music in the .MOD and .XM formats.
Its goal is to be free replacement for the popular Fasttracker II software.
%prep
%setup -q -n MilkyTracker-%{version}
find . -regex '.*\.\(cpp\|h\|inl\)' -print0 | xargs -0 chmod 644
%patch33 -p1
%build
%{fedora_v2_cmake} -DBUILD_SHARED_LIBS:BOOL=OFF
%fedora_v2_cmake_build
%install
cd %{_vpath_builddir}
make install DESTDIR=%{buildroot}
cd ..
# move the documentation directory (version 1.01.00 started installing
# it as MilkyTracker instead of milkytracker and we want to keep the
# name in sync with the package name)
mv -v %{buildroot}%{_docdir}/MilkyTracker %{buildroot}%{_docdir}/%{name}
# copy the icon
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp -p resources/pictures/carton.png %{buildroot}%{_datadir}/pixmaps/milkytracker.png
# copy the desktop file
desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications/ resources/milkytracker.desktop
# copy the appdata file
install -v -D -m 644 resources/milkytracker.appdata %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
%files
%{_bindir}/milkytracker
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/pixmaps/milkytracker.png
%{_datadir}/%{name}
%{_docdir}/%{name}
%changelog
…
Full changelog you can see here
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-cmake rpm-macros-fedora-compat
BuildRequires: /usr/bin/desktop-file-install /usr/bin/xmlto libalsa-devel libglvnd-devel
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: milkytracker
Version: 1.03.00
Release: alt1_1
Summary: Module tracker software for creating music
License: GPLv3+
URL: http://www.milkytracker.org/
Source0: https://github.com/milkytracker/MilkyTracker/archive/v%{version}.tar.gz
BuildRequires: libSDL2-devel
BuildRequires: ctest cmake
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: libappstream-glib
BuildRequires: librtmidi-devel
BuildRequires: zlib-devel
BuildRequires: zziplib-devel
BuildRequires: libjack-devel
Source44: import.info
Patch33: milkytracker-1.02.00-gcc8-fix.patch
%description
MilkyTracker is an application for creating music in the .MOD and .XM formats.
Its goal is to be free replacement for the popular Fasttracker II software.
%prep
%setup -q -n MilkyTracker-%{version}
find . -regex '.*\.\(cpp\|h\|inl\)' -print0 | xargs -0 chmod 644
%patch33 -p1
%build
%{fedora_v2_cmake} -DBUILD_SHARED_LIBS:BOOL=OFF
%fedora_v2_cmake_build
%install
cd %{_vpath_builddir}
make install DESTDIR=%{buildroot}
cd ..
# move the documentation directory (version 1.01.00 started installing
# it as MilkyTracker instead of milkytracker and we want to keep the
# name in sync with the package name)
mv -v %{buildroot}%{_docdir}/MilkyTracker %{buildroot}%{_docdir}/%{name}
# copy the icon
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp -p resources/pictures/carton.png %{buildroot}%{_datadir}/pixmaps/milkytracker.png
# copy the desktop file
desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications/ resources/milkytracker.desktop
# copy the appdata file
install -v -D -m 644 resources/milkytracker.appdata %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
%files
%{_bindir}/milkytracker
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/pixmaps/milkytracker.png
%{_datadir}/%{name}
%{_docdir}/%{name}
%changelog
…
Full changelog you can see here