-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41121c1
commit b38be73
Showing
1 changed file
with
56 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,81 @@ | ||
Name: nitrokey-app2 | ||
Version: 2.3.2 | ||
Release: 1%{?dist} | ||
Release: %autorelease | ||
Summary: Graphical application to manage Nitrokey 3 devices | ||
|
||
License: Apache-2.0 | ||
URL: https://github.com/nitrokey/%{name} | ||
Vendor: Nitrokey | ||
|
||
Source0: %{URL}/archive/refs/tags/v%{version}.tar.gz | ||
|
||
BuildRequires: atk | ||
BuildRequires: binutils | ||
BuildRequires: cairo-gobject | ||
BuildRequires: dbus-libs | ||
BuildRequires: gdk-pixbuf2 | ||
BuildRequires: gtk3 | ||
BuildRequires: libxkbcommon | ||
BuildRequires: libwayland-client | ||
BuildRequires: libwayland-cursor | ||
BuildRequires: libwayland-egl | ||
BuildRequires: libxkbcommon-x11 | ||
BuildRequires: libX11-xcb | ||
BuildRequires: make | ||
BuildRequires: pango | ||
BuildRequires: poetry | ||
BuildRequires: python3.9 | ||
BuildRequires: python3-devel | ||
BuildRequires: which | ||
BuildRequires: xcb-util-wm | ||
BuildRequires: xcb-util-keysyms | ||
BuildRequires: xcb-util-image | ||
BuildRequires: xcb-util-cursor | ||
BuildRequires: xcb-util-renderutil | ||
|
||
Requires: glibc | ||
Requires: zlib | ||
|
||
%global debug_package %{nil} | ||
License: Apache-2.0 | ||
URL: https://github.com/nitrokey/nitrokey-app2 | ||
Vendor: Nitrokey | ||
|
||
Source0: %{URL}/archive/refs/tags/v%{version}.tar.gz | ||
|
||
BuildArch: noarch | ||
BuildRequires: python3-devel | ||
BuildRequires: %{py3_dist nitrokey} | ||
BuildRequires: %{py3_dist usb-monitor} | ||
BuildRequires: %{py3_dist pyside6} | ||
|
||
Requires: atk | ||
Requires: binutils | ||
Requires: cairo-gobject | ||
Requires: dbus-libs | ||
Requires: gdk-pixbuf2 | ||
Requires: glibc | ||
Requires: gtk3 | ||
Requires: libxkbcommon | ||
Requires: libwayland-client | ||
Requires: libwayland-cursor | ||
Requires: libwayland-egl | ||
Requires: libxkbcommon-x11 | ||
Requires: libX11-xcb | ||
Requires: pango | ||
Requires: xcb-util-wm | ||
Requires: xcb-util-keysyms | ||
Requires: xcb-util-image | ||
Requires: xcb-util-cursor | ||
Requires: xcb-util-renderutil | ||
Requires: zlib | ||
|
||
%description | ||
%{summary}. | ||
|
||
|
||
%prep | ||
%autosetup -v | ||
%autosetup -n nitrokey-app2-%{version} | ||
|
||
|
||
%generate_buildrequires | ||
%pyproject_buildrequires | ||
|
||
|
||
%build | ||
poetry env use python3.9 | ||
poetry install | ||
make build-pyinstaller-onedir | ||
%pyproject_wheel | ||
|
||
|
||
%install | ||
%define _build_id_links none | ||
mkdir -p %{buildroot}%{_libdir}/%{name} | ||
cp -r dist/nitrokey-app/* %{buildroot}%{_libdir}/%{name} | ||
mkdir -p %{buildroot}%{_bindir} | ||
ln -s %{_libdir}/%{name}/nitrokey-app %{buildroot}%{_bindir}/%{name} | ||
%pyproject_install | ||
%pyproject_save_files nitrokeyapp | ||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor | ||
cp -r ci-scripts/linux/rpm/icons/hicolor/* %{buildroot}%{_datadir}/icons/hicolor | ||
mkdir -p %{buildroot}%{_datadir}/applications | ||
cp ci-scripts/linux/rpm/nitrokey-app2.desktop %{buildroot}%{_datadir}/applications | ||
|
||
%files | ||
%{_bindir}/%{name} | ||
%{_libdir}/%{name} | ||
|
||
%check | ||
|
||
|
||
%files -f %{pyproject_files} | ||
%license LICENSE | ||
%doc README.md | ||
/usr/bin/nitrokeyapp | ||
%{_datadir}/icons/hicolor/*/apps/%{name}.png | ||
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg | ||
%{_datadir}/applications/%{name}.desktop | ||
|
||
|
||
%changelog | ||
* Mon Oct 21 2024 Markus Merklinger <[email protected]> - 2.3.2-1 | ||
- Changed the build process and dependencies. | ||
|
||
* Wed Jan 10 2024 Markus Merklinger <[email protected]> - 2.1.5-1 | ||
- First release of package |