mirror of
https://abf.rosa.ru/djam/useragent.git
synced 2025-02-23 17:52:49 +00:00
36 lines
752 B
RPMSpec
36 lines
752 B
RPMSpec
%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}/*
|
|
|