From 9b063cd591eefe7ccef429edbc05fffd935e371f Mon Sep 17 00:00:00 2001 From: Przemo Firszt Date: Sat, 13 Oct 2018 12:50:58 +0100 Subject: [PATCH] Set revision and url in nightly builds This is quick & dirty fix to a problem with revision number and date when building from the tarball. The tarballs don't have all the git info required to recognise build type and set revision/date properly, so it will be done "manually" using sed. That change doesn't affect anything except fedora rpmbuild or COPR builds. Signed-off-by: Przemo Firszt --- package/fedora/freecad.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/fedora/freecad.spec b/package/fedora/freecad.spec index 8f8dc9d0d6..8220840ed7 100644 --- a/package/fedora/freecad.spec +++ b/package/fedora/freecad.spec @@ -154,6 +154,9 @@ rm -rf build && mkdir build && cd build -DMEDFILE_INCLUDE_DIRS=%{_includedir}/med/ \ ../ +sed -i 's,FCRevision \"Unknown\",FCRevision \"%{release} (Git)\",' src/Build/Version.h +sed -i 's,FCRepositoryURL \"Unknown\",FCRepositoryURL \"git://github.com/FreeCAD/FreeCAD.git master\",' src/Build/Version.h + make %{?_smp_mflags} %install