From 1d041dfcc613acbb47094b92fe5c69758f8185bd Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:42:24 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.0.4-1mamba;Mon Mar 22 2021] --- README.md | 2 ++ sdl2_gfx.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 sdl2_gfx.spec diff --git a/README.md b/README.md index c00c232..2877612 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # sdl2_gfx +Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2. + diff --git a/sdl2_gfx.spec b/sdl2_gfx.spec new file mode 100644 index 0000000..caf948e --- /dev/null +++ b/sdl2_gfx.spec @@ -0,0 +1,78 @@ +Name: sdl2_gfx +Version: 1.0.4 +Release: 1mamba +Summary: Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2 +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://sourceforge.net/projects/sdl2gfx/ +Source: https://sourceforge.net/projects/sdl2gfx/files/SDL2_gfx-%{version}.tar.gz +License: zlib/libpng +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libSDL2-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%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} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q -n SDL2_gfx-%{version} +sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub + +%build +%configure \ +%ifnarch x86_64 %{ix86} + --disable-mmx +%endif + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%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}/libSDL2_gfx-1.0.so.* +%doc AUTHORS COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/SDL2/SDL2_*.h +%{_libdir}/libSDL2_gfx.a +%{_libdir}/libSDL2_gfx.la +%{_libdir}/libSDL2_gfx.so +%{_libdir}/pkgconfig/SDL2_gfx.pc +%doc ChangeLog NEWS README + +%changelog +* Mon Mar 22 2021 Silvan Calarco 1.0.4-1mamba +- package created using the webbuild interface