]> git.pld-linux.org Git - packages/GLStats.git/blame - GLStats.spec
- updated to 0.3.2
[packages/GLStats.git] / GLStats.spec
CommitLineData
46b50617
JB
1#
2# Conditional build:
3%bcond_with apidocs # build and package API docs (empty as of 0.3.1)
4#
5Summary: Generic OpenGL overlay statistics renderer
6Summary(pl.UTF-8): Ogólna biblioteka do renderowania statystyk na nakładce OpenGL
7Name: GLStats
1ff0fa01 8Version: 0.3.2
46b50617
JB
9Release: 1
10License: LGPL v2.1
11Group: Libraries
1ff0fa01 12#Source0Download: https://github.com/Eyescale/GLStats/tags
46b50617 13Source0: https://github.com/Eyescale/GLStats/archive/%{version}/%{name}-%{version}.tar.gz
1ff0fa01 14# Source0-md5: 4af2acee59974144ae2cad2930af14aa
46b50617
JB
15Patch0: %{name}-cmake.patch
16Patch1: %{name}-shared.patch
1ff0fa01 17Patch2: %{name}-update.patch
46b50617 18URL: https://github.com/Eyescale/GLStats/
1ff0fa01 19BuildRequires: Eyescale-CMake >= 2018.2
46b50617 20BuildRequires: Lunchbox-devel >= 1.10
1ff0fa01 21BuildRequires: Servus-devel
46b50617 22BuildRequires: OpenGL-devel
46b50617
JB
23BuildRequires: cmake >= 2.8
24%{?with_apidocs:BuildRequires: doxygen}
25BuildRequires: libstdc++-devel
26BuildRequires: pkgconfig
27Requires: Lunchbox >= 1.10
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31Generic OpenGL overlay statistics renderer.
32
33%description -l pl.UTF-8
34Ogólna biblioteka do renderowania statystyk na nakładce OpenGL.
35
36%package devel
37Summary: Header files for GLStats library
38Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GLStats
39Group: Development/Libraries
40Requires: %{name} = %{version}-%{release}
41Requires: Lunchbox-devel >= 1.10
42Requires: libstdc++-devel
43
44%description devel
45Header files for GLStats library.
46
47%description devel -l pl.UTF-8
48Pliki nagłówkowe biblioteki GLStats.
49
50%package apidocs
51Summary: GLStats API documentation
52Summary(pl.UTF-8): Dokumentacja API biblioteki GLStats
53Group: Documentation
54
55%description apidocs
56API documentation for GLStats library.
57
58%description apidocs -l pl.UTF-8
59Dokumentacja API biblioteki GLStats.
60
61%prep
62%setup -q
63%patch0 -p1
64%patch1 -p1
1ff0fa01 65%patch2 -p1
46b50617
JB
66
67ln -s %{_datadir}/Eyescale-CMake CMake/common
68%{__rm} .gitexternals
69
70%build
71install -d build
72cd build
73%cmake ..
74
75%{__make}
76
77%if %{with apidocs}
78doxygen doc/Doxyfile
79%endif
80
81%install
82rm -rf $RPM_BUILD_ROOT
83
84%{__make} -C build install \
85 DESTDIR=$RPM_BUILD_ROOT
86
87%clean
88rm -rf $RPM_BUILD_ROOT
89
90%post -p /sbin/ldconfig
91%postun -p /sbin/ldconfig
92
93%files
94%defattr(644,root,root,755)
95%doc LICENSE.txt README.md
96%attr(755,root,root) %{_libdir}/libGLStats.so.*.*.*
97%attr(755,root,root) %ghost %{_libdir}/libGLStats.so.1
98
99%files devel
100%defattr(644,root,root,755)
101%attr(755,root,root) %{_libdir}/libGLStats.so
102%{_includedir}/GLStats
46b50617
JB
103%dir %{_datadir}/GLStats
104%{_datadir}/GLStats/CMake
105
106%if %{with apidocs}
107%files apidocs
108%defattr(644,root,root,755)
109%doc build/doc/html/*
110%endif
This page took 0.081611 seconds and 4 git commands to generate.