]> git.pld-linux.org Git - packages/japa.git/commitdiff
new package
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 15 Oct 2016 10:59:41 +0000 (12:59 +0200)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 15 Oct 2016 10:59:41 +0000 (12:59 +0200)
japa.spec [new file with mode: 0644]
makefile.patch [new file with mode: 0644]

diff --git a/japa.spec b/japa.spec
new file mode 100644 (file)
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 (file)
index 0000000..c673393
--- /dev/null
@@ -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)
This page took 0.067979 seconds and 4 git commands to generate.