Fix flatpak build
Flatpak builds use the host systemd rather than their own, and install into the /app prefix. We also need to avoid the hard dependency on systemd/udev, which exists on host systems but are unwanted in flatpak apps or runtimes.
This commit is contained in:
parent
ab7046b0cd
commit
89bd0c0a4a
12
libmtp.spec
12
libmtp.spec
@ -3,13 +3,13 @@
|
|||||||
|
|
||||||
Name: libmtp
|
Name: libmtp
|
||||||
Version: 1.1.19
|
Version: 1.1.19
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Software library for MTP media players
|
Summary: Software library for MTP media players
|
||||||
URL: http://libmtp.sourceforge.net/
|
URL: http://libmtp.sourceforge.net/
|
||||||
|
|
||||||
Source0: https://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
Source0: https://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Requires: udev
|
Recommends: udev
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -83,8 +83,8 @@ mkdir -p -m 755 $RPM_BUILD_ROOT%{_pkgdocdir}
|
|||||||
install -p -m 644 AUTHORS README TODO \
|
install -p -m 644 AUTHORS README TODO \
|
||||||
$RPM_BUILD_ROOT%{_pkgdocdir}
|
$RPM_BUILD_ROOT%{_pkgdocdir}
|
||||||
# Move some autogenerated documentation where we want it
|
# Move some autogenerated documentation where we want it
|
||||||
if [ $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html != $RPM_BUILD_ROOT%{_pkgdocdir}/html ] ; then \
|
if [ $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html != $RPM_BUILD_ROOT%{_pkgdocdir}/html ] ; then \
|
||||||
mv $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html \
|
mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html \
|
||||||
$RPM_BUILD_ROOT%{_pkgdocdir} ; \
|
$RPM_BUILD_ROOT%{_pkgdocdir} ; \
|
||||||
fi
|
fi
|
||||||
# Touch generated files to make them always have the same time stamp.
|
# Touch generated files to make them always have the same time stamp.
|
||||||
@ -113,6 +113,10 @@ chrpath --delete $RPM_BUILD_ROOT{%{_bindir},/usr/lib/udev}/mtp*
|
|||||||
%{_libdir}/pkgconfig/libmtp.pc
|
%{_libdir}/pkgconfig/libmtp.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 21 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 1.1.19-4
|
||||||
|
- Fix flatpak build
|
||||||
|
- Soften udev dependency for flatpaks
|
||||||
|
|
||||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.19-3
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.19-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user