@@ -1,7 +1,7 @@
#
#
# spec file for package SDL_net
# spec file for package SDL_net
#
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2024 SUSE LLC
#
#
# All modifications and additions to the file contributed by third parties
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https ://bugs.opensuse.org/
#
#
@@ -21,14 +21,13 @@ Name: SDL_net
Version : 1.2.8
Version : 1.2.8
Release : 0
Release : 0
Summary : SDL networking library
Summary : SDL networking library
License : LGPL-2.1+
License : LGPL-2.1-or-later
Group : Development/Libraries/C and C++
Group : Development/Libraries/C and C++
Url : http://libsdl.org/projects/SDL_net/release-1.2.html
URL : http://libsdl.org/projects/SDL_net/release-1.2.html
# removed VisualC, Xcode, Xcode-iOS and Watcom-OS2.zip from the upstream tarball [bnc#508084]
# removed VisualC, Xcode, Xcode-iOS and Watcom-OS2.zip from the upstream tarball [bnc#508084]
Source : %name-%version-repack.tar.bz2
Source : %name-%version-repack.tar.bz2
Source2 : baselibs.conf
Source2 : baselibs.conf
BuildRoot : %{_tmppath} /%{name} -%{version} -build
BuildRequires : pkg-config
BuildRequires : pkg-config
BuildRequires : pkgconfig(sdl)
BuildRequires : pkgconfig(sdl)
@@ -36,7 +35,7 @@ BuildRequires: pkgconfig(sdl)
This is a small cross-platform networking library for use with SDL.
This is a small cross-platform networking library for use with SDL.
%package -n %lname
%package -n %lname
Summary : Simple DirectMedia Layer – Networking library
Summary : Networking library for SDL
Group : System/Libraries
Group : System/Libraries
Provides : SDL_net = %version
Provides : SDL_net = %version
Obsoletes : SDL_net <= %version
Obsoletes : SDL_net <= %version
@@ -44,14 +43,14 @@ Obsoletes: SDL_net <= %version
%description -n %lname
%description -n %lname
This is a small cross-platform networking library for use with SDL.
This is a small cross-platform networking library for use with SDL.
%package -n libSDL_net- devel
%package devel
Summary : Development files for the SDL networking library
Summary : Development files for the SDL networking library
Group : Development/Libraries/C and C++
Group : Development/Libraries/C and C++
Requires : %lname = %version
Requires : %lname = %version
Provides : SDL_net-devel = %version
Provides : lib SDL_net-devel = %version
Obsoletes : SDL_net-devel <= %version
Obsoletes : lib SDL_net-devel <= %version
%description -n libSDL_net- devel
%description devel
This is a small cross-platform networking library for use with SDL.
This is a small cross-platform networking library for use with SDL.
%prep
%prep
@@ -59,22 +58,19 @@ This is a small cross-platform networking library for use with SDL.
%build
%build
%configure --disable-static
%configure --disable-static
make %{?_smp_mflags}
% make_build
%install
%install
%make_install
%make_install
rm -f " % b u i l d r o o t / %_libdir " /*.la
rm -f " % b u i l d r o o t / %_libdir " /*.la
%post -n %lname -p /sbin/ldconfig
%ldconfig_scriptlets -n %lname
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%files -n %lname
%defattr (-,root,root)
%doc CHANGES COPYING README
%doc CHANGES COPYING README
%_libdir /libSDL_net-1*.so.*
%_libdir /libSDL_net-1*.so.*
%files -n libSDL_net- devel
%files devel
%defattr (-,root,root)
%_includedir /SDL/
%_includedir /SDL/
%_libdir /libSDL_net.so
%_libdir /libSDL_net.so
%_libdir /pkgconfig/SDL_net.pc
%_libdir /pkgconfig/SDL_net.pc