File x42-plugins.spec of Package x42-plugins

# norootforbuild

%define _prefix	/usr

Name:			x42-plugins
Summary:		A set of audio and MIDI plugins
Version:		20150702
Release:		1
Group:			Productivity/Multimedia/Sound/Utilities
License:		GPL-2.0+
URL:			https://github.com/x42/x42-plugins
Source:			%{name}-%{version}.tar.xz
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
#
%if %{defined fedora}
BuildRequires:  jack-audio-connection-kit-devel
BuildRequires:	pixman-devel
BuildRequires:	libGLU-devel
BuildRequires:	gnu-free-sans-fonts
%else
BuildRequires:	libjack-devel
BuildRequires:	libpixman-1-0-devel
%endif
BuildRequires:	gcc-c++
BuildRequires:	pkg-config
BuildRequires:	ftgl-devel
BuildRequires:	gtk2-devel
BuildRequires:	glib2-devel
BuildRequires:	lv2-devel >= 1.4.0
BuildRequires:	zita-convolver-devel
BuildRequires:	libsndfile-devel
BuildRequires:	libsamplerate-devel
BuildRequires:	fftw3-devel
BuildRequires:	cairo-devel
BuildRequires:	libltc-devel

%if %{defined fedora}
Requires:       jack-audio-connection-kit
%else
Requires:	    jack
%endif

%description
This is a collection of LV2 plugins, and currently consists of:

        balance.lv2       - Stereo Balance Control
        convoLV2          - a LV2 convolution plugin
        fil4.lv2          - a 4 Band Parametric with additional High/Low shelfs and Hi/Lo Pass and graphical display
        meters.lv2        - a collection of LV2 plugins for audio-level metering
        midifilter.lv2    - a collection of MIDI filters in LV2 plugin format
        mixtri.lv2        - a matrix mixer and trigger processor intended to be used with sisco.lv2
        nodelay.lv2       - an audio delay line with latency reporting -- LV2 test & instrumentation tool
        onsettrigger.lv2  - an audio to midi converter currently intended for Bass/Kick-drums
        sisco.lv2         - a simple audio oscilloscope with variable time scale
        tuna.lv2          - a musical instrument tuner with strobe characteristics
        xfade.lv2         - a stereo DJ X-fade plugin

AUTHOR: Robin Gareus

%prep
%setup -q -n %{name}-%{version}

%build
CFLAGS="$RPM_OPT_FLAGS" \
CPPFLAGS="$RPM_OPT_FLAGS" \
CXXFLAGS="$RPM_OPT_FLAGS" \
	make %{?jobs:-j%{jobs}} pkglibdir=%{_libdir}/%{name} FONTFILE=/usr/share/fonts/gnu-free/FreeSansBold.ttf

%install
#export FONTFILE=/usr/share/fonts/truetype/DroidSans.ttf
make PREFIX=%_prefix DESTDIR=%{buildroot} install

%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%_prefix/bin/*
%_datadir/man/man1/*
%dir %_prefix/lib/lv2
%_prefix/lib/lv2/*