Compare commits
10 Commits
6f5045e510
...
f5754d3742
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5754d3742 | ||
|
|
9cb1be62cc | ||
|
|
dc31b09e69 | ||
|
|
6a94318549 | ||
|
|
51e5f0bdda | ||
|
|
8dc5617673 | ||
|
|
342ec9f4cd | ||
|
|
28f791879d | ||
|
|
9dfc1bbc4c | ||
|
|
de35c3de24 |
Binary file not shown.
BIN
libmtp-1.1.19.tar.gz
Normal file
BIN
libmtp-1.1.19.tar.gz
Normal file
Binary file not shown.
BIN
libmtp-1.1.21.tar.gz
Normal file
BIN
libmtp-1.1.21.tar.gz
Normal file
Binary file not shown.
50
libmtp.spec
50
libmtp.spec
@ -1,13 +1,13 @@
|
||||
Name: libmtp
|
||||
Version: 1.1.14
|
||||
Release: 5
|
||||
Version: 1.1.21
|
||||
Release: 2
|
||||
Summary: An Initiator implementation of the Media Transfer Protocol (MTP) in the form of a library
|
||||
License: LGPLv2+
|
||||
URL: http://libmtp.sourceforge.net/
|
||||
Source0: https://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||
Patch0: 0001-doc-Don-t-document-internal-endian-macros.patch
|
||||
|
||||
BuildRequires: libusbx-devel, doxygen, libgcrypt-devel, chrpath
|
||||
BuildRequires: libusbx-devel doxygen libgcrypt-devel chrpath gcc gettext-devel libtool
|
||||
Requires: udev
|
||||
Provides: %{name}-examples%{?_isa} %{name}-examples
|
||||
Obsoletes: %{name}-examples
|
||||
@ -26,7 +26,7 @@ Requires: pkgconfig, libusb1-devel, libgcrypt-devel
|
||||
This package includes development files for libmtp.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
%autosetup -n libmtp-%{version} -p1
|
||||
|
||||
%build
|
||||
%configure --disable-static --with-udev-rules=69-libmtp.rules
|
||||
@ -34,24 +34,36 @@ This package includes development files for libmtp.
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
|
||||
cd $RPM_BUILD_ROOT%{_bindir}
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libmtp.la
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-delfile
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-getfile
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-newfolder
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendfile
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendtr
|
||||
pushd $RPM_BUILD_ROOT%{_bindir}
|
||||
ln -sf mtp-connect mtp-delfile
|
||||
ln -sf mtp-connect mtp-getfile
|
||||
ln -sf mtp-connect mtp-newfolder
|
||||
ln -sf mtp-connect mtp-sendfile
|
||||
ln -sf mtp-connect mtp-sendtr
|
||||
cd -
|
||||
popd
|
||||
iconv -f iso-8859-1 -t utf-8 -o COPYING.utf8 COPYING
|
||||
touch -r COPYING COPYING.utf8; mv -f COPYING.utf8 COPYING
|
||||
touch -r configure.ac $RPM_BUILD_ROOT%{_includedir}/*.h $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc
|
||||
mv $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html html
|
||||
chrpath -d $RPM_BUILD_ROOT{%{_bindir},/usr/lib/udev}/mtp*
|
||||
mkdir -p -m 755 $RPM_BUILD_ROOT%{_pkgdocdir}
|
||||
install -p -m 644 AUTHORS README TODO \
|
||||
$RPM_BUILD_ROOT%{_pkgdocdir}
|
||||
if [ $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html != $RPM_BUILD_ROOT%{_pkgdocdir}/html ] ; then \
|
||||
mv $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html \
|
||||
$RPM_BUILD_ROOT%{_pkgdocdir} ; \
|
||||
fi
|
||||
touch -r configure.ac \
|
||||
$RPM_BUILD_ROOT%{_includedir}/*.h \
|
||||
$RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc
|
||||
chrpath --delete $RPM_BUILD_ROOT{%{_bindir},/usr/lib/udev}/mtp*
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc AUTHORS html README
|
||||
%license COPYING
|
||||
%{_libdir}/%{name}.so.9*
|
||||
/usr/lib/udev/rules.d/69-%{name}.rules
|
||||
@ -61,9 +73,25 @@ chrpath -d $RPM_BUILD_ROOT{%{_bindir},/usr/lib/udev}/mtp*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/%{name}.so
|
||||
%{_pkgdocdir}
|
||||
%{_includedir}/%{name}.h
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
||||
* Fri Jan 17 2025 zhangshaoning <zhangshaoning@uniontech.com> - 1.1.21-2
|
||||
- Fix bad date in changelog
|
||||
|
||||
* Fri Apr 28 2023 wangkai <13474090681@163.com> - 1.1.21-1
|
||||
- Upgrade to 1.1.21
|
||||
|
||||
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 1.1.19-1
|
||||
- Upgrade to 1.1.19
|
||||
|
||||
* Wed Aug 04 2021 Liu Yinsi <liuyinsi@163.com> - 1.1.14-7
|
||||
- define use_mtpz only in one .c file
|
||||
|
||||
* Tue Jun 08 2021 wulei <wulei80@huawei.com> - 1.1.14-6
|
||||
- fixes failed: error: no acceptable C compiler found in $PATH
|
||||
|
||||
* Fri Nov 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.14-5
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user