]> git.pld-linux.org Git - packages/vmmlib.git/blob - vmmlib.spec
8347345ea861c9b428a24d60bb608397cfbd294e
[packages/vmmlib.git] / vmmlib.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # do not build and package API docs
4
5 Summary:        Vector and Matrix Math Library for C++
6 Summary(pl.UTF-8):      Vector and Matrix Math Library - biblioteka matematyczna wektorów i macierzy w C++
7 Name:           vmmlib
8 Version:        1.14.0
9 Release:        1
10 License:        BSD
11 Group:          Libraries
12 #Source0Download: https://github.com/Eyescale/vmmlib/releases
13 Source0:        https://github.com/Eyescale/vmmlib/archive/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5:  f25e57bfc1e4699447963f5dbafd22f2
15 URL:            http://vmml.github.io/vmmlib/
16 BuildRequires:  Eyescale-CMake >= 2018.02
17 BuildRequires:  boost-devel
18 BuildRequires:  cmake >= 3.1
19 %{?with_apidocs:BuildRequires:  doxygen}
20 BuildRequires:  libstdc++-devel
21 Requires:       boost-devel
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 A templatized C++ vector and matrix math library.
26
27 %description -l pl.UTF-8
28 Biblioteka matematyczna wektorów i macierzy oparta na szablonach C++.
29
30 %package apidocs
31 Summary:        vmmlib API documentation
32 Summary(pl.UTF-8):      Dokumentacja API biblioteki vmmlib
33 Group:          Documentation
34 %if "%{_rpmversion}" >= "5"
35 BuildArch:      noarch
36 %endif
37
38 %description apidocs
39 API documentation for vmmlib library.
40
41 %description apidocs -l pl.UTF-8
42 Dokumentacja API biblioteki vmmlib.
43
44 %prep
45 %setup -q
46
47 rmdir CMake/common
48 ln -s %{_datadir}/Eyescale-CMake CMake/common
49
50 %build
51 install -d build
52 cd build
53 %cmake ..
54 %{__make}
55
56 %if %{with apidocs}
57 doxygen doc/Doxyfile
58 %endif
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62
63 %{__make} -C build install \
64         DESTDIR=$RPM_BUILD_ROOT
65
66 %{__rm} $RPM_BUILD_ROOT%{_datadir}/vmmlib/{ACKNOWLEDGEMENTS,LICENSE.txt,README.md}
67 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vmmlib/tests
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %doc ACKNOWLEDGEMENTS LICENSE.txt README.md doc/Changelog.md
75 %{_includedir}/vmmlib
76 %dir %{_datadir}/vmmlib
77 %{_datadir}/vmmlib/CMake
78
79 %if %{with apidocs}
80 %files apidocs
81 %defattr(644,root,root,755)
82 %doc build/doc/html/*
83 %endif
This page took 0.054468 seconds and 3 git commands to generate.