Compare commits

...

5 Commits

23 changed files with 269 additions and 26 deletions
@@ -0,0 +1,49 @@
%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
@@ -0,0 +1 @@
g onepassword-cli -
+6
View File
@@ -0,0 +1,6 @@
project pkg {
arches = ["x86_64", "aarch64"]
rpm {
spec = "1password-cli.spec"
}
}
+37
View File
@@ -0,0 +1,37 @@
let html = get("https://app-updates.agilebits.com/product_history/CLI2");
let versions = [];
for matches in find_all(`op_linux_amd64_v([\d]+\.[\d]+\.[\d]+)\.zip`, html) {
versions += matches[1];
}
versions.dedup();
let latest = "";
let latest_major = 0;
let latest_minor = 0;
let latest_patch = 0;
for version in versions {
let parts = version.split(".");
let major = parts[0].parse_int();
let minor = parts[1].parse_int();
let patch = parts[2].parse_int();
if latest == "" ||
major > latest_major ||
major == latest_major && minor > latest_minor ||
major == latest_major && minor == latest_minor && patch > latest_patch {
latest = version;
latest_major = major;
latest_minor = minor;
latest_patch = patch;
}
}
if latest == "" {
print("E: no 1Password CLI version found");
terminate();
}
rpm.version(latest);
+105
View File
@@ -0,0 +1,105 @@
%global debug_package %{nil}
%global policy_owners unix-group:wheel
%global appdir %{_datadir}/1password
%ifarch x86_64
%global tararch x64
%elifarch aarch64
%global tararch arm64
%endif
Name: 1password
Version: 8.12.24
Release: 1%{?dist}
Summary: Password manager and secure wallet
Packager: Cappy Ishihara <cappy@fyralabs.com>
License: LicenseRef-1Password-Proprietary
URL: https://1password.com
Source0: https://downloads.1password.com/linux/tar/stable/%{_arch}/%{name}-%{version}.%{tararch}.tar.gz
Source1: https://downloads.1password.com/linux/tar/stable/%{_arch}/%{name}-%{version}.%{tararch}.tar.gz.sig
Source2: 1password.sysusers
ExclusiveArch: x86_64 aarch64
BuildRequires: desktop-file-utils
BuildRequires: systemd-rpm-macros
Requires: desktop-file-utils
Requires: gtk3
Requires: hicolor-icon-theme
Requires: nss
Requires: polkit
Requires: xdg-utils
%description
%{summary}
%prep
%autosetup -n %{name}-%{version}.%{tararch}
%build
%install
# Install icons
install -Dm0644 resources/icons/hicolor/32x32/apps/1password.png -t %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
install -Dm0644 resources/icons/hicolor/64x64/apps/1password.png -t %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/
install -Dm0644 resources/icons/hicolor/256x256/apps/1password.png -t %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
install -Dm0644 resources/icons/hicolor/512x512/apps/1password.png -t %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/
sed 's|${POLICY_OWNERS}|%{policy_owners}|g' \
com.1password.1Password.policy.tpl > com.1password.1Password.policy
install -Dm0644 com.1password.1Password.policy -t %{buildroot}%{_datadir}/polkit-1/actions/
install -Dm0644 resources/custom_allowed_browsers -t %{buildroot}%{_sysconfdir}/1password/
install -Dm0644 resources/custom_allowed_browsers -t %{buildroot}%{_datadir}/doc/1password/examples/
sed -i 's|^Exec=/opt/1Password/1password|Exec=%{_bindir}/1password|' resources/1password.desktop
desktop-file-install --dir=%{buildroot}%{_datadir}/applications resources/1password.desktop
install -Dm0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf
# Install application payload under /usr for immutable-system compatibility.
mkdir -p %{buildroot}%{appdir}
cp -a . %{buildroot}%{appdir}/
rm -f %{buildroot}%{appdir}/com.1password.1Password.policy \
%{buildroot}%{appdir}/com.1password.1Password.policy.tpl \
%{buildroot}%{appdir}/after-install.sh \
%{buildroot}%{appdir}/after-remove.sh \
%{buildroot}%{appdir}/install.sh \
%{buildroot}%{appdir}/install_biometrics_policy.sh
mkdir -p %{buildroot}%{_bindir}
ln -sr %{buildroot}%{appdir}/%{name} %{buildroot}%{_bindir}/%{name}
chmod 4755 %{buildroot}%{appdir}/chrome-sandbox
chmod 2755 %{buildroot}%{appdir}/1Password-BrowserSupport
if [ -f %{buildroot}%{appdir}/onepassword-mcp ]; then
chmod 2755 %{buildroot}%{appdir}/onepassword-mcp
fi
find %{buildroot}%{appdir} -type f \
! -name chrome-sandbox \
! -name 1Password-BrowserSupport \
! -name onepassword-mcp \
-printf '/%%P\n' | sed "s|^/|%{appdir}/|" > app.files
%pre
%sysusers_create_package %{name} %{SOURCE2}
%files -f app.files
%{_bindir}/%{name}
%dir %{appdir}
%attr(4755,root,root) %{appdir}/chrome-sandbox
%attr(2755,root,onepassword) %{appdir}/1Password-BrowserSupport
%attr(2755,root,onepassword-mcp) %{appdir}/onepassword-mcp
%{_datadir}/icons/hicolor/32x32/apps/1password.png
%{_datadir}/icons/hicolor/64x64/apps/1password.png
%{_datadir}/icons/hicolor/256x256/apps/1password.png
%{_datadir}/icons/hicolor/512x512/apps/1password.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/polkit-1/actions/com.1password.1Password.policy
%{_sysusersdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/1password/custom_allowed_browsers
%{_datadir}/doc/1password/
%changelog
* Fri Jun 19 2026 Cappy Ishihara <cappy@cappuchino.xyz>
- Initial Package
+2
View File
@@ -0,0 +1,2 @@
g onepassword -
g onepassword-mcp -
+7
View File
@@ -0,0 +1,7 @@
project pkg {
arches = ["x86_64", "aarch64"]
rpm {
spec = "1password.spec"
}
}
+36
View File
@@ -0,0 +1,36 @@
let xml = get("https://releases.1password.com/linux/stable/index.xml");
let latest = "";
let latest_major = 0;
let latest_minor = 0;
let latest_patch = 0;
for title in find_all(`<title>[^<]*</title>`, xml) {
let matches = find_all(`[\d]+\.[\d]+\.[\d]+`, title[0]);
if matches.len() == 0 {
continue;
}
let version = matches[0][0];
let parts = version.split(".");
let major = parts[0].parse_int();
let minor = parts[1].parse_int();
let patch = parts[2].parse_int();
if latest == "" ||
major > latest_major ||
major == latest_major && minor > latest_minor ||
major == latest_major && minor == latest_minor && patch > latest_patch {
latest = version;
latest_major = major;
latest_minor = minor;
latest_patch = patch;
}
}
if latest == "" {
print("E: no 1Password version found");
terminate();
}
rpm.version(latest);
@@ -6,7 +6,7 @@
%global __provides_exclude_from %{_datadir}/%{name}/.*\\.so
Name: discord-canary-openasar
Version: 1.0.1316
Version: 1.0.1317
Release: 1%{?dist}
Summary: A snappier Discord rewrite with features like further customization and theming
License: MIT AND https://discord.com/terms
+1 -1
View File
@@ -1,5 +1,5 @@
Name: discord-canary
Version: 1.0.1316
Version: 1.0.1317
Release: 1%{?dist}
Summary: Free Voice and Text Chat for Gamers
URL: discord.com
+3 -3
View File
@@ -1,9 +1,9 @@
#? https://github.com/flameshot-org/flameshot/blob/master/packaging/rpm/fedora/flameshot.spec
%global ver 13.3.0
%global commit 18accdcc9a739233438b1591965067e3e9cdec72
%global ver 14.0.0
%global commit 550d4fae96dbea937d92a236605538f489e7b413
%global shortcommit %{sub %{commit} 1 7}
%global commit_date 20260618
%global commit_date 20260620
%global devel_name QtColorWidgets
%global _distro_extra_cflags -fuse-ld=mold
%global _distro_extra_cxxflags -fuse-ld=mold
+1 -1
View File
@@ -1,4 +1,4 @@
%global ver 2026-06-19
%global ver 2026-06-20
%global goodver %(echo %ver | sed 's/-//g')
%global __brp_mangle_shebangs %{nil}
%bcond_without mold
+1 -1
View File
@@ -2,7 +2,7 @@
%global ver 5.0.0
%global commit 7bc707b611fcb88401f64a52f483f389e2771f43
%global commit a7af75821ed8aa9e199b0d8044362dc882c78fbc
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commitdate 20260608
+2 -2
View File
@@ -1,6 +1,6 @@
%global commit 69b602c797a62f09318916d24a98c930533fbdc8
%global commit 9f56a4df515c9989bf0baa71c2150408cce0608e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20260619
%global commit_date 20260620
%global ver 1.9.0
%bcond_with check
+2 -2
View File
@@ -1,7 +1,7 @@
%global commit 1e036ce1c5076f695d149a672ca578ebf907f882
%global commit be8009c62509322682299bfbe969a62cee03f4d5
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global ver v26.3.27
%global commit_date 20260619
%global commit_date 20260620
%global goipath github.com/XTLS/Xray-core
Version: %{ver}^%{commit_date}git.%{shortcommit}
@@ -1,5 +1,5 @@
%global commit 63c876f66ae413d8729da02422c5f40153a86540
%global commit_date 20260618
%global commit fb2af6606cf8fa85a8bf06c0d1f5689327d4b6fc
%global commit_date 20260620
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global pypi_name types-colorama
@@ -1,7 +1,7 @@
%global commit 9ad36e14f6e5db3b45235943d61768e5fa246edd
%global commit dccbbd62a026752603f3205a12de0f2ff7ff2ab0
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global ver 20260618031303
%global commit_date 20260618
%global ver 20260620002456
%global commit_date 20260620
Name: v2ray-domain-list-community
Version: %{ver}^%{commit_date}git.%{shortcommit}
+3 -3
View File
@@ -1,7 +1,7 @@
%global commit ce6485980843245f8dc13ec0d0b2258fb04435d2
%global commit 519243fd551caf9b118d2a34c95699ce15cd74eb
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global ver 202605120112
%global commit_date 20260512
%global ver 202606191114
%global commit_date 20260620
%global year %{gsub %commit_date %%d%%d%%d%%d$ %{quote:}}
%global month %{gsub %commit_date %%d%%d%%d%%d(%%d%%d)%%d%%d %%1}
+1 -1
View File
@@ -10,7 +10,7 @@
Name: LCEVCdec
Version: 4.2.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: MPEG-5 LCEVC Decoder
License: BSD-3-Clause-Clear
URL: https://docs.v-nova.com/v-nova/lcevc/lcevc-sdk-overview
+1 -1
View File
@@ -1 +1 @@
8.1.1
8.1.2
@@ -1 +1 @@
8.1.1
8.1.2
@@ -1,6 +1,6 @@
Name: gstreamer1-plugin-libav
Version: 1.28.4
Release: 1%{?dist}
Release: 2%{?dist}
Epoch: 1
Summary: GStreamer Libav plugin
License: LGPL-2.0-or-later
@@ -48,7 +48,7 @@ find %{buildroot} -name "*.la" -delete
%files
%license COPYING
%doc AUTHORS NEWS README.md
%doc README.md
%{_libdir}/gstreamer-1.0/libgstlibav.so
%changelog
@@ -1,5 +1,5 @@
%global commit 066091a54c08b240939c3bc2c4119c693c636bdb
%global commit_date 20260619
%global commit b0610f3e9109274730d6b7044f6d7b6603eaac3f
%global commit_date 20260620
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: cloud-hypervisor-nightly