Accepting request 246427 from devel:libraries:c_c++

- updated to 1.1.7
  - Soname libmtp.so.9.2.0 - binary compatible, new interfaces
    have been added.
  - Compilation fixes for older GCC and non-GCC compilers.
  - Finalize >4GB file transfer changes so this works now.
  - A new API to check for device capabilities has been added.
  - Sync in latest upstream ptp2 changes.
  - Support for USB 3.0! (A patch adding async buffering was
    reverted after deemed instable by Debian.)
  - Some migration toward the new API in the examples.
  - Use parent storage if available as default storage media.
  - Force reset on close for Android devices.
  - Handle integrated USB hubs in mtp-probe.
  - Devices, devices, devices...
- mtpz-use-LIBMTP_ERROR-instead-of-LIBMTP_INFO.patch: is upstream
- music-players.h: use up to date 1.1.7 version again.

OBS-URL: https://build.opensuse.org/request/show/246427
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libmtp?expand=0&rev=63
This commit is contained in:
Stephan Kulow 2014-08-27 20:18:12 +00:00 committed by Git OBS Bridge
commit e1e612d59b
6 changed files with 24 additions and 2532 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a1c1c83af91de4052eb54feb795c141b4c04a252e0031954ebbf6175970cb0a
size 733519

3
libmtp-1.1.7.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f1f88507e6bfb91305a531b1c322a41ee71f6753452c05813b6047eac9eeec4
size 757080

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Tue Aug 26 06:31:36 UTC 2014 - meissner@suse.com
- updated to 1.1.7
- Soname libmtp.so.9.2.0 - binary compatible, new interfaces
have been added.
- Compilation fixes for older GCC and non-GCC compilers.
- Finalize >4GB file transfer changes so this works now.
- A new API to check for device capabilities has been added.
- Sync in latest upstream ptp2 changes.
- Support for USB 3.0! (A patch adding async buffering was
reverted after deemed instable by Debian.)
- Some migration toward the new API in the examples.
- Use parent storage if available as default storage media.
- Force reset on close for Android devices.
- Handle integrated USB hubs in mtp-probe.
- Devices, devices, devices...
- mtpz-use-LIBMTP_ERROR-instead-of-LIBMTP_INFO.patch: is upstream
- music-players.h: use up to date 1.1.7 version again.
-------------------------------------------------------------------
Tue May 27 01:39:24 UTC 2014 - crrodriguez@opensuse.org

View File

@ -26,13 +26,11 @@ BuildRequires: pkgconfig(udev)
Summary: Commandline utilities for access to MTP Players
License: LGPL-2.1+
Group: Productivity/Multimedia/Sound/Players
Version: 1.1.6
Version: 1.1.7
Release: 0
%define sonum 9
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
# from git 1a2669c6df6c093aec38c0c99a21438d74ccdf33
Source1: music-players.h
Patch0: mtpz-use-LIBMTP_ERROR-instead-of-LIBMTP_INFO.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{!?_udevrulesdir: %global _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d }
%{!?_udevdir: %global _udevdir %(pkg-config --variable=udevdir udev) }
@ -79,8 +77,6 @@ Transfer Protocol) authored by Microsoft.
%prep
%setup -q
%patch0 -p1
cp %{SOURCE1} src/music-players.h
%build
echo 'HTML_TIMESTAMP=NO' >> doc/Doxyfile.in

View File

@ -1,80 +0,0 @@
Index: libmtp-1.1.6/src/mtpz.c
===================================================================
--- libmtp-1.1.6.orig/src/mtpz.c
+++ libmtp-1.1.6/src/mtpz.c
@@ -119,7 +119,7 @@ int mtpz_loaddata()
char *home = getenv("HOME");
if (!home)
{
- LIBMTP_INFO("Unable to determine user's home directory, MTPZ disabled");
+ LIBMTP_ERROR("Unable to determine user's home directory, MTPZ disabled");
return -1;
}
@@ -130,7 +130,7 @@ int mtpz_loaddata()
FILE *fdata = fopen(path, "r");
if (!fdata)
{
- LIBMTP_INFO("Unable to open ~/.mtpz-data for reading, MTPZ disabled.");
+ LIBMTP_ERROR("Unable to open ~/.mtpz-data for reading, MTPZ disabled.");
return -1;
}
@@ -138,7 +138,7 @@ int mtpz_loaddata()
MTPZ_PUBLIC_EXPONENT = (unsigned char *)fgets_strip((char *)malloc(8), 8, fdata);
if (!MTPZ_PUBLIC_EXPONENT)
{
- LIBMTP_INFO("Unable to read MTPZ public exponent from ~/.mtpz-data, MTPZ disabled");
+ LIBMTP_ERROR("Unable to read MTPZ public exponent from ~/.mtpz-data, MTPZ disabled");
return -1;
}
@@ -146,20 +146,20 @@ int mtpz_loaddata()
char *hexenckey = (unsigned char *)fgets_strip((char *)malloc(35), 35, fdata);
if (!hexenckey)
{
- LIBMTP_INFO("Unable to read MTPZ encryption key from ~/.mtpz-data, MTPZ disabled");
+ LIBMTP_ERROR("Unable to read MTPZ encryption key from ~/.mtpz-data, MTPZ disabled");
return -1;
}
MTPZ_ENCRYPTION_KEY = hex_to_bytes(hexenckey, strlen(hexenckey));
if (!MTPZ_ENCRYPTION_KEY)
{
- LIBMTP_INFO("Unable to read MTPZ encryption key from ~/.mtpz-data, MTPZ disabled");
+ LIBMTP_ERROR("Unable to read MTPZ encryption key from ~/.mtpz-data, MTPZ disabled");
}
// Should only be 256 characters in length, but fgets will encounter a newline and stop.
MTPZ_MODULUS = (unsigned char *)fgets_strip((char *)malloc(260), 260, fdata);
if (!MTPZ_MODULUS)
{
- LIBMTP_INFO("Unable to read MTPZ modulus from ~/.mtpz-data, MTPZ disabled");
+ LIBMTP_ERROR("Unable to read MTPZ modulus from ~/.mtpz-data, MTPZ disabled");
return -1;
}
@@ -167,7 +167,7 @@ int mtpz_loaddata()
MTPZ_PRIVATE_KEY = (unsigned char *)fgets_strip((char *)malloc(260), 260, fdata);
if (!MTPZ_PRIVATE_KEY)
{
- LIBMTP_INFO("Unable to read MTPZ private key from ~/.mtpz-data, MTPZ disabled");
+ LIBMTP_ERROR("Unable to read MTPZ private key from ~/.mtpz-data, MTPZ disabled");
return -1;
}
@@ -175,13 +175,13 @@ int mtpz_loaddata()
char *hexcerts = fgets_strip((char *)malloc(1260), 1260, fdata);
if (!hexcerts)
{
- LIBMTP_INFO("Unable to read MTPZ certificates from ~/.mtpz-data, MTPZ disabled");
+ LIBMTP_ERROR("Unable to read MTPZ certificates from ~/.mtpz-data, MTPZ disabled");
return -1;
}
MTPZ_CERTIFICATES = hex_to_bytes(hexcerts, strlen(hexcerts));
if (!MTPZ_CERTIFICATES)
{
- LIBMTP_INFO("Unable to parse MTPZ certificates from ~/.mtpz-data, MTPZ disabled");
+ LIBMTP_ERROR("Unable to parse MTPZ certificates from ~/.mtpz-data, MTPZ disabled");
return -1;
}

File diff suppressed because it is too large Load Diff