2024-08-20 13:40:34 +03:00
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
|
|
|
|
|
|
|
Name: useragent
|
2024-12-22 21:52:33 +00:00
|
|
|
Version: 0.0.84
|
2024-08-20 13:40:34 +03:00
|
|
|
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
|
2024-10-27 10:59:24 +00:00
|
|
|
BuildRequires: pkgconfig(openssl3.3)
|
2024-08-20 13:40:34 +03:00
|
|
|
|
|
|
|
%description
|
|
|
|
A comprehensive and categorized collection of User Agents.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2024-08-25 11:41:48 +00:00
|
|
|
export GOPROXY=https://proxy.golang.org/cached-only
|
2024-08-20 13:40:34 +03:00
|
|
|
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}/*
|
|
|
|
|