diff options
| author | CoprDistGit <infra@openeuler.org> | 2024-11-21 05:43:17 +0000 | 
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2024-11-21 05:43:17 +0000 | 
| commit | b1e2f72181a89e898471203e156858677f3256d5 (patch) | |
| tree | 0c6d5069466232774d26ee2bfd06c60b74eb5f38 | |
| parent | f7f723af70477db521fc7d07bf8a7e18f942b6e2 (diff) | |
automatic import of libmtpopeneuler24.03_LTS
| -rw-r--r-- | libmtp-1.1.22-udev-dir.patch | 22 | ||||
| -rw-r--r-- | libmtp.spec | 5 | 
2 files changed, 26 insertions, 1 deletions
diff --git a/libmtp-1.1.22-udev-dir.patch b/libmtp-1.1.22-udev-dir.patch new file mode 100644 index 0000000..c9ebdc1 --- /dev/null +++ b/libmtp-1.1.22-udev-dir.patch @@ -0,0 +1,22 @@ +--- libmtp-1.1.22/configure.ac.orig	2024-11-21 13:40:06.141593556 +0800 ++++ libmtp-1.1.22/configure.ac	2024-11-21 13:40:46.790162108 +0800 +@@ -39,8 +39,8 @@ +     hwdbdir=$(TARGET_UDEV)/hwdb.d + endif + else +-    udevrulesdir=$(libdir)/udev/rules.d +-    hwdbdir=$(libdir)/udev/hwdb.d ++    udevrulesdir=$(UDEV)/rules.d ++    hwdbdir=$(UDEV)/hwdb.d + endif + ' + AC_SUBST([UDEVdata_SNIPPET]) +@@ -52,7 +52,7 @@ +     mtp_probedir=$(TARGET_UDEV) + endif + else +-    mtp_probedir=$(libdir)/udev ++    mtp_probedir=$(UDEV) + endif + ' + AC_SUBST([UDEVbin_SNIPPET]) diff --git a/libmtp.spec b/libmtp.spec index 9b8ebbd..4ee28d5 100644 --- a/libmtp.spec +++ b/libmtp.spec @@ -6,8 +6,10 @@ License:        LGPL-2.1-or-later  URL:            https://libmtp.sourceforge.net/  Source0:        https://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz  Patch0:         0001-doc-Don-t-document-internal-endian-macros.patch +Patch1:         libmtp-1.1.22-udev-dir.patch -BuildRequires:  libusbx-devel doxygen libgcrypt-devel chrpath gcc gettext-devel libtool +BuildRequires:  autoconf automake libtool +BuildRequires:  libusbx-devel doxygen libgcrypt-devel gcc gettext-devel  Requires:       udev  Provides:       %{name}-examples%{?_isa} %{name}-examples  Obsoletes:      %{name}-examples @@ -29,6 +31,7 @@ This package includes development files for libmtp.  %autosetup -n libmtp-%{version} -p1  %build +autoreconf -fi  %configure --disable-static --with-udev-rules=69-libmtp.rules --with-udev=%{_prefix}/lib/udev  %make_build  | 
