diff --git a/README.md b/README.md index c71fa7f..a007088 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # sdl2_pango +SDL2_Pango is a library for graphically rendering internationalized and tagged text in SDL2 using TrueType fonts. + diff --git a/sdl2_pango.spec b/sdl2_pango.spec new file mode 100644 index 0000000..5c69375 --- /dev/null +++ b/sdl2_pango.spec @@ -0,0 +1,77 @@ +Name: sdl2_pango +Version: 2.1.5 +Release: 1mamba +Summary: A library for graphically rendering internationalized and tagged text in SDL2 using TrueType fonts +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/markuskimius/SDL2_Pango +Source: https://github.com/markuskimius/SDL2_Pango.git/v%{version}/SDL2_Pango-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libSDL2-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libglib-devel +BuildRequires: libharfbuzz-devel +BuildRequires: libpango-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +SDL2_Pango is a library for graphically rendering internationalized and tagged text in SDL2 using TrueType fonts. + +%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_Pango-%{version} + +%build +%configure +%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_Pango.so.* +%doc AUTHORS COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/SDL2_Pango.h +%{_libdir}/libSDL2_Pango.a +%{_libdir}/libSDL2_Pango.so +%{_libdir}/pkgconfig/SDL2_Pango.pc +%doc ChangeLog README README.md + +%changelog +* Wed Jun 07 2023 Silvan Calarco 2.1.5-1mamba +- package created using the webbuild interface