Update to 20140401

Makefile overriding patch refreshed
epel9
Christopher Meng 11 years ago
parent db0d6a89f2
commit 4f9141d499

1
.gitignore vendored

@ -1 +1,2 @@
/libnatpmp-20131126.tar.gz
/libnatpmp-20140401.tar.gz

@ -1,18 +1,18 @@
--- libnatpmp-20131126/Makefile.orig 2014-02-14 15:11:03.817984512 +0800
+++ libnatpmp-20131126/Makefile 2014-02-14 15:11:14.132018382 +0800
@@ -23,12 +23,9 @@
APIVERSION = 1
Index: libnatpmp-20140401/Makefile
===================================================================
--- libnatpmp-20140401.orig/Makefile
+++ libnatpmp-20140401/Makefile
@@ -25,10 +25,10 @@ APIVERSION = 1
#LDFLAGS = -Wl,--no-undefined
CFLAGS = -Os
-#CFLAGS = -g -O0
CFLAGS ?= -Os
#CFLAGS = -g -O0
-CFLAGS += -fPIC
-CFLAGS += -Wall
-#CFLAGS += -Wextra
-CFLAGS += -DENABLE_STRNATPMPERR
-#CFLAGS += -Wstrict-aliasing
+override CFLAGS += -fPIC
+override CFLAGS += -Wall
#CFLAGS += -Wextra
-CFLAGS += -DENABLE_STRNATPMPERR
+override CFLAGS += -DENABLE_STRNATPMPERR
#CFLAGS += -Wstrict-aliasing
LIBOBJS = natpmp.o getgateway.o

@ -1,6 +1,6 @@
Name: libnatpmp
Version: 20131126
Release: 3%{?dist}
Version: 20140401
Release: 1%{?dist}
Summary: Library of The NAT Port Mapping Protocol (NAT-PMP)
License: LGPLv2+
URL: http://miniupnp.free.fr/libnatpmp.html
@ -26,7 +26,7 @@ developing applications that use %{name}.
%patch0 -p1
%build
make CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" %{?_smp_mflags}
make CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" %{?_smp_mflags}
%install
make install INSTALL="install -p" PREFIX=%{buildroot} INSTALLDIRLIB="%{buildroot}%{_libdir}"
@ -47,6 +47,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ";" -print
%{_includedir}/natpmp.h
%changelog
* Sun Jun 01 2014 Christopher Meng <rpm@cicku.me> - 20140401-1
- Update to 20140401
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20131126-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

@ -1 +1 @@
211921e35fb3f21f525518d265f3d554 libnatpmp-20131126.tar.gz
7c9a7c76e200ead4e6447fe4b105f676 libnatpmp-20140401.tar.gz

Loading…
Cancel
Save