test to patch in a config.h header
This commit is contained in:
parent
75fad7faf6
commit
df11318f06
11
config.patch
Normal file
11
config.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -ur libmtp-1.1.7-orig/src/util.h libmtp-1.1.7/src/util.h
|
||||||
|
--- libmtp-1.1.7-orig/src/util.h 2014-08-26 21:58:04.087428635 +0200
|
||||||
|
+++ libmtp-1.1.7/src/util.h 2014-08-26 21:58:42.597180810 +0200
|
||||||
|
@@ -22,6 +22,7 @@
|
||||||
|
|
||||||
|
#ifndef __MTP__UTIL__H
|
||||||
|
#define __MTP__UTIL__H
|
||||||
|
+#include "config.h"
|
||||||
|
|
||||||
|
void data_dump(FILE *f, void *buf, uint32_t nbytes);
|
||||||
|
void data_dump_ascii (FILE *f, void *buf, uint32_t n, uint32_t dump_boundry);
|
@ -5,12 +5,13 @@
|
|||||||
|
|
||||||
Name: libmtp
|
Name: libmtp
|
||||||
Version: 1.1.7
|
Version: 1.1.7
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A software library for MTP media players
|
Summary: A software library for MTP media players
|
||||||
URL: http://libmtp.sourceforge.net/
|
URL: http://libmtp.sourceforge.net/
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
|
Patch0: config.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Requires: udev
|
Requires: udev
|
||||||
@ -45,6 +46,7 @@ library for MTP media players.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1 -b .configh
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
@ -107,6 +109,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tis Aug 26 2014 Linus Walleij <triad@df.lth.se> - 1.1.7-2
|
||||||
|
- Fix an include problem. Or try to.
|
||||||
|
|
||||||
* Sun Aug 24 2014 Linus Walleij <triad@df.lth.se> - 1.1.7-1
|
* Sun Aug 24 2014 Linus Walleij <triad@df.lth.se> - 1.1.7-1
|
||||||
- New upstream version.
|
- New upstream version.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user