diff --git a/packaging/rpm/freerdp-nightly.spec b/packaging/rpm/freerdp-nightly.spec index 3b0c49abc..bda050f1f 100644 --- a/packaging/rpm/freerdp-nightly.spec +++ b/packaging/rpm/freerdp-nightly.spec @@ -214,16 +214,13 @@ export NO_BRP_CHECK_RPATH true %dir %{INSTALL_PREFIX}/share/man/man1 %dir %{INSTALL_PREFIX}/share/man/man7 %dir %{INSTALL_PREFIX}/share/FreeRDP/FreeRDP3 -%dir %{INSTALL_PREFIX}/share/FreeRDP/FreeRDP3/fonts -%dir %{INSTALL_PREFIX}/share/FreeRDP/FreeRDP3/images %dir %{INSTALL_PREFIX}/%{_lib}/freerdp3/proxy/ %{INSTALL_PREFIX}/%{_lib}/*.so.* %{INSTALL_PREFIX}/%{_lib}/freerdp3/proxy/*.so %{INSTALL_PREFIX}/bin/* %{INSTALL_PREFIX}/share/man/man1/* %{INSTALL_PREFIX}/share/man/man7/* -%{INSTALL_PREFIX}/share/FreeRDP/FreeRDP3/fonts/* -%{INSTALL_PREFIX}/share/FreeRDP/FreeRDP3/images/* +%{INSTALL_PREFIX}/share/FreeRDP/FreeRDP3/* %files devel %defattr(-,root,root) diff --git a/packaging/scripts/create_rpm.sh b/packaging/scripts/create_rpm.sh new file mode 100755 index 000000000..384233d05 --- /dev/null +++ b/packaging/scripts/create_rpm.sh @@ -0,0 +1,11 @@ +#!/bin/bash -xe +# +# Create a RPM package +SCRIPT_PATH=$(dirname "${BASH_SOURCE[0]}") +SCRIPT_PATH=$(realpath "$SCRIPT_PATH") + +mkdir -p ~/rpmbuild/SOURCES/ +git archive --format=tar HEAD --output ~/rpmbuild/SOURCES/freerdp-nightly-3.0.tar.bz2 --prefix=freerdp-nightly-3.0/ +$SCRIPT_PATH/prepare_rpm_freerdp-nightly.sh +cp source_version ~/rpmbuild/SOURCES/ +rpmbuild -ba "$SCRIPT_PATH/../rpm/freerdp-nightly.spec"