From a2b3853ff909b7e332e2880b56781fa73abe3eea Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:15:44 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.0.20220623git.809bcea-1mamba;Sun Jul 17 2022] --- README.md | 2 ++ libfixmath.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 libfixmath.spec diff --git a/README.md b/README.md index cff3c3e..f0f7e99 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libfixmath +Cross Platform Fixed Point Maths Library. + diff --git a/libfixmath.spec b/libfixmath.spec new file mode 100644 index 0000000..9045454 --- /dev/null +++ b/libfixmath.spec @@ -0,0 +1,60 @@ +%define gittag %(echo %version | cut -d. -f4) +Name: libfixmath +Version: 0.0.20220623git.809bcea +Release: 1mamba +Summary: Cross Platform Fixed Point Maths Library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://code.google.com/archive/p/libfixmath/ +Source: https://github.com/PetteriAimonen/libfixmath.git/master@%{gittag}/libfixmath-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: cmake + +%description +Cross Platform Fixed Point Maths Library. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} + +%description devel +Cross Platform Fixed Point Maths Library. +This package contains libraries and header files for developing applications that use %{name}. + +#% debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +install -d -m0755 %{buildroot}%{_libdir} +cp build/liblibfixmath*.a %{buildroot}%{_libdir}/ + +install -d -m0755 %{buildroot}%{_includedir}/libfixmath +cp libfixmath/*.h %{buildroot}%{_includedir}/libfixmath/ +cp libfixmath/*.hpp %{buildroot}%{_includedir}/libfixmath/ + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libfixmath +%{_includedir}/libfixmath/*.h +%{_includedir}/libfixmath/*.hpp +%{_libdir}/liblibfixmath*.a +%doc AUTHORS LICENSE README.md + +%changelog +* Sun Jul 17 2022 Silvan Calarco 0.0.20220623git.809bcea-1mamba +- package created using the webbuild interface