SHA256
1
0
forked from pool/SDL_net

Accepting request 195364 from games

- Some metadata spruce-up: add current URLs, softer wildcarding
  in the files list, more robust make install call (forwarded request 188151 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/195364
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL_net?expand=0&rev=21
This commit is contained in:
Tomáš Chvátal 2013-08-19 09:13:06 +00:00 committed by Git OBS Bridge
commit 95509cd9df
2 changed files with 21 additions and 12 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Aug 13 12:04:26 UTC 2013 - jengelh@inai.de
- Some metadata spruce-up: add current URLs, softer wildcarding
in the files list, more robust make install call
-------------------------------------------------------------------
Tue Aug 13 11:39:07 UTC 2013 - prusnak@opensuse.org

View File

@ -17,35 +17,38 @@
Name: SDL_net
BuildRequires: libSDL-devel
Url: http://www.libsdl.org/projects/SDL_net/
%define lname libSDL_net-1_2-0
Version: 1.2.8
Release: 0
Summary: Simple DirectMedia Layer - Networking Library
License: LGPL-2.1+
Group: System/Libraries
Group: Development/Libraries/C and C++
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]
Source: %{name}-%{version}-repack.tar.bz2
Source2: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libSDL-devel
BuildRequires: pkgconfig
%description
This is a small cross-platform networking library for use with SDL.
%package -n libSDL_net-1_2-0
%package -n %lname
Summary: Simple DirectMedia Layer - Networking Library
Group: System/Libraries
Provides: SDL_net = %{version}
Obsoletes: SDL_net <= %{version}
%description -n libSDL_net-1_2-0
%description -n %lname
This is a small cross-platform networking library for use with SDL.
%package -n libSDL_net-devel
Summary: Simple DirectMedia Layer - Networking Library
Group: Development/Libraries/C and C++
Requires: %lname = %{version}
Requires: libSDL-devel
Requires: libSDL_net-1_2-0 = %{version}
Provides: SDL_net-devel = %{version}
Obsoletes: SDL_net-devel <= %{version}
@ -63,19 +66,19 @@ make %{?_smp_mflags}
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post -n libSDL_net-1_2-0 -p /sbin/ldconfig
%post -n %lname -p /sbin/ldconfig
%postun -n libSDL_net-1_2-0 -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n libSDL_net-1_2-0
%files -n %lname
%defattr(-,root,root)
%doc CHANGES COPYING README
%{_libdir}/lib*.so.*
%{_libdir}/libSDL_net-1*.so.*
%files -n libSDL_net-devel
%defattr(-,root,root)
%{_includedir}/SDL/*
%{_libdir}/lib*.so
%{_includedir}/SDL/
%{_libdir}/libSDL_net.so
%{_libdir}/pkgconfig/SDL_net.pc
%changelog