SHA256
1
0
forked from pool/SDL_net

Accepting request 188151 from home:jengelh:branches:games

- Some metadata spruce-up: add current URLs, softer wildcarding
  in the files list, more robust make install call

OBS-URL: https://build.opensuse.org/request/show/188151
OBS-URL: https://build.opensuse.org/package/show/games/SDL_net?expand=0&rev=13
This commit is contained in:
Pavol Rusnak 2013-08-15 13:55:24 +00:00 committed by Git OBS Bridge
parent 544435fca2
commit f5aed703e3
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 Tue Aug 13 11:39:07 UTC 2013 - prusnak@opensuse.org

View File

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