mirror of
https://abf.rosa.ru/djam/uefitool.git
synced 2025-02-23 04:52:46 +00:00
71 lines
1.4 KiB
RPMSpec
71 lines
1.4 KiB
RPMSpec
%define oname UEFITool
|
|
|
|
Name: uefitool
|
|
Version: A68
|
|
Release: 1
|
|
Summary: UEFI firmware image viewer and editor
|
|
URL: https://github.com/LongSoft/%{oname}
|
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
License: BSD
|
|
Group: Development/Other
|
|
Provides: %{oname}
|
|
Provides: UEFIExtract
|
|
Provides: UEFIFind
|
|
BuildRequires: cmake
|
|
BuildRequires: zip
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(gl)
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
%description
|
|
%{summary}
|
|
|
|
%prep
|
|
%setup -qn %{oname}-%{version}
|
|
|
|
sed -i 's/qmake/qmake-qt5/g' unixbuild.sh
|
|
|
|
%build
|
|
|
|
pushd UEFIExtract
|
|
%cmake
|
|
%make
|
|
popd
|
|
|
|
pushd UEFIFind
|
|
%cmake
|
|
%make
|
|
popd
|
|
|
|
pushd UEFITool
|
|
%qmake_qt5
|
|
%make
|
|
popd
|
|
|
|
%install
|
|
install -Dm0755 UEFITool/%{oname} %{buildroot}%{_bindir}/%{oname}
|
|
install -Dm0755 UEFIFind/build/UEFIFind %{buildroot}%{_bindir}/UEFIFind
|
|
install -Dm0755 UEFIExtract/build/UEFIExtract %{buildroot}%{_bindir}/UEFIExtract
|
|
|
|
pushd %{buildroot}%{_bindir}
|
|
ln -s %{oname} %{name}
|
|
popd
|
|
|
|
install -Dm0644 %{oname}/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
# install icons
|
|
pushd %{oname}/icons
|
|
for i in 16 32 48 64 128 256 512; do
|
|
install -Dm0644 %{name}_"$i"x"$i".png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{name}.png
|
|
done
|
|
popd
|
|
|
|
|
|
%files
|
|
%doc README.md LICENSE.md
|
|
%{_bindir}/*
|
|
%{_datadir}/applications/*
|
|
%{_iconsdir}/*
|