diff --git a/0001-doc-Don-t-document-internal-endian-macros.patch b/0001-doc-Don-t-document-internal-endian-macros.patch new file mode 100644 index 0000000..0e995c4 --- /dev/null +++ b/0001-doc-Don-t-document-internal-endian-macros.patch @@ -0,0 +1,26 @@ +From 35275512f83d246ddbddd2be2b970925e73df45e Mon Sep 17 00:00:00 2001 +From: Bastien Nocera +Date: Mon, 9 Oct 2017 14:25:26 +0200 +Subject: [PATCH] doc: Don't document internal endian macros + +As those will change across platforms, and lead to multilib conflicts +--- + doc/Doxyfile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in +index 65c2b83..1bc3b16 100644 +--- a/doc/Doxyfile.in ++++ b/doc/Doxyfile.in +@@ -452,7 +452,7 @@ EXCLUDE_SYMLINKS = NO + # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude + # certain files from those directories. + +-EXCLUDE_PATTERNS = ++EXCLUDE_PATTERNS = */src/gphoto2-endian.h + + # The EXAMPLE_PATH tag can be used to specify one or more files or + # directories that contain example code fragments that are included (see +-- +2.14.2 + diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 12b7235..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# libmtp - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index e36d3b4..0000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# libmtp - -#### 介绍 -{**以下是码云平台说明,您可以替换此简介** -码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/libmtp-1.1.14.tar.gz b/libmtp-1.1.14.tar.gz new file mode 100644 index 0000000..c16bb86 Binary files /dev/null and b/libmtp-1.1.14.tar.gz differ diff --git a/libmtp.spec b/libmtp.spec new file mode 100644 index 0000000..9b84a42 --- /dev/null +++ b/libmtp.spec @@ -0,0 +1,69 @@ +Name: libmtp +Version: 1.1.14 +Release: 5 +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 +Requires: udev +Provides: %{name}-examples%{?_isa} %{name}-examples +Obsoletes: %{name}-examples + +%description +libmtp is an Initiator implementation of the Media Transfer Protocol (MTP) +in the form of a library suitable primarily for POSIX compliant operating systems. +We implement MTP Basic, the stuff proposed for standardization. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig, libusb1-devel, libgcrypt-devel + +%description devel +This package includes development files for libmtp. + +%prep +%autosetup -p1 + +%build +%configure --disable-static --with-udev-rules=69-libmtp.rules +%make_build + +%install +%make_install +rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la +cd $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 - +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* + +%ldconfig_scriptlets + +%files +%doc AUTHORS html README +%license COPYING +%{_libdir}/%{name}.so.9* +/usr/lib/udev/rules.d/69-%{name}.rules +/usr/lib/udev/hwdb.d/69-%{name}.hwdb +/usr/lib/udev/mtp-probe +%{_bindir}/mtp-* + +%files devel +%{_libdir}/%{name}.so +%{_includedir}/%{name}.h +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +* Fri Nov 29 2019 openEuler Buildteam - 1.1.14-5 +- Package init