3 Star 0 Fork 0

openEuler-competition / Summer2021-No.16 开发DDE桌面上基于rpm的软件包安装器

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rpm-installer.spec 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
%global debug_package %{nil}
Name: rpminstaller
Version: 1.0
Release: 1
Summary: A really lightweight GUI RPM installer
License: MulanPSL-2.0
URL: https://gitee.com/openeuler-competition/summer2021-16
Source0: %{name}-%{version}.tar.gz
BuildRequires: gcc, qt5-qtbase-devel, qt5-qtsvg-devel, make, zlib-devel
BuildRequires: python3, python-pip, dnf, python3-dnf
Requires: qt5-qtbase, dnf, qt5-qtsvg
%description
A really lightweight RPM installer
%prep
%setup -q
%build
python3 -m pip install pyinstaller
pyinstaller -F ./dnfpy/rpminstaller-dnfpy.py
qmake-qt5 ./rpminstaller.pro
make
%install
%{__mkdir_p} %{buildroot}%{_bindir}/
%{__mkdir_p} %{buildroot}%{_datadir}/applications/
install -m 755 ./rpminstaller %{buildroot}%{_bindir}/
install -m 755 ./dist/rpminstaller-dnfpy %{buildroot}%{_bindir}/
install -m 644 ./rpminstaller.desktop %{buildroot}%{_datadir}/applications/
%files
%{_bindir}/rpminstaller
%{_bindir}/rpminstaller-dnfpy
%{_datadir}/applications/rpminstaller.desktop
%changelog
* Sun Sep 12 2021 Li Jingwei <marscatcn@live.com> - 1.0-1
- Package init
1
https://gitee.com/openeuler-competition/summer2021-16.git
git@gitee.com:openeuler-competition/summer2021-16.git
openeuler-competition
summer2021-16
Summer2021-No.16 开发DDE桌面上基于rpm的软件包安装器
master

搜索帮助