]>
Commit | Line | Data |
---|---|---|
17e84106 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # doxygen/sphinx+breathe API documentation | |
4 | # | |
dbe2120a | 5 | Summary: A collection of multi-dimensional data structures and indexing algorithms |
021b4724 | 6 | Summary(pl.UTF-8): Zbiór struktur danych wielowymiarowych oraz algorytmów indeksujących |
dbe2120a | 7 | Name: mdds |
26bd86d7 JB |
8 | # keep in sync with BuildRequires in libreoffice.spec, ixion.spec, liborcus.spec |
9 | Version: 2.0.3 | |
c8be9e45 | 10 | Release: 1 |
dbe2120a AM |
11 | License: MIT |
12 | Group: Development/Libraries | |
79af1c03 | 13 | #Source0Download: https://gitlab.com/mdds/mdds/-/releases |
26bd86d7 JB |
14 | Source0: https://kohei.us/files/mdds/src/%{name}-%{version}.tar.xz |
15 | # Source0-md5: 6ff7a461e9fc408c508bbfbf1f53969a | |
17e84106 | 16 | Patch0: %{name}-doc.patch |
0a68325b | 17 | URL: https://gitlab.com/mdds/mdds |
47d79994 | 18 | BuildRequires: boost-devel >= 1.39 |
17e84106 | 19 | BuildRequires: libstdc++-devel >= 6:4.7 |
35b5323a | 20 | BuildRequires: rpmbuild(macros) >= 1.446 |
79af1c03 JB |
21 | BuildRequires: tar >= 1:1.22 |
22 | BuildRequires: xz | |
17e84106 JB |
23 | %if %{with apidocs} |
24 | BuildRequires: doxygen | |
fa097365 | 25 | BuildRequires: python3-breathe |
c8be9e45 | 26 | BuildRequires: sphinx-pdg-3 |
17e84106 | 27 | %endif |
dbe2120a | 28 | BuildArch: noarch |
843e0754 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
dbe2120a AM |
30 | |
31 | %description | |
32 | A collection of multi-dimensional data structures and indexing | |
33 | algorithms. | |
34 | ||
35 | It implements the following data structures: | |
36 | - segment tree | |
37 | - flat segment tree | |
38 | - rectangle set | |
39 | - point quad tree | |
40 | - mixed type matrix | |
41 | ||
021b4724 JB |
42 | %description -l pl.UTF-8 |
43 | Zbiór struktur danych wielowymiarowych oraz algorytmów indeksujących. | |
44 | Zaimplementowane są następujące struktury danych: | |
45 | - drzewo segmentowe | |
46 | - płaskie drzewo segmentowe | |
47 | - zbiór prostokątów | |
48 | - drzewo czwórkowe (quadtree) dla punktów | |
49 | - macierz mieszana | |
50 | ||
dbe2120a | 51 | %package devel |
021b4724 JB |
52 | Summary: A collection of multi-dimensional data structures and indexing algorithms |
53 | Summary(pl.UTF-8): Zbiór struktur danych wielowymiarowych oraz algorytmów indeksujących | |
dbe2120a | 54 | Group: Development/Libraries |
47d79994 | 55 | Requires: boost-devel >= 1.39 |
17e84106 | 56 | Requires: libstdc++-devel >= 6:4.7 |
dbe2120a AM |
57 | |
58 | %description devel | |
021b4724 JB |
59 | A collection of multi-dimensional data structures and indexing |
60 | algorithms. | |
61 | ||
62 | It implements the following data structures: | |
63 | - segment tree | |
64 | - flat segment tree | |
65 | - rectangle set | |
66 | - point quad tree | |
67 | - mixed type matrix | |
68 | ||
69 | %description devel -l pl.UTF-8 | |
70 | Zbiór struktur danych wielowymiarowych oraz algorytmów indeksujących. | |
71 | Zaimplementowane są następujące struktury danych: | |
72 | - drzewo segmentowe | |
73 | - płaskie drzewo segmentowe | |
74 | - zbiór prostokątów | |
75 | - drzewo czwórkowe (quadtree) dla punktów | |
76 | - macierz mieszana | |
dbe2120a | 77 | |
17e84106 JB |
78 | %package apidocs |
79 | Summary: API documentation for MDDS | |
80 | Summary(pl.UTF-8): Dokumentacja API biblioteki MDDS | |
81 | Group: Documentation | |
82 | ||
83 | %description apidocs | |
84 | API documentation for MDDS. | |
85 | ||
86 | %description apidocs -l pl.UTF-8 | |
87 | Dokumentacja API biblioteki MDDS. | |
88 | ||
dbe2120a | 89 | %prep |
c8be9e45 | 90 | %setup -q |
dbe2120a | 91 | |
dbe2120a | 92 | %build |
c8be9e45 JB |
93 | %configure \ |
94 | SPHINX=/usr/bin/sphinx-build-3 \ | |
95 | %{?with_apidocs:--enable-docs} | |
96 | ||
97 | %{__make} | |
17e84106 | 98 | |
c8be9e45 | 99 | %if %{with apidocs} |
79af1c03 | 100 | %{__make} doc |
c8be9e45 | 101 | %endif |
dbe2120a AM |
102 | |
103 | %install | |
104 | rm -rf $RPM_BUILD_ROOT | |
17e84106 JB |
105 | |
106 | %{__make} install \ | |
107 | DESTDIR=$RPM_BUILD_ROOT | |
108 | ||
109 | # packaged as %doc | |
5e9669f0 | 110 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mdds |
dbe2120a AM |
111 | |
112 | %clean | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
344f4da2 | 117 | %doc AUTHORS CHANGELOG LICENSE README.md |
26bd86d7 JB |
118 | %{_includedir}/mdds-2.0 |
119 | %{_npkgconfigdir}/mdds-2.0.pc | |
17e84106 | 120 | |
ceee0b3a | 121 | %if %{with apidocs} |
17e84106 JB |
122 | %files apidocs |
123 | %defattr(644,root,root,755) | |
c8be9e45 | 124 | %doc doc/_doxygen/html doc/_build/{_static,*.html,*.js} |
ceee0b3a | 125 | %endif |