|
|
2c5661f |
## This macro activates/deactivates debug option
|
|
|
2c5661f |
%bcond_with debug
|
|
|
2c5661f |
%global pname osd2web
|
|
|
2c5661f |
%global rname vdr-plugin-osd2web
|
|
|
2c5661f |
%global __provides_exclude_from ^%{vdr_plugindir}/.*\\.so.*$
|
|
|
2c5661f |
|
|
|
2c5661f |
Name: vdr-%{pname}
|
|
|
2c5661f |
Version: 0.2.48
|
|
|
2c5661f |
Release: 2%{?dist}
|
|
|
2c5661f |
Summary: VDR skin interface for the browser
|
|
|
2c5661f |
License: GPLv2+
|
|
|
2c5661f |
URL: https://github.com/horchi/vdr-plugin-osd2web
|
|
|
2c5661f |
Source0: https://github.com/horchi/vdr-plugin-osd2web/archive/%{version}/%{name}-%{version}.tgz
|
|
|
2c5661f |
Patch0: vdr-osd2web-makefile.patch
|
|
|
2c5661f |
Source1: %{name}.conf
|
|
|
2c5661f |
|
|
|
2c5661f |
BuildRequires: gcc-c++
|
|
|
2c5661f |
BuildRequires: vdr-devel >= 2.2.0
|
|
|
2c5661f |
BuildRequires: libwebsockets-devel
|
|
|
2c5661f |
BuildRequires: zlib-devel
|
|
|
2c5661f |
BuildRequires: tinyxml2-devel
|
|
|
2c5661f |
BuildRequires: openssl-devel
|
|
|
2c5661f |
BuildRequires: jansson-devel
|
|
|
2c5661f |
BuildRequires: libexif-devel
|
|
|
2c5661f |
BuildRequires: libuuid-devel
|
|
|
2c5661f |
Requires: vdr(abi)%{?_isa} = %{vdr_apiversion}
|
|
|
2c5661f |
|
|
|
2c5661f |
%description
|
|
|
2c5661f |
osd2web is a VDR skin interface for the browser, which displays the OSD
|
|
|
2c5661f |
and allows all interactions which are possible on the OSD.
|
|
|
2c5661f |
|
|
|
2c5661f |
%prep
|
|
|
2c5661f |
%setup -q -n %{rname}-%{version}
|
|
|
2c5661f |
%patch0 -p1
|
|
|
2c5661f |
|
|
|
2c5661f |
## Optimization flags in 'Make.config' file
|
|
|
2c5661f |
sed -i \
|
|
|
2c5661f |
-e 's|PREFIX = /usr/local|PREFIX = %{_prefix}|' \
|
|
|
2c5661f |
-e 's|CXXFLAGS += -O3|CXXFLAGS += %{optflags}|' \
|
|
|
2c5661f |
-e 's|@@OPTFLAGS | %{optflags}|' \
|
|
|
2c5661f |
Make.config
|
|
|
2c5661f |
|
|
|
2c5661f |
%if %{without debug}
|
|
|
2c5661f |
sed -i -e 's|DEBUG = 1||' Make.config
|
|
|
2c5661f |
%endif
|
|
|
2c5661f |
|
|
|
2c5661f |
%build
|
|
|
2c5661f |
%make_build
|
|
|
2c5661f |
|
|
|
2c5661f |
%install
|
|
|
2c5661f |
%make_install
|
|
|
2c5661f |
|
|
|
2c5661f |
install -Dpm 644 %{SOURCE1} \
|
|
|
2c5661f |
%{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d/%{name}.conf
|
|
|
2c5661f |
|
|
|
2c5661f |
# fix the perm due W: unstripped-binary-or-object
|
|
|
2c5661f |
chmod 0755 %{buildroot}/%{vdr_plugindir}/libvdr-*.so.%{vdr_apiversion}
|
|
|
2c5661f |
|
|
|
2c5661f |
# install executable to %%{vdr_plugindir} due E: executable-marked-as-config-file
|
|
|
2c5661f |
rm -rf %{buildroot}/%{vdr_configdir}/plugins/osd2web/startBrowser.sh
|
|
|
2c5661f |
install -Dpm 755 scripts/startBrowser.sh %{buildroot}%{vdr_plugindir}/bin/startBrowser.sh
|
|
|
2c5661f |
|
|
|
2c5661f |
%find_lang %{name}
|
|
|
2c5661f |
|
|
|
2c5661f |
%files -f %{name}.lang
|
|
|
2c5661f |
%license LICENSE COPYING
|
|
|
2c5661f |
%doc README
|
|
|
2c5661f |
%dir %{vdr_configdir}/plugins/osd2web/
|
|
|
2c5661f |
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/%{name}.conf
|
|
|
2c5661f |
%{vdr_plugindir}/libvdr-%{pname}.so.%{vdr_apiversion}
|
|
|
2c5661f |
%config(noreplace) %{vdr_configdir}/plugins/osd2web/*
|
|
|
2c5661f |
%{vdr_plugindir}/bin/startBrowser.sh
|
|
|
2c5661f |
|
|
|
2c5661f |
%changelog
|
|
|
2c5661f |
* Fri Nov 09 2018 Martin Gansser <martinkg@fedoraproject.org> - 0.2.48-2
|
|
|
2c5661f |
- Use %%{version] for SOURCE tag
|
|
|
2c5661f |
- Use %%bcond_with/without for debugging flag
|
|
|
2c5661f |
- Mark COPYING as %%license file
|
|
|
2c5661f |
- Use korrekt license GPLv2+
|
|
|
2c5661f |
- take ownership of unowned directory %%{vdr_configdir}/plugins/osd2web/
|
|
|
2c5661f |
|
|
|
2c5661f |
* Wed Nov 07 2018 Martin Gansser <martinkg@fedoraproject.org> - 0.2.48-1
|
|
|
2c5661f |
- Initial build
|