Compare commits

...
Sign in to create a new pull request.

14 commits

Author SHA1 Message Date
Fedora Release Engineering
810489ca3b Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:47:27 +00:00
Michal Ambroz
eefb451218 bump to 0.6.4 2026-04-03 23:33:43 +02:00
Fedora Release Engineering
23e1501027 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 20:13:07 +00:00
Michal Ambroz
11bd5209de fix loading from shared directory 2025-12-09 15:12:36 +01:00
Michal Ambroz
44d08ab0b5 bump to 0.6.3 2025-11-16 04:01:32 +01:00
Michal Ambroz
3fc0480e31 autochangelog 2025-08-24 14:49:09 +02:00
Michal Ambroz
a45f157c2a Merge remote-tracking branch 'refs/remotes/origin/rawhide' into rawhide 2025-08-24 14:47:26 +02:00
Fedora Release Engineering
fd39a52443 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 20:24:01 +00:00
Fedora Release Engineering
4a04051437 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 14:58:31 +00:00
Fedora Release Engineering
54d81e748b Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 09:18:17 +00:00
Michal Ambroz
af3467c545 cosmetics 2024-05-19 00:35:31 +02:00
Fedora Release Engineering
6bf7501022 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 08:43:19 +00:00
Fedora Release Engineering
e083b12706 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 18:10:21 +00:00
Michal Ambroz
6dd51211e2 initial package for whatweb 2023-03-04 11:48:42 +01:00
3 changed files with 127 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/whatweb-*.tar.gz

1
sources Normal file
View file

@ -0,0 +1 @@
SHA512 (whatweb-0.6.4.tar.gz) = 46e33b541ba48cad7e47cd7ba03c3d06fc33877a0a9c10f952a30687b05f55783babe4fb819fb8dfe126923936ae21b13e9689a40fd1a04c62544e529c65cd2c

125
whatweb.spec Normal file
View file

@ -0,0 +1,125 @@
Name: whatweb
Version: 0.6.4
Release: %autorelease
Summary: Web scanner to identify what are the websites running
License: GPL-2.0-or-later
URL: http://www.morningstarsecurity.com/research/whatweb
# https://github.com/urbanadventurer/WhatWeb/releases
# The tests are normally disabled in the build phase as whatweb is networking
# tool and Fedora has networking disabled during builds
# In order to try rebuild with tests locally run
# rpmbuild --rebuild whatweb*.src.rpm --with tests
%bcond_with tests
%global gituser urbanadventurer
%global gitname WhatWeb
%global gitdate 20251018
%global commit 4dceb388015909e97567bcf58a7edaf7eda61593
%global giturl https://github.com/%{gituser}/%{gitname}
VCS: git:%{giturl}
%if 0%{?rhel}
Group: Applications/Internet
%endif
Source0: %{giturl}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch: noarch
Buildrequires: make
Buildrequires: sed
# Requires: ruby(abi) >= 2.0
Requires: /usr/bin/ruby
Requires: rubygem-addressable
# On RHEL7 the Recommends statement is not available
%if 0%{?rhel} && 0%{?rhel} <= 8
Requires: rubygem-bson
Requires: rubygem-mongo
%else
Recommends: rubygem-bson
Recommends: rubygem-mongo
%endif
%if %{with tests}
Requires: rubygem-minitest
%endif
%description
Identify content management systems (CMS), blogging platforms, stats/analytic
packages, JavaScript libraries, servers and more. When you visit a website in
your browser the transaction includes many unseen hints about how the web-server
is set up and what software is delivering the web-page. Some of these hints are
obvious, ex. “Powered by XYZ” and others are more subtle. WhatWeb recognizes
these hints and reports what it finds.
%prep
%autosetup -p 1 -n %{gitname}-%{version}
# Remove IP2Country database with problematic license
# Reported upstream https://github.com/urbanadventurer/WhatWeb/issues/366
echo "" > plugins/IpToCountry.csv
# Fedora using Rubypick
sed -i -e 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|; s|#!/bin/env ruby|#!/usr/bin/ruby|;' \
whatweb plugin-development/find-common-stuff plugin-development/get-pattern
# Remove unknown macros in manpage - probably Ubuntu specific macros
sed -i -e 's|^\.ni||; s|^\./plugins-disabled|+\./plugins-disabled|' whatweb.1
# Disable bundle install in the Makefile
sed -i -e 's|bundle install|#bundle install|' Makefile
# Add the whatweb shared directory
sed -i -e "s|expand_path(__dir__)), '.')|expand_path(__dir__)), '%{_datadir}/%{name}')|" whatweb
# Load from shared library and not relative
# https://github.com/urbanadventurer/WhatWeb/pull/432
sed -i -e "s|require_relative |require |" whatweb
%build
echo "Nothing to build."
%install
%make_install
rm -rf %{buildroot}%{_datadir}/doc/%{name}
# Move the executable from share to bin
rm -f %{buildroot}%{_bindir}/%{name}
mv %{buildroot}%{_datadir}/%{name}/%{name} %{buildroot}%{_bindir}/%{name}
# addons and plugin-development not crucial for runtime, move them to documentation
rm -rf %{buildroot}%{_datadir}/%{name}/addons
rm -rf %{buildroot}%{_datadir}/%{name}/plugin-development
chmod -x addons/*
chmod -x plugin-development/*
%check
%if %{with tests}
ruby test/integration.rb
%endif
%files
%license LICENSE
%doc CHANGELOG.md README.md whatweb.xsl
%doc addons
%doc plugin-development
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*
%changelog
%autochangelog