Projects
home:sagiben
kodi
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 89
View file
kodi-noX-raspberry-pi.spec
Changed
@@ -51,6 +51,8 @@ Source0: https://github.com/xbmc/xbmc/archive/%{version}-%{kodi_version}.tar.gz Source1: kodi.SuSEFirewall2 Source2: crossguid-8f399e8bd4.tar.gz +# AUTO-GENERATED using get_version.sh +Source3: kodi.VERSION Source10: kodi.service Source11: kodi-noX.service Patch1: no-xbmc-symbolic-link.patch @@ -242,6 +244,7 @@ %patch2 %patch3 + # Remove build time references so build-compare can do its work FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S') @@ -249,9 +252,8 @@ sed -i -e "s/__DATE__/\"$FAKE_BUILDDATE\"/" -e "s/__TIME__/\"$FAKE_BUILDTIME\"/" $file done -# Fix the final version string showing as "exported" -# instead of the SVN revision number. -export HAVE_GIT="no" GIT_REV="exported" +# Set the final version string +cp %{SOURCE3} VERSION # avoid long delays when powerkit isn't running sed -i \
View file
kodi-noX-raspberry-pi2.spec
Changed
@@ -51,6 +51,8 @@ Source0: https://github.com/xbmc/xbmc/archive/%{version}-%{kodi_version}.tar.gz Source1: kodi.SuSEFirewall2 Source2: crossguid-8f399e8bd4.tar.gz +# AUTO-GENERATED using get_version.sh +Source3: kodi.VERSION Source10: kodi.service Source11: kodi-noX.service Patch1: no-xbmc-symbolic-link.patch @@ -242,6 +244,7 @@ %patch2 %patch3 + # Remove build time references so build-compare can do its work FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S') @@ -249,9 +252,8 @@ sed -i -e "s/__DATE__/\"$FAKE_BUILDDATE\"/" -e "s/__TIME__/\"$FAKE_BUILDTIME\"/" $file done -# Fix the final version string showing as "exported" -# instead of the SVN revision number. -export HAVE_GIT="no" GIT_REV="exported" +# Set the final version string +cp %{SOURCE3} VERSION # avoid long delays when powerkit isn't running sed -i \
View file
kodi-noX.spec
Changed
@@ -51,6 +51,8 @@ Source0: https://github.com/xbmc/xbmc/archive/%{version}-%{kodi_version}.tar.gz Source1: kodi.SuSEFirewall2 Source2: crossguid-8f399e8bd4.tar.gz +# AUTO-GENERATED using get_version.sh +Source3: kodi.VERSION Source10: kodi.service Source11: kodi-noX.service Patch1: no-xbmc-symbolic-link.patch @@ -242,6 +244,7 @@ %patch2 %patch3 + # Remove build time references so build-compare can do its work FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S') @@ -249,9 +252,8 @@ sed -i -e "s/__DATE__/\"$FAKE_BUILDDATE\"/" -e "s/__TIME__/\"$FAKE_BUILDTIME\"/" $file done -# Fix the final version string showing as "exported" -# instead of the SVN revision number. -export HAVE_GIT="no" GIT_REV="exported" +# Set the final version string +cp %{SOURCE3} VERSION # avoid long delays when powerkit isn't running sed -i \
View file
kodi.spec
Changed
@@ -51,6 +51,8 @@ Source0: https://github.com/xbmc/xbmc/archive/%{version}-%{kodi_version}.tar.gz Source1: kodi.SuSEFirewall2 Source2: crossguid-8f399e8bd4.tar.gz +# AUTO-GENERATED using get_version.sh +Source3: kodi.VERSION Source10: kodi.service Source11: kodi-noX.service Patch1: no-xbmc-symbolic-link.patch @@ -242,6 +244,7 @@ %patch2 %patch3 + # Remove build time references so build-compare can do its work FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S') @@ -249,9 +252,8 @@ sed -i -e "s/__DATE__/\"$FAKE_BUILDDATE\"/" -e "s/__TIME__/\"$FAKE_BUILDTIME\"/" $file done -# Fix the final version string showing as "exported" -# instead of the SVN revision number. -export HAVE_GIT="no" GIT_REV="exported" +# Set the final version string +cp %{SOURCE3} VERSION # avoid long delays when powerkit isn't running sed -i \
View file
get_version.sh
Added
@@ -0,0 +1,15 @@ +#!/bin/bash + +function getJsonVal () { + python -c "import json,sys;obj=json.load(sys.stdin);print obj$1;" +} + +API_URL=https://api.github.com/repos/xbmc/xbmc/git +_sha=$(curl -s $API_URL/refs/tags/16.0-Jarvis | getJsonVal "['object']['sha']") +sha=${_sha:0:7} + +_date=$(curl -s $API_URL/commits/$_sha | getJsonVal "['committer']['date']") +date=$(date -d$_date +%Y%m%d) + +echo "$date-$sha" > kodi.VERSION +
View file
kodi.VERSION
Added
@@ -0,0 +1,1 @@ +20160220-a5f3a99
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.