Accepting request 98055 from home:worldcitizen:branches:games

Build miniupnpc version 1.6

OBS-URL: https://build.opensuse.org/request/show/98055
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/miniupnpc?expand=0&rev=1
This commit is contained in:
Ismail Dönmez 2011-12-23 19:16:24 +00:00 committed by Git OBS Bridge
commit 313b470647
6 changed files with 194 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
miniupnpc-1.6.tar.gz Normal file
View File

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

22
miniupnpc-makefile.patch Normal file
View File

@ -0,0 +1,22 @@
--- Makefile.orig 2011-06-21 17:24:14.000000000 +0200
+++ Makefile 2011-12-23 17:54:49.000000000 +0100
@@ -12,7 +12,9 @@
CC ?= gcc
#AR = gar
#CFLAGS = -O -Wall -g -DDEBUG
-CFLAGS ?= -O -Wall -DNDEBUG -DMINIUPNPC_SET_SOCKET_TIMEOUT -Wstrict-prototypes
+OPTFLAGS = -O
+CFLAGS ?= -O -Wall -DNDEBUG -DMINIUPNPC_SET_SOCKET_TIMEOUT -Wstrict-prototypes $(OPTFLAGS)
+PYTHON = python
# -DNO_GETADDRINFO
INSTALL = install
SH = /bin/sh
@@ -103,7 +105,7 @@
everything: all $(EXECUTABLES_ADDTESTS)
pythonmodule: $(LIBRARY) miniupnpcmodule.c setup.py
- python setup.py build
+ $(PYTHON) setup.py build
touch $@
installpythonmodule: pythonmodule

18
miniupnpc.changes Normal file
View File

@ -0,0 +1,18 @@
-------------------------------------------------------------------
Fri Dec 23 16:44:12 UTC 2011 - joop.boonen@opensuse.org
- Build version 1.6
- soname 5 -> 8
-------------------------------------------------------------------
Wed Mar 9 00:00:00 UTC 2011 - pascal.bleser@opensuse.org
- soname 4 -> 5
- update to 1.5
-------------------------------------------------------------------
Sun Mar 7 00:00:00 UTC 2010 - pascal@links2linux.de
- initial package
-------------------------------------------------------------------

127
miniupnpc.spec Normal file
View File

@ -0,0 +1,127 @@
#
# spec file for package miniupnpc
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: miniupnpc
Version: 1.6
Release: 0.0
%define soname 8
Summary: Universal Plug'n'Play (UPnP) Client
Source: http://miniupnp.free.fr/files/miniupnpc-%{version}.tar.gz
Patch1: miniupnpc-makefile.patch
Url: http://miniupnp.free.fr/
Group: Productivity/Networking/Other
License: BSD License (revised)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: gcc glibc-devel make
Requires: libminiupnpc%{soname} = %{version}-%{release}
%description
The MiniUPnP project offers software which supports the UPnP Internet Gateway
Device (IGD) specifications.
%package -n libminiupnpc%{soname}
Summary: Universal Plug'n'Play (UPnP) Client Library
Group: System/Libraries
%description -n libminiupnpc%{soname}
The MiniUPnP project offers software which supports the UPnP Internet Gateway
Device (IGD) specifications.
%package -n libminiupnpc-devel
Summary: Universal Plug'n'Play (UPnP) Client Library
Group: Development/Libraries/C and C++
Requires: libminiupnpc%{soname} = %{version}-%{release}
%description -n libminiupnpc-devel
The MiniUPnP project offers software which supports the UPnP Internet Gateway
Device (IGD) specifications.
%package -n python-miniupnpc
Summary: Universal Plug'n'Play (UPnP) Client Module for Python
Group: Development/Libraries/Python
Requires: libminiupnpc%{soname} = %{version}-%{release}
%py_requires
%description -n python-miniupnpc
The MiniUPnP project offers software which supports the UPnP Internet Gateway
Device (IGD) specifications.
%prep
%setup -q
%patch1
%build
%__make %{?jobs:-j%{jobs}} \
CC="%__cc" \
OPTFLAGS="%{optflags}" \
PYTHON="%__python"
%__python ./setup.py build
%install
%__make \
INSTALLPREFIX="%{buildroot}%{_prefix}" \
INSTALLDIRINC="%{buildroot}%{_includedir}" \
INSTALLDIRLIB="%{buildroot}%{_libdir}" \
INSTALLDIRBIN="%{buildroot}%{_bindir}" \
INSTALL="%__install" \
install
%__python ./setup.py install \
--prefix="%{_prefix}" \
--root="%{buildroot}" \
--record-rpm="rpmfiles.lst"
%post -n libminiupnpc%{soname} -p /sbin/ldconfig
%postun -n libminiupnpc%{soname} -p /sbin/ldconfig
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%{_bindir}/upnpc
%{_bindir}/external-ip
%files -n libminiupnpc%{soname}
%defattr(-,root,root)
%doc LICENSE Changelog.txt README
%{_libdir}/libminiupnpc.so.%{soname}
%files -n libminiupnpc-devel
%defattr(-,root,root)
%{_includedir}/declspec.h
%{_includedir}/igd_desc_parse.h
%{_includedir}/miniupnpc.h
%{_includedir}/miniupnpctypes.h
%{_includedir}/miniwget.h
%{_includedir}/portlistingparse.h
%{_includedir}/upnpcommands.h
%{_includedir}/upnperrors.h
%{_includedir}/upnpreplyparse.h
%{_libdir}/libminiupnpc.a
%{_libdir}/libminiupnpc.so
%files -n python-miniupnpc -f rpmfiles.lst
%defattr(-,root,root)
%changelog