mirror of
https://github.com/sherlock-project/sherlock
synced 2024-11-25 21:30:24 +00:00
Satisfy rpmlint
This commit is contained in:
parent
3c291a2d3f
commit
19c4af1a2e
1 changed files with 20 additions and 3 deletions
|
@ -13,6 +13,7 @@ Source: %{url}/archive/%{source_ref}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: help2man
|
||||||
|
|
||||||
%global _description %{expand:
|
%global _description %{expand:
|
||||||
Hunt down social media accounts by username across 400+ social networks and
|
Hunt down social media accounts by username across 400+ social networks and
|
||||||
|
@ -21,21 +22,34 @@ websites. New targets are tested and implemented regularly.
|
||||||
|
|
||||||
%description %{_description}
|
%description %{_description}
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n sherlock-%{source_ref}
|
%autosetup -n sherlock-%{source_ref}
|
||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires
|
%pyproject_buildrequires
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%pyproject_save_files -l sherlock sites result notify __init__ __main__
|
%pyproject_save_files -l sherlock sites result notify __init__ __main__
|
||||||
|
|
||||||
# Problematic
|
sed -r -i '1{/^#!/d}' '%{buildroot}%{python3_sitelib}/__main__.py'
|
||||||
# sed -r -i '1{/^#!/d}' '%%{buildroot}%%{python3_sitelib}/*.py'
|
sed -r -i '1{/^#!/d}' '%{buildroot}%{python3_sitelib}/sherlock.py'
|
||||||
|
|
||||||
|
install -d '%{buildroot}%{_mandir}/man1'
|
||||||
|
PYTHONPATH='%{buildroot}%{python3_sitelib}' help2man \
|
||||||
|
--no-info \
|
||||||
|
--version-string='%{version}' \
|
||||||
|
--name='%{summary}' \
|
||||||
|
--output='%{buildroot}%{_mandir}/man1/sherlock.1' \
|
||||||
|
'%{buildroot}%{_bindir}/sherlock'
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Tests fail when pwd isn't sherlock. Relative pathing need fix upstream.
|
# Tests fail when pwd isn't sherlock. Relative pathing need fix upstream.
|
||||||
|
@ -43,12 +57,15 @@ cd sherlock
|
||||||
%{py3_test_envvars} %{python3} -m unittest tests.all --verbose
|
%{py3_test_envvars} %{python3} -m unittest tests.all --verbose
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|
||||||
%files -f %{pyproject_files}
|
%files -f %{pyproject_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_bindir}/sherlock
|
%{_bindir}/sherlock
|
||||||
%{python3_sitelib}/resources
|
%{python3_sitelib}/resources
|
||||||
%pycached %{python3_sitelib}/tests/*.py
|
%pycached %{python3_sitelib}/tests/*.py
|
||||||
|
%{_mandir}/man1/sherlock
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue May 14 2024 Paul Pfeister <rh-bugzilla@pfeister.dev> 0.14.4
|
* Tue May 14 2024 Paul Pfeister <rh-bugzilla@pfeister.dev> 0.14.4-1
|
||||||
- Initial package.
|
- Initial package.
|
||||||
|
|
Loading…
Reference in a new issue