]> git.pld-linux.org Git - packages/libfixmath.git/blame - libfixmath.spec
- disable debug packages
[packages/libfixmath.git] / libfixmath.spec
CommitLineData
b26656be
JB
1Summary: Q16.16 format fixed point operations in C
2Summary(pl.UTF-8): Operacje na formacie stałoprzecinkowym Q16.16 w C
3Name: libfixmath
4Version: 0
5%define gitref b987044c73dcaba496bb5bc86e69d134cd8790ec
6%define snap 20230121
7Release: 0.%{snap}.1
8License: MIT
9Group: Libraries
10Source0: https://github.com/PetteriAimonen/libfixmath/archive/%{gitref}/%{name}-%{snap}.tar.gz
11# Source0-md5: dbf2e2f22589c46a8c385b7738f49188
12URL: https://github.com/PetteriAimonen/libfixmath
13BuildRequires: cmake >= 3.13
14BuildRequires: gcc >= 6:4.7
15BuildRequires: libstdc++-devel >= 6:4.7
16BuildRoot: %{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
22Libfixmath implements Q16.16 format fixed point operations in C.
23
24%description -l pl.UTF-8
25Libfixmath implementuje operacje na formacie stałoprzecinkowym Q16.16
26w C.
27
28%package devel
29Summary: Q16.16 format fixed point operations in C
30Summary(pl.UTF-8): Operacje na formacie stałoprzecinkowym Q16.16 w C
31Group: Development/Libraries
32
33%description devel
34Libfixmath implements Q16.16 format fixed point operations in C.
35
36%description devel -l pl.UTF-8
37Libfixmath implementuje operacje na formacie stałoprzecinkowym Q16.16
38w 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
49rm -rf $RPM_BUILD_ROOT
50install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/libfixmath}
51
52# as expected by libreoffice (7.5.x)
53cp -p libfixmath/*.{h,hpp} $RPM_BUILD_ROOT%{_includedir}/libfixmath
54cp -p build/liblibfixmath.a $RPM_BUILD_ROOT%{_libdir}
55
56%clean
57rm -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
This page took 0.140813 seconds and 4 git commands to generate.