79 lines
2.1 KiB
RPMSpec
79 lines
2.1 KiB
RPMSpec
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 <silvan.calarco@mambasoft.it>
|
|
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 <silvan.calarco@mambasoft.it> 1.0.4-1mamba
|
|
- package created using the webbuild interface
|