Blame aldrin.spec

Alexander Kahl 5c4c98f
Name:		aldrin
Alexander Kahl 5c4c98f
Version:	0.11
35a4ea1
Release:	8%{?dist}
Alexander Kahl 5c4c98f
Summary:	Modular music sequencer/tracker
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
Group:		Applications/Multimedia
Alexander Kahl 5c4c98f
License:	GPLv2+
Alexander Kahl 5c4c98f
URL:		http://trac.zeitherrschaft.org/aldrin/
Alexander Kahl 5c4c98f
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Alexander Kahl 5c4c98f
Patch0:		aldrin-docfix.patch
Alexander Kahl 5c4c98f
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
BuildArch:	noarch
Alexander Kahl 604f9d9
ExcludeArch:	ppc64
Alexander Kahl 5c4c98f
BuildRequires:	scons >= 0.96.92
Alexander Kahl 5c4c98f
BuildRequires:	dos2unix
Alexander Kahl 5c4c98f
BuildRequires:	desktop-file-utils
Alexander Kahl 5c4c98f
Requires:	pyzzub = 0.2.3
Alexander Kahl 5c4c98f
Requires:	pygtk2
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
%description
Alexander Kahl 5c4c98f
Aldrin is a powerful music composition software featuring a flexible audio
Alexander Kahl 5c4c98f
routing system commonly found in expensive audio software, enabling you to mix,
Alexander Kahl 5c4c98f
split, mutilate and modify audio signals emitted by software synthesizers and
Alexander Kahl 5c4c98f
samples.
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
%prep
Alexander Kahl 5c4c98f
%setup -q
Alexander Kahl 5c4c98f
mac2unix SConstruct
Alexander Kahl 5c4c98f
%patch0 -p1 -b docfix
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
%build
Alexander Kahl 5c4c98f
find share/aldrin share/doc \
Alexander Kahl 5c4c98f
     -regextype posix-egrep \
Alexander Kahl 5c4c98f
     -regex '.+\.(py|html|xml|prs|col|css)' \
Alexander Kahl 5c4c98f
     -exec mac2unix '{}' \; \
Alexander Kahl 5c4c98f
     -exec chmod 644 '{}' \;
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
iconv --from-code=ISO-8859-1 --to-code=UTF-8 CREDITS > CREDITS~
Alexander Kahl 5c4c98f
%{__mv} CREDITS~ CREDITS
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
%install
Alexander Kahl 5c4c98f
%{__rm} -rf $RPM_BUILD_ROOT
Alexander Kahl 5c4c98f
scons install PREFIX=$RPM_BUILD_ROOT%{_prefix}
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
desktop-file-install \
Alexander Kahl 5c4c98f
		     --vendor="fedora" \
Alexander Kahl 5c4c98f
		     --remove-category="Application" \
Alexander Kahl 5c4c98f
		     --delete-original \
Alexander Kahl 5c4c98f
		     --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
Alexander Kahl 5c4c98f
		     $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
%clean
Alexander Kahl 5c4c98f
%{__rm} -rf $RPM_BUILD_ROOT
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
%post
Alexander Kahl 5c4c98f
update-desktop-database &> /dev/null || :
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
touch --no-create %{_datadir}/icons/hicolor
Alexander Kahl 5c4c98f
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
Alexander Kahl 604f9d9
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
Alexander Kahl 5c4c98f
fi
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
%postun
Alexander Kahl 5c4c98f
update-desktop-database &> /dev/null || :
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
touch --no-create %{_datadir}/icons/hicolor
Alexander Kahl 5c4c98f
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
Alexander Kahl 604f9d9
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
Alexander Kahl 5c4c98f
fi
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
%files
Alexander Kahl 5c4c98f
%defattr(-,root,root,-)
Alexander Kahl 5c4c98f
%{_bindir}/aldrin
Alexander Kahl 5c4c98f
%{_defaultdocdir}/%{name}-%{version}
Alexander Kahl 5c4c98f
%{_datadir}/%{name}
Alexander Kahl 5c4c98f
%{_datadir}/applications/*
Alexander Kahl 5c4c98f
%{_datadir}/icons/hicolor/*/apps/*
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
%changelog
35a4ea1
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-8
35a4ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
35a4ea1
b161a9b
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.11-7
b161a9b
- Rebuild for Python 2.6
b161a9b
Alexander Kahl 604f9d9
* Fri Oct  5 2007 Alexander Kahl <akahl@iconmobile.com> - 0.11-6
Alexander Kahl 604f9d9
- added ExludeArch for ppc64 to reflect libzzub unavailability on that arch
Alexander Kahl 604f9d9
Alexander Kahl 5c4c98f
* Thu Sep 27 2007 Alexander Kahl <akahl@iconmobile.com> - 0.11-5
Alexander Kahl 5c4c98f
- nailed to pyzzub version 0.2.3 for docpath compatibility
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
* Tue Sep 25 2007 Alexander Kahl <akahl@iconmobile.com> - 0.11-4
Alexander Kahl 5c4c98f
- updated patch to fix referenced libzzub doc locations
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
* Tue Sep 18 2007 Alexander Kahl <akahl@iconmobile.com> - 0.11-3
Alexander Kahl 5c4c98f
- generic sf.net source url
Alexander Kahl 5c4c98f
- adapted macros wherever feasible (both paths and commands)
Alexander Kahl 5c4c98f
- unified buildroot style
Alexander Kahl 5c4c98f
- removed redundant ldconfig update call
Alexander Kahl 5c4c98f
- new patch to rectify aldrin's installation doc directory and file list
Alexander Kahl 5c4c98f
- added missing python module requirement
Alexander Kahl 5c4c98f
- added update calls for GTK icon cache and desktop database
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
* Tue Sep 18 2007 Alexander Kahl <akahl@iconmobile.com> - 0.11-2
Alexander Kahl 5c4c98f
- updated requires to new libzzub w/ integrated pyzzub
Alexander Kahl 5c4c98f
- removed redundant requires
Alexander Kahl 5c4c98f
- fixed rpm path macros
Alexander Kahl 5c4c98f
- fixed CREDITS encoding
Alexander Kahl 5c4c98f
Alexander Kahl 5c4c98f
* Mon Sep  3 2007 Alexander Kahl <akahl@iconmobile.com> - 0.11-1
Alexander Kahl 5c4c98f
- initial release