]>
Commit | Line | Data |
---|---|---|
b26656be JB |
1 | Summary: Q16.16 format fixed point operations in C |
2 | Summary(pl.UTF-8): Operacje na formacie stałoprzecinkowym Q16.16 w C | |
3 | Name: libfixmath | |
4 | Version: 0 | |
5 | %define gitref b987044c73dcaba496bb5bc86e69d134cd8790ec | |
6 | %define snap 20230121 | |
7 | Release: 0.%{snap}.1 | |
8 | License: MIT | |
9 | Group: Libraries | |
10 | Source0: https://github.com/PetteriAimonen/libfixmath/archive/%{gitref}/%{name}-%{snap}.tar.gz | |
11 | # Source0-md5: dbf2e2f22589c46a8c385b7738f49188 | |
12 | URL: https://github.com/PetteriAimonen/libfixmath | |
13 | BuildRequires: cmake >= 3.13 | |
14 | BuildRequires: gcc >= 6:4.7 | |
15 | BuildRequires: libstdc++-devel >= 6:4.7 | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
9b784f18 JB |
18 | # only static library |
19 | %define _enable_debug_packages 0 | |
20 | ||
b26656be JB |
21 | %description |
22 | Libfixmath implements Q16.16 format fixed point operations in C. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | Libfixmath implementuje operacje na formacie stałoprzecinkowym Q16.16 | |
26 | w C. | |
27 | ||
28 | %package devel | |
29 | Summary: Q16.16 format fixed point operations in C | |
30 | Summary(pl.UTF-8): Operacje na formacie stałoprzecinkowym Q16.16 w C | |
31 | Group: Development/Libraries | |
32 | ||
33 | %description devel | |
34 | Libfixmath implements Q16.16 format fixed point operations in C. | |
35 | ||
36 | %description devel -l pl.UTF-8 | |
37 | Libfixmath implementuje operacje na formacie stałoprzecinkowym Q16.16 | |
38 | w C. | |
39 | ||
40 | %prep | |
41 | %setup -q -n %{name}-%{gitref} | |
42 | ||
43 | %build | |
44 | %cmake -B build | |
45 | ||
46 | %{__make} -C build | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/libfixmath} | |
51 | ||
52 | # as expected by libreoffice (7.5.x) | |
53 | cp -p libfixmath/*.{h,hpp} $RPM_BUILD_ROOT%{_includedir}/libfixmath | |
54 | cp -p build/liblibfixmath.a $RPM_BUILD_ROOT%{_libdir} | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files devel | |
60 | %defattr(644,root,root,755) | |
61 | %doc AUTHORS LICENSE README.md | |
62 | %{_libdir}/liblibfixmath.a | |
63 | %{_includedir}/libfixmath |