From b1d85a45f61f0682080a4db00801f0a01c44fa9e Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Sun, 6 Dec 2009 14:38:46 +0100 Subject: Initial commit --- .gitmodules | 3 +++ GNUmakefile | 1 + cleanup-sources.sh | 32 ++++++++++++++++++++++++++++++++ git-rpm | 1 + goattracker.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 85 insertions(+) create mode 100644 .gitmodules create mode 120000 GNUmakefile create mode 100755 cleanup-sources.sh create mode 160000 git-rpm create mode 100644 goattracker.spec diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0ccfef1 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "git-rpm"] + path = git-rpm + url = git://fedorapeople.org/~ndim/git-rpm.git diff --git a/GNUmakefile b/GNUmakefile new file mode 120000 index 0000000..9acf7e6 --- /dev/null +++ b/GNUmakefile @@ -0,0 +1 @@ +git-rpm/GNUmakefile \ No newline at end of file diff --git a/cleanup-sources.sh b/cleanup-sources.sh new file mode 100755 index 0000000..9309aab --- /dev/null +++ b/cleanup-sources.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +set -ex + +version=$1 +if test "x$version" = "x"; then + echo "Usage: $(basename "$0") VERSION" + exit 13 +fi +baseurl=http://prdownloads.sourceforge.net/goattracker2 + +function cleanup_zipfile() { + zip_suffix=$1 + tar_suffix=$2 + zipfile=GoatTracker_${version}${zip_suffix}.zip + url=${baseurl}/${zipfile} + + test -f "$zipfile" || wget "$url" + + subdir=goattracker-${version}${tar_suffix} + rm -rf "$subdir/" + + unzip -d "$subdir" "$zipfile" + + find "$subdir" \( -name '*.exe' -or -name '*.dll' \) -print -exec rm -f {} \; + rmdir "$subdir"/* ||: + + tar cvf - "${subdir}/" | xz -c > "${subdir}.tar.xz" +} + +cleanup_zipfile +# cleanup_zipfile _Stereo -stereo diff --git a/git-rpm b/git-rpm new file mode 160000 index 0000000..a70c371 --- /dev/null +++ b/git-rpm @@ -0,0 +1 @@ +Subproject commit a70c3714c371745087f65732bb9130dc36e60765 diff --git a/goattracker.spec b/goattracker.spec new file mode 100644 index 0000000..a413e23 --- /dev/null +++ b/goattracker.spec @@ -0,0 +1,48 @@ +Name: goattracker +Version: 2.68 +Release: 0.1%{?dist} +Summary: Music editor for creating Commodore 64 music + +Group: Applications/Multimedia +License: GPLv2+ +URL: http://sourceforge.net/projects/goattracker2/ +# Original source location: +# * http://prdownloads.sourceforge.net/goattracker2/GoatTracker_%{version}.zip +# * http://prdownloads.sourceforge.net/goattracker2/GoatTracker_%{version}_Stereo.zip +# These zipfiles need to be cleaned of executables, and as that means we need +# to repackage them anyway, we can use .tar.xz for that. +# Run "./cleanup-sources.sh 2.68" for +Source0: %{name}-%{version}-cleaned-up.tar.xz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +#BuildRequires: +#Requires: + +%description + + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc + + + +%changelog -- cgit