useragent/useragent.spec

37 lines
782 B
RPMSpec
Raw Normal View History

2024-08-20 13:40:34 +03:00
%define debug %nil
%define debug_package %nil
Name: useragent
2024-09-01 08:20:45 +00:00
Version: 0.0.68
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
%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}/*