Don't use lockdev for flatpak builds

lockdev style locking doesn't work in flatpaks because (1) /run/lock is
not shared with the host, and (2) systemd-tmpfiles isn't currently
available in our flatpak runtime so /run/lock/lockdev/ directory doesn't
get correctly set up.

While at this, also drop manual requires on lockdev as it's already
pulled in through autogenerated soname dependencies.
This commit is contained in:
Kalev Lember 2021-10-06 10:29:42 +02:00
parent 0afb3287b7
commit 5b5ad8bb3f

View File

@ -5,7 +5,7 @@
Name: libgphoto2
Version: 2.5.27
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Library for accessing digital cameras
# GPLV2+ for the main lib (due to exif.c) and most plugins, some plugins GPLv2
License: GPLv2+ and GPLv2
@ -32,9 +32,10 @@ BuildRequires: pkgconfig(libexif)
# -----------------------------------
# libgphoto2_port
# -----------------------------------
%if !0%{?flatpak}
BuildRequires: lockdev-devel
%endif
BuildRequires: pkgconfig(libusb-1.0)
Requires: lockdev
# -----------------------------------
# Temporarily required for patch3
@ -156,6 +157,9 @@ rm -rf %{buildroot}%{_datadir}/libgphoto2_port/*/vcamera/
%{_mandir}/man3/%{name}_port.3*
%changelog
* Wed Oct 06 2021 Kalev Lember <klember@redhat.com> - 2.5.27-3
- Don't use lockdev for flatpak builds
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.27-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild