[mingw32-portablexdr] Remove include of config.h from public header.
Richard W.M. Jones
rjones at fedoraproject.org
Tue Jul 5 13:40:18 UTC 2011
commit 0ff47ea3761c51d71dda31f9e042469e303affdf
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Tue Jul 5 14:39:57 2011 +0100
Remove include of config.h from public header.
mingw32-portablexdr.spec | 15 ++++++++++++++-
portablexdr-4.9.1-no-config-h.patch | 6 ++++++
2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/mingw32-portablexdr.spec b/mingw32-portablexdr.spec
index 951448e..4d88b60 100644
--- a/mingw32-portablexdr.spec
+++ b/mingw32-portablexdr.spec
@@ -6,7 +6,7 @@
Name: mingw32-portablexdr
Version: 4.9.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: MinGW Windows PortableXDR / RPC Library
License: LGPLv2+
@@ -20,23 +20,32 @@ BuildRequires: mingw32-filesystem >= 56
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
+# Remove include of config.h from public header.
+Patch0: portablexdr-4.9.1-no-config-h.patch
+
+
%description
MinGW Windows PortableXDR XDR / RPC library.
%prep
%setup -q -n portablexdr-%{version}
+%patch0 -p1
+
%build
%{_mingw32_configure} --disable-static
make %{?_smp_flags}
+
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
+
%clean
rm -rf $RPM_BUILD_ROOT
+
%files
%defattr(-,root,root)
%doc COPYING.LIB
@@ -46,7 +55,11 @@ rm -rf $RPM_BUILD_ROOT
%{_mingw32_libdir}/libportablexdr.la
%{_mingw32_includedir}/rpc
+
%changelog
+* Tue Jul 5 2011 Richard W.M. Jones <rjones at redhat.com> - 4.9.1-3
+- Remove include of config.h from public header.
+
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.9.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
diff --git a/portablexdr-4.9.1-no-config-h.patch b/portablexdr-4.9.1-no-config-h.patch
new file mode 100644
index 0000000..5307966
--- /dev/null
+++ b/portablexdr-4.9.1-no-config-h.patch
@@ -0,0 +1,6 @@
+--- portablexdr-4.9.1/rpc/rpc.h.old 2011-07-05 14:36:57.938389205 +0100
++++ portablexdr-4.9.1/rpc/rpc.h 2011-07-05 14:37:04.213519063 +0100
+@@ -1,3 +1,2 @@
+-#include "config.h"
+ #include <rpc/types.h>
+ #include <rpc/xdr.h>
More information about the scm-commits
mailing list