3 %bcond_with apidocs # build and package API docs (empty as of 0.3.1)
5 Summary: Generic OpenGL overlay statistics renderer
6 Summary(pl.UTF-8): Ogólna biblioteka do renderowania statystyk na nakładce OpenGL
12 Source0: https://github.com/Eyescale/GLStats/archive/%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5: ed80f815bdfdb714aa6269d35c6bfcc1
14 Patch0: %{name}-cmake.patch
15 Patch1: %{name}-shared.patch
16 URL: https://github.com/Eyescale/GLStats/
17 BuildRequires: Eyescale-CMake
18 BuildRequires: Lunchbox-devel >= 1.10
19 BuildRequires: OpenGL-devel
20 BuildRequires: boost-devel >= 1.41.0
21 BuildRequires: cmake >= 2.8
22 %{?with_apidocs:BuildRequires: doxygen}
23 BuildRequires: libstdc++-devel
24 BuildRequires: pkgconfig
25 Requires: Lunchbox >= 1.10
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Generic OpenGL overlay statistics renderer.
31 %description -l pl.UTF-8
32 Ogólna biblioteka do renderowania statystyk na nakładce OpenGL.
35 Summary: Header files for GLStats library
36 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GLStats
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
39 Requires: Lunchbox-devel >= 1.10
40 Requires: libstdc++-devel
43 Header files for GLStats library.
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki GLStats.
49 Summary: GLStats API documentation
50 Summary(pl.UTF-8): Dokumentacja API biblioteki GLStats
54 API documentation for GLStats library.
56 %description apidocs -l pl.UTF-8
57 Dokumentacja API biblioteki GLStats.
64 ln -s %{_datadir}/Eyescale-CMake CMake/common
79 rm -rf $RPM_BUILD_ROOT
81 %{__make} -C build install \
82 DESTDIR=$RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
87 %post -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
91 %defattr(644,root,root,755)
92 %doc LICENSE.txt README.md
93 %attr(755,root,root) %{_libdir}/libGLStats.so.*.*.*
94 %attr(755,root,root) %ghost %{_libdir}/libGLStats.so.1
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/libGLStats.so
99 %{_includedir}/GLStats
100 %{_pkgconfigdir}/GLStats.pc
101 %dir %{_datadir}/GLStats
102 %{_datadir}/GLStats/CMake
106 %defattr(644,root,root,755)
107 %doc build/doc/html/*