Merge pull request #4430 from bmiklautz/rpmversion

pkg rpm: add support for .source_version in freerdp-nightly
This commit is contained in:
Bernhard Miklautz 2018-02-13 17:50:10 +01:00 committed by GitHub
commit e88d1e9444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -25,6 +25,7 @@ Url: http://www.freerdp.com
Group: Productivity/Networking/Other
Source0: %{name}-%{version}.tar.bz2
#Source1: %{name}-rpmlintrc
Source1: source_version
BuildRequires: gcc-c++
BuildRequires: cmake >= 2.8.12
BuildRequires: libxkbfile-devel
@ -102,8 +103,11 @@ based on freerdp and winpr.
%prep
%setup -q
cd %{_topdir}/BUILD
cp %{_topdir}/SOURCES/source_version freerdp-nightly-%{version}/.source_version
%build
%cmake -DCMAKE_SKIP_RPATH=FALSE \
-DCMAKE_SKIP_INSTALL_RPATH=FALSE \
-DWITH_PULSE=ON \

View File

@ -0,0 +1,3 @@
#!/bin/bash
git rev-parse --short HEAD > source_version