commit 4d038f9eed0e47f2be4b3627e24d2bc19f5d41aa Author: Jacek Konieczny <jaj...@jajcus.net> Date: Sat Oct 15 12:27:55 2016 +0200
new package jaaa.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ makefile.patch | 21 +++++++++++++++++++++ 2 files changed, 70 insertions(+) --- diff --git a/jaaa.spec b/jaaa.spec new file mode 100644 index 0000000..835699d --- /dev/null +++ b/jaaa.spec @@ -0,0 +1,49 @@ +# +# Conditional build: +%bcond_with tests # build with tests +%bcond_without tests # build without tests +# +Summary: JACK and ALSA Audio Analyser +Name: jaaa +Version: 0.8.4 +Release: 1 +License: GPL v2 +Group: Applications +Source0: http://kokkinizita.linuxaudio.org/linuxaudio/downloads/%{name}-%{version}.tar.bz2 +# Source0-md5: 2eed043d641788541c15929183ef277f +Patch0: makefile.patch +URL: http://kokkinizita.linuxaudio.org/linuxaudio/index.html +BuildRequires: clthreads-devel +BuildRequires: clxclient-devel +BuildRequires: fftw3-single-devel +BuildRequires: zita-alsa-pcmi-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Jaaa (JACK and ALSA Audio Analyser, is an audio signal generator and +spectrum analyser designed to make accurate measurements. + +%prep +%setup -q +%patch0 -p1 + +%build +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..0affbf8 --- /dev/null +++ b/makefile.patch @@ -0,0 +1,21 @@ +diff -dur jaaa-0.8.4.orig/source/Makefile jaaa-0.8.4/source/Makefile +--- jaaa-0.8.4.orig/source/Makefile 2013-07-01 12:07:41.000000000 +0200 ++++ jaaa-0.8.4/source/Makefile 2016-10-15 12:26:24.284245116 +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 + + + JAAA_O = jaaa.o styles.o spectwin.o audio.o rngen.o + jaaa: $(JAAA_O) +- g++ $(LDFLAGS) -o $@ $(JAAA_O) $(LDLIBS) ++ $(CXX) $(LDFLAGS) -o $@ $(JAAA_O) $(LDLIBS) + + $(JAAA_O): + -include $(JAAA_O:%.o=%.d) ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/jaaa.git/commitdiff/4d038f9eed0e47f2be4b3627e24d2bc19f5d41aa _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit