mirror of
https://abf.rosa.ru/djam/uefitool.git
synced 2025-02-23 04:52:46 +00:00
A68
This commit is contained in:
parent
3ddc150bff
commit
24a9ac3fc0
1 changed files with 33 additions and 19 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Name: uefitool
|
Name: uefitool
|
||||||
Version: A68
|
Version: A68
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: UEFI firmware image viewer and editor
|
Summary: UEFI firmware image viewer and editor
|
||||||
URL: https://github.com/LongSoft/%{oname}
|
URL: https://github.com/LongSoft/%{oname}
|
||||||
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
@ -11,7 +11,8 @@ Group: Development/Other
|
||||||
Provides: %{oname}
|
Provides: %{oname}
|
||||||
Provides: UEFIExtract
|
Provides: UEFIExtract
|
||||||
Provides: UEFIFind
|
Provides: UEFIFind
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake >= 3.22
|
||||||
|
BuildRequires: qmake5
|
||||||
BuildRequires: zip
|
BuildRequires: zip
|
||||||
BuildRequires: pkgconfig(Qt5Core)
|
BuildRequires: pkgconfig(Qt5Core)
|
||||||
BuildRequires: pkgconfig(Qt5Gui)
|
BuildRequires: pkgconfig(Qt5Gui)
|
||||||
|
@ -19,6 +20,10 @@ BuildRequires: pkgconfig(Qt5Widgets)
|
||||||
BuildRequires: pkgconfig(x11)
|
BuildRequires: pkgconfig(x11)
|
||||||
BuildRequires: pkgconfig(gl)
|
BuildRequires: pkgconfig(gl)
|
||||||
BuildRequires: pkgconfig(xext)
|
BuildRequires: pkgconfig(xext)
|
||||||
|
BuildRequires: meson
|
||||||
|
BuildRequires: ninja
|
||||||
|
BuildRequires: stdc++-devel
|
||||||
|
BuildRequires: qt515
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}
|
%{summary}
|
||||||
|
@ -26,35 +31,45 @@ BuildRequires: pkgconfig(xext)
|
||||||
%prep
|
%prep
|
||||||
%setup -qn %{oname}-%{version}
|
%setup -qn %{oname}-%{version}
|
||||||
|
|
||||||
sed -i 's/qmake/qmake-qt5/g' unixbuild.sh
|
#sed -i 's/qmake/qmake-qt5/g' unixbuild.sh
|
||||||
|
sed -i 's/Qt6/Qt5/' UEFITool/CMakeLists.txt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
#export Qt5_DIR=/opt/qt5/5.15/
|
||||||
|
%meson
|
||||||
|
%meson_build
|
||||||
|
|
||||||
pushd UEFIExtract
|
#pushd UEFIExtract
|
||||||
%cmake
|
#cmake
|
||||||
%make
|
#make
|
||||||
popd
|
#popd
|
||||||
|
|
||||||
pushd UEFIFind
|
#pushd UEFIFind
|
||||||
%cmake
|
#cmake
|
||||||
%make
|
#make
|
||||||
popd
|
#popd
|
||||||
|
|
||||||
pushd UEFITool
|
pushd UEFITool
|
||||||
%qmake_qt5
|
#qmake_qt5
|
||||||
|
%cmake
|
||||||
%make
|
%make
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -Dm0755 UEFITool/%{oname} %{buildroot}%{_bindir}/%{oname}
|
%meson_install
|
||||||
install -Dm0755 UEFIFind/build/UEFIFind %{buildroot}%{_bindir}/UEFIFind
|
#makeinstall -C build
|
||||||
install -Dm0755 UEFIExtract/build/UEFIExtract %{buildroot}%{_bindir}/UEFIExtract
|
|
||||||
|
|
||||||
pushd %{buildroot}%{_bindir}
|
#install -Dm0755 UEFITool/%{oname} %{buildroot}%{_bindir}/%{oname}
|
||||||
ln -s %{oname} %{name}
|
#install -Dm0755 UEFIFind/build/UEFIFind %{buildroot}%{_bindir}/UEFIFind
|
||||||
popd
|
#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 -Dm0644 %{oname}/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||||
|
# LD_LIBRARY_PATH=/opt/qt5/5.15/lib/;$LD_LIBRARY_PATH ./uefitool # добавить в desctop или в скрипт
|
||||||
|
|
||||||
|
|
||||||
# install icons
|
# install icons
|
||||||
pushd %{oname}/icons
|
pushd %{oname}/icons
|
||||||
|
@ -63,7 +78,6 @@ install -Dm0644 %{name}_"$i"x"$i".png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.md LICENSE.md
|
%doc README.md LICENSE.md
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue