useragent/useragent.spec
2025-01-12 23:08:26 +00:00

37 lines
820 B
RPMSpec

%define debug %nil
%define debug_package %nil
Name: useragent
Version: 0.0.87
Release: 1
Summary: Curated list of categorized User Agents
URL: https://github.com/projectdiscovery/useragent
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
License: MIT
Group: Development/Other
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
BuildRequires: pkgconfig(openssl3.3)
%description
A comprehensive and categorized collection of User Agents.
%prep
%setup -q
%build
export GOPROXY=https://proxy.golang.org/cached-only
go build -o bin/ua ./cmd/ua
go build -o bin/update-useragent ./cmd/update-useragent
upx bin/*
%install
install -Dm0755 bin/ua %{buildroot}%{_bindir}/ua
install -Dm0755 bin/update-useragent %{buildroot}%{_bindir}/update-useragent
%files
%doc README.md LICENSE
%{_bindir}/*