commit de593a670ebfba5418e851ea35c9c86e8176a6a5
Author: Andrew Bauer <zonexpertconsulting(a)outlook.com>
Date: Sat Dec 15 14:39:59 2018 -0600
Refactor for RPM Fusion
See RFBZ 5074
raspberrypi-vc.spec | 15 +++++++++++++++
1 file changed, 15 insertions(+)
---
diff --git a/raspberrypi-vc.spec b/raspberrypi-vc.spec
index a50a10b..f9661f4 100644
--- a/raspberrypi-vc.spec
+++ b/raspberrypi-vc.spec
@@ -17,6 +17,7 @@ ExclusiveArch: armv7hl
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: systemd
+BuildRequires: coreutils
# Packages using raspberrypi-vc must Requires this:
#%%{?raspberrypi_vc_version:Requires: raspberrypi_vc%%{?_isa} =
%%{raspberrypi_vc_version}}
@@ -92,6 +93,15 @@ pushd build
%make_install
popd
+#RPM Macros support
+mkdir -p %{buildroot}%{rpmmacrodir}
+cat > %{buildroot}%{rpmmacrodir}/macros.%{name} << EOF
+# raspberrypi-vc RPM Macros
+%raspberrypi_vc_version %{version}
+EOF
+# Yes - the filename really is spelled LICENCE
+touch -r LICENCE %{buildroot}%{rpmmacrodir}/macros.%{name}
+
### libs
mkdir -p %{buildroot}/%{_libdir}/vc
mv %{buildroot}/%{_libdir}/{*.so,*.a} %{buildroot}/%{_libdir}/vc
@@ -168,6 +178,10 @@ ln -s %{_includedir}/vc %{buildroot}/opt/vc/include
%{_libdir}/vc/libvchiq_arm.so
%{_libdir}/vc/libvcos.so
%{_libdir}/vc/libvcsm.so
+%{_libdir}/vc/libvcfiled_check.so
+%{_libdir}/vc/libvchostif.so
+%{_libdir}/vc/libvcilcs.so
+%{_libdir}/vc/libkhrn_client.so
%{_libdir}/vc/plugins/reader_asf.so
%{_libdir}/vc/plugins/reader_avi.so
%{_libdir}/vc/plugins/reader_binary.so
@@ -195,6 +209,7 @@ ln -s %{_includedir}/vc %{buildroot}/opt/vc/include
%files devel
+%{rpmmacrodir}/macros.%{name}
%{_includedir}/vc/*
%{_datadir}/pkgconfig/*.pc
%{_libdir}/vc/pkgconfig/*.pc
Show replies by date