2016-12-11, 17:12
If you know about SPEC file you could use the following to build the rpm for your fedora:
file "pvr.mythtv.spec"
Edit: seems the tag is overrided => replace commit:037... with the corresponding value
file "pvr.mythtv.spec"
Code:
%define pvr_version 4.11.2
%define serial 1
%define tag 037453f5514a67786614b73b3cbd5b82efe4a17f
Name: pvr.mythtv
Version: %pvr_version
Release: %serial
Summary: MythTV PVR for Kodi
Group: Applications/Multimedia
License: GPLv2
URL: https://github.com/janbar/pvr.mythtv
Packager: janbar <[email protected]>
BuildRequires: gcc-c++
BuildRequires: glibc-devel
BuildRequires: cmake >= 2.8.12
BuildRequires: git
Requires: glibc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
MythTV PVR addon for Kodi
%prep
rm -rf pvr.mythtv
git clone --depth=1 --branch krypton https://github.com/janbar/pvr.mythtv.git pvr.mythtv
cd pvr.mythtv
git checkout %{tag}
%build
#export CFLAGS="$RPM_OPT_FLAGS"
#export CXXFLAGS="$RPM_OPT_FLAGS"
pushd pvr.mythtv
%cmake
make %{?_smp_mflags}
popd
%install
pushd pvr.mythtv/build
make install DESTDIR=%{buildroot}
popd
%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/kodi
%{_prefix}/share/kodi
%changelog
* Sat Dec 11 2016 janbar <[email protected]> - 4.11.2-1
- New release for Kodi Krypton
Edit: seems the tag is overrided => replace commit:037... with the corresponding value