diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..901ec6c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +aldrin-0.11.tar.bz2 diff --git a/Makefile b/Makefile deleted file mode 100644 index da1591d..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: aldrin -# $Id$ -NAME := aldrin -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/aldrin-docfix.patch b/aldrin-docfix.patch new file mode 100644 index 0000000..9aba628 --- /dev/null +++ b/aldrin-docfix.patch @@ -0,0 +1,46 @@ +diff -up aldrin-0.11/SConstruct.docfix aldrin-0.11/SConstruct +--- aldrin-0.11/SConstruct.docfix 2007-09-25 20:55:58.000000000 +0200 ++++ aldrin-0.11/SConstruct 2007-09-25 20:55:58.000000000 +0200 +@@ -127,12 +127,14 @@ if win32: + install('${DESTDIR}${PREFIX}', 'aldrin.bat') + + # docs +-install('${DOC_INSTALL_PATH}/aldrin/html', ++install('${DOC_INSTALL_PATH}/aldrin-%s/html' % VERSION, + glob.glob('share/doc/aldrin/html/*.html') + + glob.glob('share/doc/aldrin/html/*.css')) +-install('${DOC_INSTALL_PATH}/aldrin/images', ++install('${DOC_INSTALL_PATH}/aldrin-%s/images' % VERSION, + glob.glob('share/doc/aldrin/images/*.gif') + + glob.glob('share/doc/aldrin/images/*.png')) ++install('${DOC_INSTALL_PATH}/aldrin-%s' % VERSION, ++ ['ChangeLog', 'CREDITS', 'LICENCE']) + + # icon theme + install(iconpath + '/16x16/apps', 'share/icons/hicolor/16x16/apps/aldrin.png') +diff -up aldrin-0.11/share/aldrin/router.py.docfix aldrin-0.11/share/aldrin/router.py +--- aldrin-0.11/share/aldrin/router.py.docfix 2007-09-25 21:16:54.000000000 +0200 ++++ aldrin-0.11/share/aldrin/router.py 2007-09-25 21:17:19.000000000 +0200 +@@ -698,8 +698,8 @@ class ParameterDialog(gtk.Dialog): + uri = filenameify(self.pluginloader.get_uri()) + name = filenameify(self.pluginloader.get_name()) + helpfilepaths = [ +- filepath('../doc/zzub/plugins/' + uri + '/index.html'), +- filepath('../doc/zzub/plugins/' + name + '/index.html'), ++ filepath('../doc/libzzub-0.2.3/plugins/' + uri + '/index.html'), ++ filepath('../doc/libzzub-0.2.3/plugins/' + name + '/index.html'), + ] + for path in helpfilepaths: + print "searching for '%s'..." % path +diff -up aldrin-0.11/share/aldrin/main.py.docfix aldrin-0.11/share/aldrin/main.py +--- aldrin-0.11/share/aldrin/main.py.docfix 2007-09-25 21:14:29.000000000 +0200 ++++ aldrin-0.11/share/aldrin/main.py 2007-09-25 21:16:17.000000000 +0200 +@@ -856,7 +856,7 @@ class AldrinFrame(gtk.Window): + @type event: wx.MenuEvent + """ + import webbrowser +- webbrowser.open_new(filepath('../doc/aldrin/html/index.html')) ++ webbrowser.open_new(filepath('../doc/aldrin-0.11/html/index.html')) + + def on_about(self, event): + """ diff --git a/aldrin.spec b/aldrin.spec new file mode 100644 index 0000000..3067eb8 --- /dev/null +++ b/aldrin.spec @@ -0,0 +1,110 @@ +Name: aldrin +Version: 0.11 +Release: 6%{?dist} +Summary: Modular music sequencer/tracker + +Group: Applications/Multimedia +License: GPLv2+ +URL: http://trac.zeitherrschaft.org/aldrin/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 +Patch0: aldrin-docfix.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +ExcludeArch: ppc64 +BuildRequires: scons >= 0.96.92 +BuildRequires: dos2unix +BuildRequires: desktop-file-utils +Requires: pyzzub = 0.2.3 +Requires: pygtk2 + +%description +Aldrin is a powerful music composition software featuring a flexible audio +routing system commonly found in expensive audio software, enabling you to mix, +split, mutilate and modify audio signals emitted by software synthesizers and +samples. + + +%prep +%setup -q +mac2unix SConstruct +%patch0 -p1 -b docfix + + +%build +find share/aldrin share/doc \ + -regextype posix-egrep \ + -regex '.+\.(py|html|xml|prs|col|css)' \ + -exec mac2unix '{}' \; \ + -exec chmod 644 '{}' \; + +iconv --from-code=ISO-8859-1 --to-code=UTF-8 CREDITS > CREDITS~ +%{__mv} CREDITS~ CREDITS + +%install +%{__rm} -rf $RPM_BUILD_ROOT +scons install PREFIX=$RPM_BUILD_ROOT%{_prefix} + +desktop-file-install \ + --vendor="fedora" \ + --remove-category="Application" \ + --delete-original \ + --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ + $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop + +%clean +%{__rm} -rf $RPM_BUILD_ROOT + + +%post +update-desktop-database &> /dev/null || : + +touch --no-create %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + + +%postun +update-desktop-database &> /dev/null || : + +touch --no-create %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + +%files +%defattr(-,root,root,-) +%{_bindir}/aldrin +%{_defaultdocdir}/%{name}-%{version} +%{_datadir}/%{name} +%{_datadir}/applications/* +%{_datadir}/icons/hicolor/*/apps/* + +%changelog +* Fri Oct 5 2007 Alexander Kahl - 0.11-6 +- added ExludeArch for ppc64 to reflect libzzub unavailability on that arch + +* Thu Sep 27 2007 Alexander Kahl - 0.11-5 +- nailed to pyzzub version 0.2.3 for docpath compatibility + +* Tue Sep 25 2007 Alexander Kahl - 0.11-4 +- updated patch to fix referenced libzzub doc locations + +* Tue Sep 18 2007 Alexander Kahl - 0.11-3 +- generic sf.net source url +- adapted macros wherever feasible (both paths and commands) +- unified buildroot style +- removed redundant ldconfig update call +- new patch to rectify aldrin's installation doc directory and file list +- added missing python module requirement +- added update calls for GTK icon cache and desktop database + +* Tue Sep 18 2007 Alexander Kahl - 0.11-2 +- updated requires to new libzzub w/ integrated pyzzub +- removed redundant requires +- fixed rpm path macros +- fixed CREDITS encoding + +* Mon Sep 3 2007 Alexander Kahl - 0.11-1 +- initial release diff --git a/sources b/sources index e69de29..99b111e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1a40ea5852e34b69abc55e12d049aef8 aldrin-0.11.tar.bz2