[packages/japa] new package

jajcus jajcus at pld-linux.org
Sat Oct 15 13:00:00 CEST 2016


commit ae67d568078e8bc6436554bf27fedd4eb3b8ebd8
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Oct 15 12:59:41 2016 +0200

    new package

 japa.spec      | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 makefile.patch | 21 +++++++++++++++++++++
 2 files changed, 76 insertions(+)
---
diff --git a/japa.spec b/japa.spec
new file mode 100644
index 0000000..9727067
--- /dev/null
+++ b/japa.spec
@@ -0,0 +1,55 @@
+#
+# Conditional build:
+%bcond_with	tests		# build with tests
+%bcond_without	tests		# build without tests
+#
+Summary:	JACK and ALSA Perceptual Analyser
+Name:		japa
+Version:	0.8.4
+Release:	1
+License:	GPL v2
+Group:		Applications
+Source0:	http://kokkinizita.linuxaudio.org/linuxaudio/downloads/%{name}-%{version}.tar.bz2
+# Source0-md5:	966a8774e5b232bf055922dfdcc1b730
+Patch0:		makefile.patch
+URL:		http://kokkinizita.linuxaudio.org/linuxaudio/index.html
+BuildRequires:	clthreads-devel
+BuildRequires:	clxclient-devel
+BuildRequires:	fftw3-single-devel
+BuildRequires:	jack-audio-connection-kit-devel
+BuildRequires:	zita-alsa-pcmi-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Japa (JACK and ALSA Perceptual Analyser), is a 'perceptual' or
+'psychoacoustic' audio spectrum analyser. In contrast to JAAA, this is
+more an acoustical or musical tool than a purely technical one.
+Possible uses include spectrum monitoring while mixing or mastering,
+evaluation of ambient noise, and (using pink noise), equalisation of
+PA systems.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+CXX="%{__cxx}" \
+CXXFLAGS="%{rpmcxxflags}" \
+CPPFLAGS="%{rpmcppflags}" \
+LDFLAGS="%{rpmldflags}" \
+%{__make} -C source
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C source install \
+	PREFIX="%{_prefix}" \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README
+%attr(755,root,root) %{_bindir}/%{name}
diff --git a/makefile.patch b/makefile.patch
new file mode 100644
index 0000000..c673393
--- /dev/null
+++ b/makefile.patch
@@ -0,0 +1,21 @@
+diff -dur japa-0.8.4.orig/source/Makefile japa-0.8.4/source/Makefile
+--- japa-0.8.4.orig/source/Makefile	2013-07-01 12:07:44.000000000 +0200
++++ japa-0.8.4/source/Makefile	2016-10-15 12:52:20.207337272 +0200
+@@ -24,15 +24,14 @@
+ LIBDIR = lib$(SUFFIX)
+ VERSION = 0.8.4
+ CPPFLAGS += -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(PREFIX)\" -I/usr/include/freetype2
+-CXXFLAGS += -O2 -Wall -MMD -MP
+-CXXFLAGS += -march=native
++CXXFLAGS += -Wall -MMD -MP
+ LDFLAGS += -L/usr/X11R6/$(LIBDIR)
+ LDLIBS += -lzita-alsa-pcmi -lclthreads -lclxclient -lpthread -lfftw3f -ljack -lasound -lpthread -lXft -lX11 -lrt
+ 
+ 
+ JAPA_O = analyser.o audio.o gobjects.o japa.o mainwin.o styles.o rngen.o
+ japa:	$(JAPA_O)
+-	g++ $(LDFLAGS) -o $@ $(JAPA_O) $(LDLIBS)
++	$(CXX) $(LDFLAGS) -o $@ $(JAPA_O) $(LDLIBS)
+ 
+ $(JAPA_O):
+ -include $(JAPA_O:%.o=%.d)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/japa.git/commitdiff/ae67d568078e8bc6436554bf27fedd4eb3b8ebd8



More information about the pld-cvs-commit mailing list