Name: libomxil-vc4
Version: 0.0.1
-Release: 0.1
+Release: 4
Summary: Libraries for interfacing to Raspberry Pi GPU
Group: System/Libraries
URL: https://github.com/raspberrypi/userland
Source: %{name}-%{version}.tar.gz
-License: BSD
-BuildRequires: glibc-devel
+License: BSD-3-Clause
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig(libtbm)
+ExclusiveArch: %{arm}
%description
Libraries for interfacing to Raspberry Pi GPU.
-%package -n libomxil-vc4-utils
+%package utils
Group: System/Tools
Summary: System tools for the Raspberry Pi
-%description -n libomxil-vc4-utils
+%description utils
This package contains some system tools for the Raspberry Pi.
Source: https://github.com/libomxil-vc4/userland.git
-%package -n libomxil-vc4-devel
+%package devel
Group: Development/Libraries
Summary: Development files for the Raspberry Pi GPU
+Requires: %{name} = %{version}
-%description -n libomxil-vc4-devel
+%description devel
This package contains libraries and header files for developing applications that use Raspberry Pi GPU.
%prep
make
popd
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
%install
+mkdir -p %{buildroot}/etc/ld.so.conf.d/
+cp %{_builddir}/%{name}-%{version}/packaging/libomxil-vc4.conf %{buildroot}/etc/ld.so.conf.d
mkdir -p %{buildroot}/opt/vc/lib/plugins
mkdir %{buildroot}/opt/vc/lib/pkgconfig
mkdir %{buildroot}/opt/vc/bin
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
-%files -n libomxil-vc4-utils
-/opt/vc/bin/*
-%doc LICENCE COPYING
-
-%files -n libomxil-vc4
+%files
%manifest packaging/%{name}.manifest
%defattr(-,root,root)
-%license LICENCE COPYING
+%license LICENSE
/opt/vc/lib/lib*.so
/opt/vc/lib/plugins/*.so
+/etc/ld.so.conf.d/libomxil-vc4.conf
-%files -n libomxil-vc4-devel
+%files utils
+/opt/vc/bin/*
+%doc LICENSE
+
+%files devel
/opt/vc/lib/lib*.a
/opt/vc/include/EGL
/opt/vc/include/GLES
/opt/vc/include/vcinclude
/opt/vc/include/*.h
/opt/vc/lib/pkgconfig/*.pc
+