From 4d247b3482ca18579e5934e53185a9ce61f239b27688619cc2b190947cbd119d Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 13 Aug 2013 11:56:21 +0000 Subject: [PATCH] - created package (version 2.0.0) - based on SDL_net package OBS-URL: https://build.opensuse.org/package/show/games/SDL2_net?expand=0&rev=2 --- SDL2_net-2.0.0.tar.gz | 3 + SDL2_net.changes | 5 ++ SDL_net.spec => SDL2_net.spec | 59 +++++++++--------- SDL_net-1.2.7.tar.bz2 | 3 - SDL_net.changes | 114 ---------------------------------- baselibs.conf | 12 ++-- 6 files changed, 42 insertions(+), 154 deletions(-) create mode 100644 SDL2_net-2.0.0.tar.gz create mode 100644 SDL2_net.changes rename SDL_net.spec => SDL2_net.spec (61%) delete mode 100644 SDL_net-1.2.7.tar.bz2 delete mode 100644 SDL_net.changes diff --git a/SDL2_net-2.0.0.tar.gz b/SDL2_net-2.0.0.tar.gz new file mode 100644 index 0000000..c6ac836 --- /dev/null +++ b/SDL2_net-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d715be30783cc99e541626da52079e308060b21d4f7b95f0224b1d06c1faacab +size 345724 diff --git a/SDL2_net.changes b/SDL2_net.changes new file mode 100644 index 0000000..c523576 --- /dev/null +++ b/SDL2_net.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Aug 13 11:27:54 UTC 2013 - prusnak@opensuse.org + +- created package (version 2.0.0) - based on SDL_net package + diff --git a/SDL_net.spec b/SDL2_net.spec similarity index 61% rename from SDL_net.spec rename to SDL2_net.spec index cdc103e..3d7b514 100644 --- a/SDL_net.spec +++ b/SDL2_net.spec @@ -1,7 +1,7 @@ # -# spec file for package SDL_net +# spec file for package SDL2_net # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 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 @@ -16,41 +16,37 @@ # - -Name: SDL_net -BuildRequires: libSDL-devel -Url: http://www.libsdl.org/projects/SDL_net/ -License: LGPL-2.1+ -Group: System/Libraries -Version: 1.2.7 -Release: 154 +Name: SDL2_net +Version: 2.0.0 +Release: 0 Summary: Simple DirectMedia Layer - Networking Library -Source: %{name}-%{version}.tar.bz2 +License: Zlib +Group: System/Libraries +Url: http://www.libsdl.org/projects/SDL_net/ +Source: http://www.libsdl.org/tmp/SDL_net/release/%{name}-%{version}.tar.gz Source2: baselibs.conf +BuildRequires: libSDL2-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This is a small cross-platform networking library for use with SDL. -%package -n libSDL_net-1_2-0 -Group: System/Libraries +%package -n libSDL2_net-2_0-0 Summary: Simple DirectMedia Layer - Networking Library -License: LGPL-2.1+ -Provides: SDL_net = %{version} -Obsoletes: SDL_net <= %{version} +Group: System/Libraries +Provides: SDL2_net = %{version} -%description -n libSDL_net-1_2-0 +%description -n libSDL2_net-2_0-0 This is a small cross-platform networking library for use with SDL. -%package -n libSDL_net-devel -License: LGPL-2.1+ +%package -n libSDL2_net-devel Summary: Simple DirectMedia Layer - Networking Library Group: Development/Libraries/C and C++ -Requires: libSDL_net-1_2-0 = %{version} libSDL-devel -Provides: SDL_net-devel = %{version} -Obsoletes: SDL_net-devel <= %{version} +Requires: libSDL2-devel +Requires: libSDL2_net-2_0-0 = %{version} +Provides: SDL2_net-devel = %{version} -%description -n libSDL_net-devel +%description -n libSDL2_net-devel This is a small cross-platform networking library for use with SDL. %prep @@ -61,21 +57,22 @@ This is a small cross-platform networking library for use with SDL. make %{?_smp_mflags} %install -make DESTDIR=$RPM_BUILD_ROOT install -%{__rm} -f %{buildroot}%{_libdir}/*.la +%make_install +rm -f %{buildroot}%{_libdir}/*.la -%post -n libSDL_net-1_2-0 -p /sbin/ldconfig +%post -n libSDL2_net-2_0-0 -p /sbin/ldconfig -%postun -n libSDL_net-1_2-0 -p /sbin/ldconfig +%postun -n libSDL2_net-2_0-0 -p /sbin/ldconfig -%files -n libSDL_net-1_2-0 +%files -n libSDL2_net-2_0-0 %defattr(-,root,root) -%doc CHANGES COPYING README +%doc CHANGES.txt COPYING.txt README.txt %{_libdir}/lib*.so.* -%files -n libSDL_net-devel +%files -n libSDL2_net-devel %defattr(-,root,root) -%{_includedir}/SDL/* +%{_includedir}/SDL2/* %{_libdir}/lib*.so +%{_libdir}/pkgconfig/SDL2_net.pc %changelog diff --git a/SDL_net-1.2.7.tar.bz2 b/SDL_net-1.2.7.tar.bz2 deleted file mode 100644 index 4c8b92b..0000000 --- a/SDL_net-1.2.7.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dded12bc8ee8928b8f3cc448f9844f4f40327a18e1413ac0b258d3fb05f68c5b -size 277831 diff --git a/SDL_net.changes b/SDL_net.changes deleted file mode 100644 index da8d982..0000000 --- a/SDL_net.changes +++ /dev/null @@ -1,114 +0,0 @@ -------------------------------------------------------------------- -Sat Sep 17 10:23:20 UTC 2011 - jengelh@medozas.de - -- Remove redundant tags/sections from specfile - -------------------------------------------------------------------- -Mon Aug 1 09:38:04 UTC 2011 - jengelh@medozas.de - -- Update baselibs.conf to also ship libSDL_net-devel-32bit - -------------------------------------------------------------------- -Sat Jul 2 14:53:38 UTC 2011 - jengelh@medozas.de - -- Use %_smp_mflags for parallel building -- Strip %clean section (not needed on BS) - -------------------------------------------------------------------- -Sat Dec 19 19:13:31 CET 2009 - jengelh@medozas.de - -- add baselibs.conf as a source - -------------------------------------------------------------------- -Wed Oct 7 14:52:35 CEST 2009 - prusnak@suse.cz - -- fix provides and obsoletes [bnc#544957] - -------------------------------------------------------------------- -Wed May 20 16:32:01 CEST 2009 - prusnak@suse.cz - -- follow Shared Library Policy - -------------------------------------------------------------------- -Wed Feb 25 16:04:00 CET 2009 - crrodriguez@suse.de - -- remove static libraries and "la" files - -------------------------------------------------------------------- -Wed Jul 25 18:11:19 CEST 2007 - prusnak@suse.cz - -- updated to 1.2.7 - * set server TCP sockets to blocking mode - -------------------------------------------------------------------- -Sun Jul 22 18:56:54 CEST 2007 - aj@suse.de - -- Cleanup build requires. - -------------------------------------------------------------------- -Fri Mar 2 12:39:27 CET 2007 - prusnak@suse.cz - -- cleaned spec file - -------------------------------------------------------------------- -Thu Feb 22 15:38:08 CET 2007 - prusnak@suse.cz - -- updated to 1.2.6 -- created devel subpackage - -------------------------------------------------------------------- -Thu Oct 26 11:17:41 CEST 2006 - sndirsch@suse.de - -- removed wrong 'extra ;' in SDL_net.h (Bug #214645) - -------------------------------------------------------------------- -Fri Jan 27 10:46:06 CET 2006 - nadvornik@suse.cz - -- fixed BuildRequires - -------------------------------------------------------------------- -Wed Jan 25 21:33:57 CET 2006 - mls@suse.de - -- converted neededforbuild to BuildRequires - -------------------------------------------------------------------- -Sat Jan 10 21:45:49 CET 2004 - adrian@suse.de - -- add %defattr and %run_ldconfig - -------------------------------------------------------------------- -Fri Jul 25 12:29:04 CEST 2003 - nadvornik@suse.cz - -- updated to 1.2.5 -- added buildroot - -------------------------------------------------------------------- -Mon Dec 16 17:48:41 CET 2002 - ro@suse.de - -- fix build with automake, use "AUTOMAKE_OPTIONS = foreign" - -------------------------------------------------------------------- -Mon Sep 2 14:36:43 CEST 2002 - uli@suse.de - -- use %_libdir (bug #18726) - -------------------------------------------------------------------- -Thu Jun 13 14:15:36 CEST 2002 - uli@suse.de - -- update -> 1.2.4 (bugfixes) - -------------------------------------------------------------------- -Wed Jun 12 00:28:08 CEST 2002 - ro@suse.de - -- run autoreconf (fixes build on ppc64) - -------------------------------------------------------------------- -Tue Jan 22 18:23:53 CET 2002 - ro@suse.de - -- changed neededforbuild to - -------------------------------------------------------------------- -Tue Aug 7 16:53:11 CEST 2001 - uli@suse.de - -- initial package - diff --git a/baselibs.conf b/baselibs.conf index 8fadaa4..eaf40af 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,6 +1,6 @@ -libSDL_net-1_2-0 - provides "SDL_net- = " - obsoletes "SDL_net- <= " -libSDL_net-devel - requires -libSDL_net- - requires "libSDL_net-1_2-0- = " +libSDL2_net-2_0-0 + provides "SDL2_net- = " + obsoletes "SDL2_net- <= " +libSDL2_net-devel + requires -libSDL2_net- + requires "libSDL2_net-2_0-0- = "