Imported from SRPM

This commit is contained in:
Sergey Zhemoytel 2024-08-20 13:40:34 +03:00
commit 5c8cc2b0b7
2 changed files with 38 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
useragent-0.0.66.tar.gz: 9f47ddb9d7a787fa7cf2b6e46f4c64a5ac0b93b7

36
useragent.spec Normal file
View file

@ -0,0 +1,36 @@
%define debug %nil
%define debug_package %nil
Name: useragent
Version: 0.0.66
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
%description
A comprehensive and categorized collection of User Agents.
%prep
%setup -q
%build
export GOPROXY=direct
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}/*