mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-24 12:30:39 +00:00
651b7f63c7
* chore: Mass update email in Roachy's specs
* fix(pokeshell): Recommends
* chore: Bump releases
* Update xone.spec
* Update falcond-gui.spec
* Update ghostty-nightly.spec
* Update ghostty.spec
* Update epsonscan2.spec
* Update neovim-default-editor.spec
---------
(cherry picked from commit ce4d5269c0)
Signed-off-by: Gilver <roachy@fyralabs.com>
Signed-off-by: GildedRoach <GildedRoach@users.noreply.github.com>
93 lines
2.7 KiB
RPMSpec
93 lines
2.7 KiB
RPMSpec
%global debug_package %{nil}
|
|
%global commit eff4a63c32b3ce4ac86d521d924b9973bbec8b99
|
|
%global commit_date 20250521
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
%global ver 1.0.0
|
|
|
|
Name: ipu6-camera-bins
|
|
Summary: Libraries for Intel IPU6
|
|
Version: %{ver}^%{commit_date}git.%{shortcommit}
|
|
Release: 2%{?dist}
|
|
%if 0%{?fedora} <= 43 || 0%{?rhel} <= 10
|
|
Epoch: 1
|
|
%endif
|
|
License: Proprietary
|
|
URL: https://github.com/intel/ipu6-camera-bins
|
|
Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
|
BuildRequires: chrpath
|
|
BuildRequires: sed
|
|
BuildRequires: systemd-rpm-macros
|
|
#Requires: gstreamer1-plugin-icamerasrc
|
|
Requires: intel-ipu6-kmod
|
|
Requires: intel-vsc-firmware >= 20240513
|
|
Requires: v4l2-relayd
|
|
Obsoletes: ipu6-camera-bins-firmware < 0.0-11
|
|
# < 6.10 is falling out of third party and official support on Fedora
|
|
%if 0%{?fedora}
|
|
# Versioning scheme quirk
|
|
%if 0%{?fedora} <= 43
|
|
Obsoletes: ivsc-firmware < 20250326.3377801-3
|
|
%endif
|
|
Obsoletes: ivsc-firmware < 0^20250326git.3377801-3
|
|
%endif
|
|
# Fix the stupid issue when changing versioning schemes
|
|
%if 0%{?fedora} <= 43 || 0%{?rhel} <= 10
|
|
Provides: %{name} = %{?epoch:%{epoch}:}%{commit_date}.%{shortcommit}-%{release}
|
|
Obsoletes: %{name} < %{?epoch:%{epoch}:}%{commit_date}.%{shortcommit}-2
|
|
%endif
|
|
ExclusiveArch: x86_64
|
|
Packager: Gilver E. <roachy@fyralabs.com>
|
|
|
|
%description
|
|
Provides binary libraries for Intel IPU6.
|
|
|
|
%package devel
|
|
Summary: IPU6 development files
|
|
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
%if 0%{?fedora} <= 43 || 0%{?rhel} <= 10
|
|
Provides: %{name}-devel = %{?epoch:%{epoch}:}%{commit_date}.%{shortcommit}-%{release}
|
|
Obsoletes: %{name}-devel < %{?epoch:%{epoch}:}%{commit_date}.%{shortcommit}-2
|
|
%endif
|
|
|
|
%description devel
|
|
This provides the header files for IPU6 development.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{commit}
|
|
chrpath --delete lib/*.so.0
|
|
chmod +x lib/*.so.0
|
|
# The firmware is part of linux-firmware!
|
|
rm -r lib/firmware
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_includedir}/
|
|
cp -pr include/* %{buildroot}%{_includedir}/
|
|
install -Dm755 lib/*.so* -t %{buildroot}%{_libdir}
|
|
install -Dm644 lib/*.a -t %{buildroot}%{_libdir}
|
|
install -Dm644 lib/pkgconfig/* -t %{buildroot}%{_libdir}/pkgconfig
|
|
pushd %{buildroot}%{_libdir}
|
|
for i in *.so.0; do
|
|
ln -s $i `echo $i | sed -e "s|\.so\.0|\.so|"`
|
|
done
|
|
for i in pkgconfig/*.pc; do
|
|
sed -i -e "s|libdir=\${exec_prefix}/lib|libdir=%{_libdir}|g" "$i"
|
|
done
|
|
popd
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%doc SECURITY.md
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%{_includedir}/ipu6*
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_libdir}/*.a
|
|
%{_libdir}/*.so
|
|
|
|
%changelog
|
|
%autochangelog
|