41c87dd
Name:      schismtracker
2a4774f
Version:   20090817
2a4774f
Release:   1%{?dist}
41c87dd
Summary:   Sound module composer/player
41c87dd
Group:     Applications/Multimedia
a5d68c5
License:   GPLv2
41c87dd
URL:       http://www.nimh.org/schismtracker/
2a4774f
Source0:   http://schismtracker.org/dl/schismtracker-%{version}.tar.bz2
41c87dd
Source1:   schismtracker.desktop
41c87dd
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
41c87dd
41c87dd
Requires: hicolor-icon-theme
41c87dd
BuildRequires: SDL-devel desktop-file-utils
41c87dd
%if 0%{!?_without_x:1}
41c87dd
BuildRequires: libXt-devel libXxf86misc-devel libXv-devel
41c87dd
%endif
41c87dd
41c87dd
%description
41c87dd
Schismtracker is a module tracker for the X Window System similar to
41c87dd
the DOS program `Impulse Tracker'. Schismtracker can play/modify various
41c87dd
sound formats such as MOD, S3M, XM, IT, 669 and others.  The user interface
41c87dd
is mostly text-based using SDL for graphical output.
41c87dd
41c87dd
%prep
2a4774f
%setup -q
41c87dd
41c87dd
%build
41c87dd
%configure --disable-dependency-tracking \
41c87dd
%if 0%{?_without_x:1}
41c87dd
--with-x=no \
41c87dd
%endif
41c87dd
;
41c87dd
make %{?_smp_mflags}
41c87dd
41c87dd
%install
41c87dd
rm -rf %{buildroot}
41c87dd
make install DESTDIR=%{buildroot}
41c87dd
41c87dd
pushd icons
41c87dd
for i in 16 22 24 32 36 48 64 72 96; do
41c87dd
        install -m644 -D schism-icon-${i}.png %{buildroot}/%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
41c87dd
done
41c87dd
install -m644 -D schism-icon.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
41c87dd
popd
41c87dd
41c87dd
desktop-file-install --vendor fedora \
41c87dd
        --dir %{buildroot}/%{_datadir}/applications \
41c87dd
%SOURCE1
41c87dd
41c87dd
%clean
41c87dd
rm -rf %{buildroot}
41c87dd
41c87dd
%post
41c87dd
update-desktop-database &> /dev/null ||:
41c87dd
touch --no-create %{_datadir}/icons/hicolor || :
41c87dd
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
41c87dd
41c87dd
%postun
41c87dd
update-desktop-database &> /dev/null ||:
41c87dd
touch --no-create %{_datadir}/icons/hicolor || :
41c87dd
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
41c87dd
41c87dd
%files
41c87dd
%defattr(-,root,root,-)
41c87dd
%doc AUTHORS COPYING COPYING.frag-opt COPYING.libmodplug NEWS README
41c87dd
%{_bindir}/schismtracker
41c87dd
%{_datadir}/applications/fedora-schismtracker.desktop
41c87dd
%{_datadir}/icons/hicolor/*/apps/%{name}.*
41c87dd
41c87dd
%changelog
2a4774f
* Mon Nov 09 2009 Jindrich Novy <jnovy@redhat.com> 20090817-1
2a4774f
- update to the latest upstream (#533593)
2a4774f
53fbe82
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-0.8.rc1
53fbe82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
53fbe82
6caa8d6
* Mon Feb 25 2008 Jindrich Novy <jnovy@redhat.com> 0.5-0.7.rc1
6caa8d6
- manual rebuild because of gcc-4.3 (#434193)
6caa8d6
a07a5c2
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.5-0.6.rc1
a07a5c2
- Autorebuild for GCC 4.3
a07a5c2
a5d68c5
* Wed May 09 2007 Jindrich Novy <jnovy@fedoraproject.org> 0.5-0.5.rc1
a5d68c5
- update License
a5d68c5
- rebuild for BuildID
a5d68c5
a780c26
* Wed May 09 2007 Jindrich Novy <jnovy@fedoraproject.org> 0.5-0.4.rc1
a780c26
- bump release to avoid EVR problems with FC-5/FC-6
a780c26
41c87dd
* Fri May 04 2007 Jindrich Novy <jnovy@fedoraproject.org> 0.5-0.3.rc1
41c87dd
- add X dependencies (#238824), thanks to Ville Skyttä
41c87dd
- tune the .desktop file yet more
41c87dd
41c87dd
* Fri May 04 2007 Jindrich Novy <jnovy@fedoraproject.org> 0.5-0.2.rc1
41c87dd
- update GTK icon caches in %%post, %%postun
41c87dd
- remove unneeded dependencies
41c87dd
- update .desktop file
41c87dd
41c87dd
* Wed May 02 2007 Jindrich Novy <jnovy@fedoraproject.org> 0.5-0.1rc1
41c87dd
- package schismtracker