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