packages: tk707/tk707-build.patch (NEW), tk707/tk707.desktop (NEW), tk707/t...

baggins baggins at pld-linux.org
Mon Apr 18 23:19:54 CEST 2011


Author: baggins                      Date: Mon Apr 18 21:19:54 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial revision

---- Files affected:
packages/tk707:
   tk707-build.patch (NONE -> 1.1)  (NEW), tk707.desktop (NONE -> 1.1)  (NEW), tk707.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/tk707/tk707-build.patch
diff -u /dev/null packages/tk707/tk707-build.patch:1.1
--- /dev/null	Mon Apr 18 23:19:54 2011
+++ packages/tk707/tk707-build.patch	Mon Apr 18 23:19:48 2011
@@ -0,0 +1,51 @@
+--- tk707-0.8/Makefile.am~	2004-11-03 12:51:26.000000000 +0100
++++ tk707-0.8/Makefile.am	2011-04-18 22:55:44.769675336 +0200
+@@ -151,11 +151,11 @@
+ $(srcdir)/ports.c: ports.tcl tcl2c
+ 	./tcl2c tcl_ports < $(srcdir)/ports.tcl > $(srcdir)/ports.c
+ $(srcdir)/defs.c: defs.tcl tcl2c
+-	sed -e 's%set VERSION.*%set VERSION $(VERSION)%' < $(srcdir)/defs.tcl | ./tcl2c tcl_defs > $(srcdir)/defs.c
++	sed -e 's%set VERSION[^\\]*\\%set VERSION $(VERSION)\\%' < $(srcdir)/defs.tcl | ./tcl2c tcl_defs > $(srcdir)/defs.c
+ $(srcdir)/playa.c: play.c
+ 	sed '1,8s%^$$%#define not_compile_tcl%' $(srcdir)/play.c > $(srcdir)/playa.c
+ $(srcdir)/defsa.c: defs.c
+-	sed 's%set PKGDATADIR.*%set PKGDATADIR $(pkgdatadir)%' $(srcdir)/defs.c > $(srcdir)/defsa.c
++	sed 's%set PKGDATADIR[^\\]*\\%set PKGDATADIR $(pkgdatadir)\\%' $(srcdir)/defs.c > $(srcdir)/defsa.c
+ $(srcdir)/title.c: title.tcl tcl2c
+ 	./tcl2c tcl_title < $(srcdir)/title.tcl > $(srcdir)/title.c
+ $(srcdir)/title_defs.c: title_defs.tcl tcl2c
+@@ -189,8 +189,9 @@
+ 
+ install-exec-local: tk707bin tk707.sh
+ 	$(mkinstalldirs) $(DESTDIR)$(bindir)
+-	sh $(srcdir)/install-sh -s -c tk707bin $(DESTDIR)$(bindir)/tk707bin
+ 	$(INSTALL_SCRIPT) tk707.sh $(DESTDIR)$(bindir)/tk707
++	$(mkinstalldirs) $(DESTDIR)$(libdir)/tk707
++	sh $(srcdir)/install-sh -s -c tk707bin $(DESTDIR)$(libdir)/tk707/tk707bin
+ 
+ uninstall-local:
+ 	/bin/rm -f $(DESTDIR)$(bindir)/tk707
+--- tk707-0.8/defs.c~	2011-04-18 22:52:49.069675335 +0200
++++ tk707-0.8/defs.c	2011-04-18 22:52:51.782675337 +0200
+@@ -1,4 +1,4 @@
+-"char tcl_defs[] = ""
++char tcl_defs[] = ""
+ "#\n"
+ "#    This file is part of tk707.\n"
+ "#\n"
+--- tk707-0.8/tk707.sh.in~	2004-11-03 12:17:28.000000000 +0100
++++ tk707-0.8/tk707.sh.in	2011-04-18 22:57:07.318675335 +0200
+@@ -2,11 +2,10 @@
+ args=""
+ for x in $*; do
+     case $x in
+-    -h|-help) args="$args --help";; # tcl/tk catch these options...
++    -h|-help) args="$args --help";; # tcl/tk catches these options...
+     *)        args="$args $x";;
+   esac
+ done
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+-echo | @bindir@/tk707bin $args
+-
++echo | @libdir@/tk707/tk707bin $args

================================================================
Index: packages/tk707/tk707.desktop
diff -u /dev/null packages/tk707/tk707.desktop:1.1
--- /dev/null	Mon Apr 18 23:19:54 2011
+++ packages/tk707/tk707.desktop	Mon Apr 18 23:19:49 2011
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=TK-707
+Comment=Drum sequencer for a sound card or MIDI device
+Exec=tk707
+Icon=tk707
+Categories=AudioVideo;X-Jack;Midi;X-MIDI;
+Terminal=false
+Type=Application

================================================================
Index: packages/tk707/tk707.spec
diff -u /dev/null packages/tk707/tk707.spec:1.1
--- /dev/null	Mon Apr 18 23:19:54 2011
+++ packages/tk707/tk707.spec	Mon Apr 18 23:19:49 2011
@@ -0,0 +1,92 @@
+# $Revision$, $Date$
+Summary:	Drum sequencer for a sound card or MIDI device
+#Summary(pl.UTF-8):	-
+Name:		tk707
+Version:	0.8
+Release:	0.1
+License:	GPL v2
+Group:		Applications/Multimedia
+Source0:	http://www-ljk.imag.fr/membres/Pierre.Saramito/tk707/download/%{name}-%{version}.tar.gz
+# Source0-md5:	7471494195c053f048862c292320d06c
+Source1:	%{name}.desktop
+Patch0:		%{name}-build.patch
+URL:		http://www-ljk.imag.fr/membres/Pierre.Saramito/tk707/
+BuildRequires:	alsa-lib-devel
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	flex
+BuildRequires:	tcl-devel
+BuildRequires:	texi2html
+BuildRequires:	texinfo-texi2dvi
+BuildRequires:	texlive-format-pdflatex
+BuildRequires:	tk-devel
+BuildRequires:	transfig
+BuildRequires:	xorg-lib-libICE-devel
+BuildRequires:	xorg-lib-libX11-devel
+Suggests:	TiMidity++
+Suggests:	TiMidity++-alsaseq
+Suggests:	lame
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This program emulates the operation of Roland's TR-707 Rhythm
+Composer.
+
+The output is to a MIDI device, sound card or file.
+A Latin-percussion instrument map emulates the Roland TR-727 and
+the instrument map can be customized by the user. If you do not
+have a MIDI sound card, you should install the timidity package
+to emulate one.
+
+#%description -l pl.UTF-8
+
+%prep
+%setup -q
+%{__sed} -i -e 's|\\$|"|g' -e 's|^|"|g' defs.c
+%patch0 -p1
+
+%build
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+
+%configure \
+	LAME=/usr/bin/lame \
+	TIMIDITY=/usr/bin/timidity \
+	MIDIDUMP=/usr/bin/mididump
+
+%{__make}
+%{__make} tk707.pdf
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_desktopdir}
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS BUGS ChangeLog INSTALL NEWS README TODO tk707.html tk707.pdf
+%attr(755,root,root) %{_bindir}/tk707
+%dir %{_libdir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/tk707bin
+%{_datadir}/%{name}
+%{_infodir}/tk707.info*
+%{_mandir}/man1/tk707.1*
+%{_desktopdir}/%{name}.desktop
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/04/18 21:19:49  baggins
+- initial revision
+
================================================================


More information about the pld-cvs-commit mailing list