Blob Blame Raw
%global prerelease 20190820

Name:           lv2-x42-plugins
Version:        0.12.0
Release:        0.1.%{prerelease}%{?dist}
Summary:        A number of LV2 plugins

# files in balance.lv2/pugl are ISC, the rest are GPLv2+
License:        GPLv2+ and ISC
URL:            https://github.com/x42/x42-plugins
# A tarball is now provided at http://gareus.org/misc/x42-plugins.php
Source0:        http://gareus.org/misc/x42-plugins/x42-plugins-%{prerelease}.tar.xz
Source1:        README.md

BuildRequires:  gcc-c++
BuildRequires:  lv2-devel >= 1.8.1
BuildRequires:  zita-convolver-devel >= 3.1.0
BuildRequires:  jack-audio-connection-kit-devel
BuildRequires:  libltc-devel
BuildRequires:  libsndfile-devel
BuildRequires:  libsamplerate-devel
BuildRequires:  fftw3-devel
BuildRequires:  gtk2-devel
BuildRequires:  pango-devel
BuildRequires:  cairo-devel
BuildRequires:  glib2-devel
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(ftgl)
BuildRequires:  ftgl-devel
BuildRequires:  gnu-free-sans-fonts
BuildRequires:  gnu-free-serif-fonts
BuildRequires:  gnu-free-mono-fonts
BuildRequires:  mesa-libEGL-devel
Requires:       lv2 >= 1.8.1
Requires:       gnu-free-sans-fonts
Requires:       gnu-free-serif-fonts
Requires:       gnu-free-mono-fonts

%description
A number of lv2 plugins including stereo balance, midi filter, delay,
convolver, fader, parametric equalizer, auto-tune.

%prep
%setup -q -n x42-plugins-%{prerelease}
cp -p %{SOURCE1} .

%build
flags=" -ffast-math -fno-finite-math-only"

%ifarch %{ix86}
flags+=" -msse -mfpmath=sse"
%endif

%ifarch x86_64
flags+=" -msse2 -mfpmath=sse"
%endif

%set_build_flags
export FONTFILE="/usr/share/fonts/gnu-free/FreeSansBold.ttf"
export STRIP=/bin/true
export PKG_CONFIG=pkgconf
export OPTIMIZATIONS="%{optflags} ${flags}"
%make_build LIBDIR=%{_libdir} LV2DIR=%{_libdir}/lv2 PREFIX=%{_prefix}

%install
%{make_install} LIBDIR=%{_libdir} LV2DIR=%{_libdir}/lv2 PREFIX=%{_prefix}

%files
# all plugins share the same license
%license balance.lv2/COPYING
%doc plugin.versions plugin.list README.md
%{_libdir}/lv2/*.lv2
%{_bindir}/x42*
%{_mandir}/man1/x42*

%changelog
* Mon Sep 09 2019 Guido Aulisi <guido.aulisi@gmail.com> - 0.12.0-0.1.20190714
- Update to 20190820

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-0.2.20190714
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Wed Jul 17 2019 Guido Aulisi <guido.aulisi@gmail.com> - 0.11.0-0.1.20190714
- Update to 20190714

* Mon Jun 24 2019 Guido Aulisi <guido.aulisi@gmail.com> - 0.10.0-0.2.20190507
- Rebuilt for zita-convolver upgrade

* Mon Jun 03 2019 Guido Aulisi <guido.aulisi@gmail.com> - 0.10.0-0.1.20190507
- Update to 20190507

* Tue Apr 30 2019 Guido Aulisi <guido.aulisi@gmail.com> - 0.9.0-0.1.20190413
- Update to 20190413
- Minor spec cleanup

* Sun Feb 03 2019 Guido Aulisi <guido.aulisi@gmail.com> - 0.8.0-0.3.20190124
- Fix FTBFS due to undefined reference to symbol g_object_unref

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-0.2.20190124
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Wed Jan 30 2019 Guido Aulisi <guido.aulisi@gmail.com> - 0.8.0-0.1.20190124
- Update to 20190124

* Mon Jan 21 2019 Guido Aulisi <guido.aulisi@gmail.com> - 0.7.0-0.1.20190105
- Update to 20190105

* Sat Nov 17 2018 Guido Aulisi <guido.aulisi@gmail.com> - 0.6.0-0.1.20181103
- Update to 20181103

* Tue Aug 07 2018 Guido Aulisi <guido.aulisi@gmail.com> - 0.5.0-0.1.20180803
- Update to 20180803
- New dpl plugin

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-0.2.20180320
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Apr 04 2018 Guido Aulisi <guido.aulisi@gmail.com> - 0.4.0-0.1.20180320
- Update to 20180320

* Tue Feb 13 2018 Guido Aulisi <guido.aulisi@gmail.com> - 0.3.0-0.5.20170428
- Fix FTBS with glibc 2.27 and gcc 8

* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-0.4.20170428
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-0.3.20170428
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-0.2.20170428
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Jul 14 2017 Guido Aulisi <guido.aulisi@gmail.com> - 0.3.0-0.1.20170428
- Update to 20170428
- New plugins
- Use hardened LDFLAGS
- Remove deprecated Group tag
- Use license macro

* Thu Feb 16 2017 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.2.0-0.4.20150608git3e40bc9
- Added BR: libltc-devel jack-audio-connection-kit-devel
- Do not strip binaries

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-0.3.20150608git3e40bc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-0.2.20150608git3e40bc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Mon Jul 13 2015 Brendan Jones <brendan.jones.it@gmail.com> 0.2.0-0.1.20150608git3e40bc9
- Update to 20150608 

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-0.7.20131005git7db99d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.1.1-0.6.20131005git7db99d5
- Rebuilt for GCC 5 C++11 ABI change

* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-0.5.20131005git7db99d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-0.4.20131005git7db99d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sun Oct 06 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.1.1-0.3.20131005git7db99d5
- Specify font and UI BR's

* Sat Oct 05 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.1.1-0.2.20131005git7db99d5
- New upstream commit, adds meters.lv2

* Sat Sep 14 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.1.1-0.1.20130615git7153e34
- Correct prelease release syntax
- Correct FSF address
- Use %%make_install macro

* Mon Sep 02 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.0.1-1
- Initial build