]> git.pld-linux.org Git - packages/virglrenderer.git/blame - virglrenderer.spec
- new
[packages/virglrenderer.git] / virglrenderer.spec
CommitLineData
ff16879a
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4#
5Summary: VirGL virtual OpenGL renderer library
6Summary(pl.UTF-8): VirGL - biblioteka wirtualnego renderera OpenGL
7Name: virglrenderer
8Version: 0.5.0
9Release: 1
10License: MIT
11Group: Libraries
12Source0: https://www.freedesktop.org/software/virgl/%{name}-%{version}.tar.bz2
13# Source0-md5: 29804ecd1713e298828f9d1642eb289d
14Patch0: %{name}-link.patch
15URL: https://virgil3d.github.io/
16BuildRequires: autoconf >= 2.60
17BuildRequires: automake
18BuildRequires: check-devel >= 0.9.4
19BuildRequires: libdrm-devel >= 2.4.50
20BuildRequires: libepoxy-devel
21BuildRequires: libtool >= 2:2
22BuildRequires: pkgconfig
23BuildRequires: python >= 2
24Requires: libdrm >= 2.4.50
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28VirGL virtual OpenGL renderer library.
29
30%description -l pl.UTF-8
31VirGL - biblioteka wirtualnego renderera OpenGL.
32
33%package devel
34Summary: Header file for virglrenderer library
35Summary(pl.UTF-8): Plik nagłówkowy biblioteki virglrenderer
36Group: Development/Libraries
37Requires: %{name} = %{version}-%{release}
38
39%description devel
40Header file for virglrenderer library.
41
42%description devel -l pl.UTF-8
43Plik nagłówkowy biblioteki virglrenderer.
44
45%package static
46Summary: Static virglrenderer library
47Summary(pl.UTF-8): Statyczna biblioteka virglrenderer
48Group: Development/Libraries
49Requires: %{name}-devel = %{version}-%{release}
50
51%description static
52Static virglrenderer library.
53
54%description static -l pl.UTF-8
55Statyczna biblioteka virglrenderer.
56
57%prep
58%setup -q
59%patch0 -p1
60
61%build
62%{__libtoolize}
63%{__aclocal} -I build-aux
64%{__autoconf}
65%{__autoheader}
66%{__automake}
67%configure \
68 --disable-silent-rules \
69 %{?with_static_libs:--enable-static}
70%{__make}
71
72%install
73rm -rf $RPM_BUILD_ROOT
74
75%{__make} install \
76 DESTDIR=$RPM_BUILD_ROOT
77
78# obsoleted by pkg-config
79%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirglrenderer.la
80
81%clean
82rm -rf $RPM_BUILD_ROOT
83
84%files
85%defattr(644,root,root,755)
86%doc COPYING
87%attr(755,root,root) %{_bindir}/virgl_test_server
88%attr(755,root,root) %{_libdir}/libvirglrenderer.so.*.*.*
89%attr(755,root,root) %ghost %{_libdir}/libvirglrenderer.so.0
90
91%files devel
92%defattr(644,root,root,755)
93%attr(755,root,root) %{_libdir}/libvirglrenderer.so
94%{_includedir}/virgl
95%{_pkgconfigdir}/virglrenderer.pc
96
97%if %{with static_libs}
98%files static
99%defattr(644,root,root,755)
100%{_libdir}/libvirglrenderer.a
101%endif
This page took 0.058215 seconds and 4 git commands to generate.