raspberrypi-userland/raspberrypi-userland.spec

160 lines
4.8 KiB
RPMSpec
Raw Normal View History

Name: raspberrypi-userland
Version: 20180624git
Release: 1mamba
Summary: Libraries for interfacing to Raspberry Pi GPU
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://www.raspberrypi.org/
## GITSOURCE git://github.com/raspberrypi/userland.git
Source: git://github.com/raspberrypi/userland.git/master/userland-%{version}.tar.bz2
Source1: raspberrypi-userland-ldconfig
Source2: tvservice-off
Source3: tvservice-on
Source4: tvservice-ison
Patch0: %{name}-20121028git-disable_cmake_toolchain_check.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: git
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
ExclusiveArch: arm
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Libraries for interfacing to Raspberry Pi GPU.
%package -n raspberrypi-utils
Group: System/Tools
Summary: System tools for the Raspberry Pi
%description -n raspberrypi-utils
This package contains some system tools for the Raspberry Pi.
Source: https://github.com/raspberrypi/userland.git
%package -n libraspberrypi
Group: System/Libraries
Summary: Libraries for interfacing to Raspberry Pi GPU
Obsoletes: raspberrypi-libs
Provides: raspberrypi-libs = %{?epoch:%epoch:}%{version}-%{release}
%description -n libraspberrypi
This package contains shared libraries for the Raspberry Pi.
%package -n libraspberrypi-devel
Group: Development/Libraries
Summary: Development files for the Raspberry Pi GPU
Requires: libraspberrypi = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: raspberrypi-devel
Provides: raspberrypi-devel = %{?epoch:%epoch:}%{version}-%{release}
%description -n libraspberrypi-devel
This package contains libraries and header files for developing applications that use Raspberry Pi GPU.
%prep
%setup -q -n userland-%{version}
#:<< _EOF
#%patch0 -p1
%build
# missing -lOpenVG
%cmake \
-DCMAKE_CXX_COMPILER=/usr/bin/g++ \
-DCMAKE_BUILD_TYPE=Release
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
for lib in libfdt.so libmmal_core.so libmmal_util.so libvcilcs.so; do
install build/lib/$lib %{buildroot}/opt/vc/lib/$lib
done
install -D %{S:1} %{buildroot}%{_sysconfdir}/ld.so.conf.d/vmcs.conf
install -m0755 %{S:2} %{buildroot}/opt/vc/bin/tvservice-off
install -m0755 %{S:3} %{buildroot}/opt/vc/bin/tvservice-on
install -m0755 %{S:4} %{buildroot}/opt/vc/bin/tvservice-ison
# remove unpackaged files
rm -f %{buildroot}/opt/vc/share/install/vmcs.conf
rm -fr %{buildroot}/opt/vc/src/hello_pi
# FIXME: VideoCore file server daemon
rm -f %{buildroot}/opt/vc/sbin/vcfiled
rm -f %{buildroot}/opt/vc/share/install/vcfiled
rm -f %{buildroot}/etc/init.d/vcfiled
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libraspberrypi -p /sbin/ldconfig
%postun -n libraspberrypi -p /sbin/ldconfig
%files -n raspberrypi-utils
%defattr(-,root,root)
#/opt/vc/bin/raspicam
/opt/vc/bin/*
%doc LICENCE
%files -n libraspberrypi
%defattr(-,root,root)
%{_sysconfdir}/ld.so.conf.d/vmcs.conf
%dir /opt/vc
%dir /opt/vc/lib
/opt/vc/lib/lib*.so
%dir /opt/vc/lib/plugins
/opt/vc/lib/plugins/*.so
%files -n libraspberrypi-devel
%defattr(-,root,root)
/opt/vc/lib/lib*.a
%dir /opt/vc/include
/opt/vc/include/EGL
/opt/vc/include/GLES
/opt/vc/include/GLES2
/opt/vc/include/IL
/opt/vc/include/KHR
/opt/vc/include/VG
/opt/vc/include/WF
/opt/vc/include/interface
/opt/vc/include/vcinclude
/opt/vc/include/*.h
/opt/vc/lib/pkgconfig/*.pc
%changelog
* Sun Jun 24 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 20180624git-1mamba
- update to 20180624git
* Sun Jul 10 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 20160710git-1mamba
- update to 20160710git
* Thu Jan 22 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 20150122git-1mamba
- update to 20150122git
* Fri Jan 17 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 20140117git-1mamba
- update to 20140117git
- added tvservice-ison script and fixed timings in tvservice-on
* Mon Nov 25 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 20131125git-1mamba
- update to 20131125git
- add convenience scripts tvservice-off and tvservice-on to allow workarounding missing power saving support (dpms)
* Mon Apr 01 2013 Automatic Build System <autodist@mambasoft.it> 20130401git-1mamba
- update to 20130401git
* Tue Feb 12 2013 Davide Madrisan <davide.madrisan@gmail.com> 20130207git-1mamba
- update to 20130207git
* Sun Dec 02 2012 Davide Madrisan <davide.madrisan@gmail.com> 20121202git-1mamba
- update to 20121202git
* Sun Oct 28 2012 Davide Madrisan <davide.madrisan@gmail.com> 20121028git-1mamba
- package created by autospec