From f1451aa672a79fe03fb9b577984d5ae82777d44a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 2 Apr 2024 10:20:03 +0200 Subject: [PATCH] package created using the webbuild interface [release 1.2.68-1mamba;Mon Apr 01 2024] --- README.md | 2 ++ sdl12-compat.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 sdl12-compat.spec diff --git a/README.md b/README.md index 2825767..1d9ff8f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # sdl12-compat +An SDL-1.2 compatibility layer that uses SDL 2.0 behind the scenes. + diff --git a/sdl12-compat.spec b/sdl12-compat.spec new file mode 100644 index 0000000..bd15d99 --- /dev/null +++ b/sdl12-compat.spec @@ -0,0 +1,78 @@ +Name: sdl12-compat +Version: 1.2.68 +Release: 1mamba +Summary: An SDL-1.2 compatibility layer that uses SDL 2.0 behind the scenes +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/libsdl-org/sdl12-compat +Source: https://github.com/libsdl-org/sdl12-compat.git/release-%{version}/sdl12-compat-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +An SDL-1.2 compatibility layer that uses SDL 2.0 behind the scenes. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} +Provides: libSDL +Obsoletes: libSDL <= 1.2.15-2mamba + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Provides: libSDL-devel +Obsoletes: libSDL-devel <= 1.2.15-2mamba + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%cmake +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libSDL-1.2.so.* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_bindir}/sdl-config +%dir %{_includedir}/SDL +%{_includedir}/SDL/*.h +%{_libdir}/libSDL-1.2.so +%{_libdir}/libSDL.so +%{_libdir}/libSDLmain.a +%{_libdir}/pkgconfig/sdl12_compat.pc +%{_datadir}/aclocal/sdl.m4 +%doc README.md + +%changelog +* Mon Apr 01 2024 Silvan Calarco 1.2.68-1mamba +- package created using the webbuild interface