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 <przemo@firszt.eu>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user