mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-20 10:30:39 +00:00
aaca8b9c01
(cherry picked from commit 107c771cb2)
Co-authored-by: Pornpipat Popum <cappy@cappuchino.xyz>
Co-authored-by: Cypress Reed <willow@willowidk.dev>
50 lines
1.1 KiB
RPMSpec
50 lines
1.1 KiB
RPMSpec
%global debug_package %{nil}
|
|
|
|
%ifarch x86_64
|
|
%global op_arch amd64
|
|
%elifarch aarch64
|
|
%global op_arch arm64
|
|
%endif
|
|
|
|
Name: 1password-cli
|
|
Version: 2.34.1
|
|
Release: 1%{?dist}
|
|
Summary: 1Password command-line tool
|
|
|
|
Packager: Cappy Ishihara <cappy@fyralabs.com>
|
|
|
|
License: LicenseRef-1Password-Proprietary
|
|
URL: https://developer.1password.com/docs/cli/
|
|
Source0: https://cache.agilebits.com/dist/1P/op2/pkg/v%{version}/op_linux_%{op_arch}_v%{version}.zip
|
|
Source1: 1password-cli.sysusers
|
|
ExclusiveArch: x86_64 aarch64
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
BuildRequires: unzip
|
|
Recommends: 1password
|
|
Recommends: polkit
|
|
|
|
%description
|
|
1Password CLI brings 1Password to your terminal.
|
|
|
|
%prep
|
|
%autosetup -c
|
|
|
|
%build
|
|
|
|
%install
|
|
install -Dm0755 op %{buildroot}%{_bindir}/op
|
|
chmod 2755 %{buildroot}%{_bindir}/op
|
|
install -Dm0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf
|
|
|
|
%pre
|
|
%sysusers_create_package %{name} %{SOURCE1}
|
|
|
|
%files
|
|
%attr(2755,root,onepassword-cli) %{_bindir}/op
|
|
%{_sysusersdir}/%{name}.conf
|
|
|
|
%changelog
|
|
* Fri Jun 19 2026 Cappy Ishihara <cappy@cappuchino.xyz>
|
|
- Initial Package
|