File htmlq.spec of Package htmlq
# spec file for package htmlq
#
# Copyright (c) 2021 Fabio Pesari
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Name: htmlq
Version: 0.3.0
Release: 0
Summary: Extract content from HTML with CSS selectors
License: MIT
Group: Productivity/Text/Utilities
URL: https://github.com/mgdm/htmlq
Source0: %{name}-%{version}.tar.gz
BuildRequires: rust cargo
BuildRequires: cargo-packaging
ExclusiveArch: %{rust_arches}
%description
Like jq, but for HTML. Uses CSS selectors to extract bits of
content from HTML files.
%prep
%setup -q
%build
%{cargo_build}
%install
install -D -m 0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
%files
%{_bindir}/htmlq
%doc README.md
%license LICENSE.md
%changelog