commit b3fbcdb9cae2f1c51ac357630feb7e9043b71956
Author: dcrdev <development-K9RvgheM1OmXW9pm(a)dcrdev.com>
Date: Tue May 1 17:39:29 2018 +0100
Initial RPM Release
kodi-visualization-spectrum.spec | 53 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
---
diff --git a/kodi-visualization-spectrum.spec b/kodi-visualization-spectrum.spec
new file mode 100644
index 0000000..1fc69ae
--- /dev/null
+++ b/kodi-visualization-spectrum.spec
@@ -0,0 +1,53 @@
+%global aname visualization.spectrum
+%global kodi_version 17.0
+
+Name: kodi-visualization-spectrum
+Version: 1.1.4
+Release: 1%{?dist}
+Summary: Spectrum visualizer for Kodi
+Group: Applications/Multimedia
+License: GPLv2+
+URL:
https://github.com/xbmc/visualization.spectrum
+Source0:
https://github.com/xbmc/%{aname}/archive/v%{version}/%{aname}-%{version}....
+
+BuildRequires: cmake
+BuildRequires: gcc-c++
+BuildRequires: mesa-libGL-devel
+BuildRequires: mesa-libGLES-devel
+BuildRequires: mesa-libEGL-devel
+BuildRequires: kodi-devel >= %{kodi_version}
+
+Requires: kodi >= %{kodi_version}
+
+ExclusiveArch: i686 x86_64
+
+%description
+%{summary}.
+
+%prep
+%setup -q -n %{aname}-%{version}
+
+# Fix spurious-executable-perm on debug package
+find . -name '*.h' -or -name '*.cpp' | xargs chmod a-x
+
+# Patch incorrect fsf address
+sed -i "s|59 Temple Place - Suite 330, Boston, MA 02111-1307|51 Franklin Street,
Fifth Floor, Boston, MA 02110-1335|" src/opengl_spectrum.cpp
+
+%build
+%cmake .
+%make_build
+
+%install
+%make_install
+
+# Fix permissions at installation
+find $RPM_BUILD_ROOT%{_datadir}/kodi/addons/ -type f -exec chmod 0644 {} \;
+
+%files
+%license COPYING
+%{_libdir}/kodi/addons/%{aname}/
+%{_datadir}/kodi/addons/%{aname}/
+
+%changelog
+* Mon Apr 30 2018 Dominic Robinson <github(a)dcrdev.com> - 1.1.4-1
+- Initial RPM Release