Skip to content

Commit

Permalink
Fix the checks for defined macros (displaylink-rpm#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
elguero committed Dec 30, 2021
1 parent bb7f71b commit f8b611c
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions displaylink.spec
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
%if 0%{!?_daemon_version}
%global _daemon_version 5.4.1-55.174
%endif

%if 0%{!?_version}
%global _version 1.9.1
%endif

%if 0%{!?_release}
%global _release 3
%endif
%{!?_daemon_version:%global _daemon_version 5.4.1-55.174}
%{!?_version:%global _version 1.9.1}
%{!?_release:%global _release 3}

# Disable RPATH since DisplayLinkManager contains this.
# Fedora 35 enforces this check and will stop rpmbuild from
Expand All @@ -22,9 +14,7 @@
%global kernel_pkg_name kernel
%endif

%if 0%{?_github}
%global _github_release .github_evdi
%endif
%{?_github:%global _github_release .github_evdi}

Name: displaylink
Version: %{_version}
Expand Down Expand Up @@ -230,6 +220,7 @@ chmod +x %{buildroot}%{_prefix}/lib/systemd/system-sleep/displaylink.sh
%changelog
* Wed Dec 29 2021 Michael L. Young <[email protected]> 1.9.1-3
- Add patch to fix compile error on EL8
- Fix checking for defined macros

* Mon Dec 27 2021 Michael L. Young <[email protected]> 1.9.1-2
- Change 'unbundled' to 'github' as part of attempt to clarify
Expand Down

0 comments on commit f8b611c

Please sign in to comment.