cccd514
%global aud_plugin_api %(grep '[ ]*#define[ ]*_AUD_PLUGIN_VERSION[ ]\\+' %{_includedir}/libaudcore/plugin.h 2>/dev/null | sed 's!.*_AUD_PLUGIN_VERSION[ ]*\\([0-9]\\+\\).*!\\1!')
342ce7d
%if 0%{aud_plugin_api} > 0
eb08c68
%global aud_plugin_dep Requires: audacious(plugin-api)%{?_isa} = %{aud_plugin_api}
e1a9079
%endif
342ce7d
%{?aud_plugin_dep}
3c287b2
8d68e85
%global plugindir %(pkg-config audacious --variable=plugin_dir 2>/dev/null)
fe4d619
fe4d619
Summary: Future Composer input plugin for Audacious
fe4d619
Name: audacious-plugin-fc
cccd514
Version: 0.8.3.6
5e2f052
Release: 0.16%{?dist}
e1a9079
Provides: audacious-plugins-fc = %{version}-%{release}
fe4d619
URL: http://xmms-fc.sourceforge.net/
69c0174
License: GPLv2+
cccd514
Source0: http://downloads.sourceforge.net/xmms-fc/audacious-plugin-fc-%{version}.tar.gz
8a88bc9
67d6e2e
Patch0: audacious-plugin-fc-API-48.patch
67d6e2e
67d6e2e
BuildRequires: pkgconfig(audacious) >= 3.8
5448a2a
BuildRequires: libfc14audiodecoder-devel
fe4d619
BuildRequires: pkgconfig
92631be
BuildRequires: libtool automake gcc-c++
a47267b
f62900f
# for /usr/bin/appstream-util
f62900f
BuildRequires: libappstream-glib
215aa57
BuildRequires: make
f62900f
a47267b
fe4d619
%description
fe4d619
This is an input plugin for Audacious which can play back Future Composer
fe4d619
music files from AMIGA. Song-length detection and seek are implemented, too.
fe4d619
fe4d619
fe4d619
%prep
342ce7d
# Enforce availability of the audacious(plugin-api) dependency.
342ce7d
%{!?aud_plugin_dep:echo 'No audacious(plugin-api) dependency!' && exit -1}
342ce7d
a66bde3
# just a guard
a66bde3
pkg-config --print-variables audacious | grep ^plugin_dir
a66bde3
fe4d619
%setup -q
67d6e2e
%patch0 -p1 -b .API-change
104c19f
fe4d619
fe4d619
%build
fe4d619
%configure
fe4d619
make %{?_smp_mflags}
fe4d619
fe4d619
fe4d619
%install
4cf744a
make DESTDIR=${RPM_BUILD_ROOT} install
f62900f
appstream-util validate-relax --nonet ${RPM_BUILD_ROOT}%{_datadir}/appdata/*.xml
fe4d619
fe4d619
fe4d619
%files
92631be
%license COPYING
92631be
%doc README
8d68e85
%{plugindir}/Input/fcdecoder.so
8d68e85
%exclude %{plugindir}/Input/fcdecoder.la
fc876d4
%{_datadir}/appdata/*.xml
fe4d619
fe4d619
fe4d619
%changelog
5e2f052
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3.6-0.16
5e2f052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5e2f052
35ea350
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3.6-0.15
35ea350
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
35ea350
3084e9c
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3.6-0.14
3084e9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3084e9c
3e0eca2
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3.6-0.13
3e0eca2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3e0eca2
92631be
* Tue Jul 17 2018 Michael Schwendt <mschwendt@fedoraproject.org> - 0.8.3.6-0.12
92631be
- use %%license macro
92631be
- add BuildRequires gcc-c++
92631be
b5bc89f
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3.6-0.12
b5bc89f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b5bc89f
85d303f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3.6-0.11
85d303f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
85d303f
25a99af
* Sun Sep  3 2017 Michael Schwendt <mschwendt@fedoraproject.org> - 0.8.3.6-0.10
25a99af
- Rebuild for libaudcore SONAME bump.
25a99af
65b81fb
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3.6-0.9
65b81fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
65b81fb
a6100b0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3.6-0.8
a6100b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a6100b0
e38134a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3.6-0.7
e38134a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e38134a
67d6e2e
* Thu Sep 22 2016 Michael Schwendt <mschwendt@fedoraproject.org> - 0.8.3.6-0.6
67d6e2e
- Patch for Audacious plugin API 48.
67d6e2e
49a79c5
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3.6-0.5
49a79c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
49a79c5
c08f8b1
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3.6-0.4
c08f8b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c08f8b1
6ceb624
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.8.3.6-0.3
6ceb624
- Rebuilt for GCC 5 C++11 ABI change
6ceb624
f62900f
* Wed Mar  4 2015 Michael Schwendt <mschwendt@fedoraproject.org> - 0.8.3.6-0.2
f62900f
- Following Fedora Packaging:AppData guidelines and validate the appdata
f62900f
  file in %%install. No (re)build just for this change.
f62900f
cccd514
* Thu Dec 11 2014 Michael Schwendt <mschwendt@fedoraproject.org> - 0.8.3.6-0.1
cccd514
- Use pkgconfig notation in BuildRequires.
cccd514
- Preliminary upgrade to the Audacious 3.6-alpha1 API 46 port.
cccd514
bcf4095
* Wed Dec 10 2014 Michael Schwendt <mschwendt@fedoraproject.org> - 0.7.3.5-1
bcf4095
- Update to 0.7.3.5 release tarball for Audacious 3.5.x.
bcf4095
9969b89
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-8
9969b89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9969b89
fc876d4
* Thu Jun 12 2014 Michael Schwendt <mschwendt@fedoraproject.org> - 0.7-7
fc876d4
- Install plugin appdata metainfo file.
fc876d4
eaa5e9e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-6
eaa5e9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
eaa5e9e
a66bde3
* Sun Apr 27 2014 Michael Schwendt <mschwendt@fedoraproject.org>
a66bde3
- Add a guard for pkg-config based plugin_dir in %%prep
a66bde3
8d68e85
* Sat Mar  1 2014 Michael Schwendt <mschwendt@fedoraproject.org> - 0.7-5
8d68e85
- Run autoreconf -fi to prevent build failure with Rawhide.
8d68e85
8d68e85
* Fri Feb 28 2014 Michael Schwendt <mschwendt@fedoraproject.org> - 0.7-4
8d68e85
- Update aud_plugin_api global to examine api.h header.
8d68e85
8d68e85
* Tue Sep 24 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 0.7-3
8d68e85
- Port to Audacious 3.5 Plugin API version 45.
8d68e85
2259e83
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2
2259e83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2259e83
8a88bc9
* Sat Feb 16 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 0.7-1
8a88bc9
- Update to 0.7.
8a88bc9
b360a40
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-20
b360a40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b360a40
2e5246e
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-19
2e5246e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2e5246e
9b8c080
* Mon Jun 18 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-18
9b8c080
- Rebuild for Audacious 3.3-alpha1 generic plugin API/ABI bump.
9b8c080
- Patch for Audacious 3.3-alpha1 API changes.
9b8c080
77824f5
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-17
77824f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
77824f5
d7490b2
* Mon Jan  2 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-16
d7490b2
- Rebuild for Audacious 3.2-beta1 generic plugin API/ABI bump.
d7490b2
- Patch for Audacious 3.2-beta1 glib/gtk related header changes.
d7490b2
e85da67
* Fri Dec 23 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-15
e85da67
- Rebuild for Audacious 3.2-alpha1 generic plugin API/ABI bump.
e85da67
- Patch for Audacious 3.2-alpha1 API changes.
e85da67
6275b0f
* Wed Oct 26 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-14
6275b0f
- Rebuild for Audacious 3.1-beta3 generic plugin API/ABI bump.
6275b0f
8bebb7b
* Fri Oct 14 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-13
8bebb7b
- Set config defaults, which helps with cleaning up the config file.
8bebb7b
- Include missing misc.h for the config database API.
3a3a3bf
- Port to Audacious 3.1 Preferences API.
3a3a3bf
- Rebuild for Audacious 3.1-beta1 generic plugin API/ABI bump.
3a3a3bf
4cf744a
* Fri Sep 16 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-10
eb08c68
- Depend on audacious(plugin-api)%%{?_isa}.
4cf744a
- Drop %%defattr line.
4cf744a
98ff87f
* Wed Jul  6 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-9
98ff87f
- Add missing preferences widget config types.
98ff87f
4c324ba
* Mon Jul  4 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-8
4c324ba
- Rebuild for Audacious 3.0-beta1 generic plugin API/ABI bump.
4c324ba
ccd268f
* Wed Jun 15 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-7
ccd268f
- Patch for Audacious 3.0-alpha1 GUI API.
ccd268f
3c287b2
* Wed Feb 23 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-6
3c287b2
- Update the audacious(plugin-api) stuff in the spec file, so the new
3c287b2
  _AUD_PLUGIN_VERSION_MIN is not taken by mistake.
3c287b2
- Merge from 0.6-3.0.1:
3c287b2
- Patch and rebuild for Audacious 2.5-alpha1 generic plugin API bump.
3c287b2
e9744d3
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-5
e9744d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e9744d3
342ce7d
* Fri Feb  4 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-4
342ce7d
- No build: wait for mass-rebuild in Rawhide.
342ce7d
- Enhance the audacious(plugin-api) stuff in the spec file.
342ce7d
4b1cdf0
* Thu Jan 27 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-3
4b1cdf0
- Require specific audacious(plugin-api) capability.
4b1cdf0
8dcefc1
* Thu Dec  9 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-2
0038216
- Rebuild for Audacious 2.4.2 generic plugin API/ABI bump.
8dcefc1
e9419e4
* Sun Aug 22 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6-1
e9419e4
- Update to 0.6 (merged API patches).
e9419e4
635061b
* Fri Jul 23 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 0.5.1-4
635061b
- Larger patch, also to remove deprecated API usage.
635061b
761fa69
* Wed Jul 21 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 0.5.1-3
3d0160d
- Patch and rebuild for Audacious 2.4 beta1 generic plugin API/ABI bump.
761fa69
5b977a3
* Thu Jul 15 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 0.5.1-2
5b977a3
- Rebuild for Audacious 2.4 alpha3 generic plugin API/ABI bump.
5b977a3
7ff095c
* Sun Jul 11 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 0.5.1-1
7ff095c
- Update to 0.5.1 (should fix big-endian platforms).
7ff095c
1ebe30c
* Sat Jul 10 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 0.5-2
1ebe30c
- Display "4 channels".
1ebe30c
7d6dbe8
* Sun Jun 20 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 0.5-1
7d6dbe8
- Upgrade to 0.5 for libfc14audiodecoder.
7d6dbe8
12f7f6e
* Sat Jun 12 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4-4
12f7f6e
- Patch for Audacious 2.4 API changes.
12f7f6e
85d6f63
* Sun Jan 17 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4-3
85d6f63
- Rebuild for audacious.pc --libs changes.
85d6f63
e9ec24e
* Sat Oct 24 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4-2
e9ec24e
- Set empty/unknown initial songtime instead of 0:00.
e9ec24e
ce204fb
* Fri Oct 23 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4-1
ce204fb
- Upgrade to 0.4 for Audacious 2.2 InputPlugin API changes.
ce204fb
a556edb
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-5
a556edb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a556edb
c0da2f2
* Sun Jun  7 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 0.3-4
c0da2f2
- Patch for Audacious 2.
c0da2f2
5cd39e9
* Fri Jun  5 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 0.3-3
5cd39e9
- Rebuild for libmowgli SONAME dependency.
5cd39e9
- Add audacious-plugins-fc Provides.
5cd39e9
bd26a6c
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
bd26a6c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bd26a6c
eedbead
* Thu Oct 16 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.3-1
eedbead
- Update to 0.3 for Audacious >= 1.4.0.
eedbead
8ecbca5
* Fri Aug 29 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.2-7
8ecbca5
- in %%build add work-around for #454364 (libSAD API headers are broken)
8ecbca5
cc75047
* Fri Feb 08 2008 Michael Schwendt <mschwendt@fedoraproject.org>
cc75047
- rebuilt for GCC 4.3 as requested by Fedora Release Engineering
cc75047
2927dc7
* Wed Nov 21 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 0.2-5
104c19f
- patch for new API
90c0a9b
- rebuilt for SONAME changes in Audacious 1.4.x
90c0a9b
2927dc7
* Tue Aug 21 2007 Michael Schwendt <mschwendt@fedoraproject.org>
e4ddfdf
- rebuilt
e4ddfdf
2927dc7
* Thu Aug  2 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 0.2-2
69c0174
- clarify licence (GPLv2+)
69c0174
2927dc7
* Thu Mar  8 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 0.2-1
fe4d619
- Upstream update to 0.2 for Audacious >= 1.3.0.
fe4d619
2927dc7
* Thu Jan 18 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 0.1-2
fe4d619
- Initial package submission for Fedora Package Review (#222648).