Skip to content

Commit

Permalink
Update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeister committed May 14, 2024
1 parent 3dbb0cb commit ff1e9d5
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 87 deletions.
87 changes: 0 additions & 87 deletions python-sherlock.spec

This file was deleted.

53 changes: 53 additions & 0 deletions sherlock-project.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Packager: Paul Pfeister <[email protected]> (GitHub @ppfeister)
%global source_ref master

Name: sherlock-project
Version: 0.14.4
Release: %autorelease
Summary: Hunt down social media accounts by username across social networks

License: MIT
URL: https://github.com/sherlock-project/sherlock
Source: %{url}/archive/%{source_ref}.tar.gz
# Switch to new Source URL after adoption of tagged releases

BuildArch: noarch
BuildRequires: python3-devel

%global _description %{expand:
Hunt down social media accounts by username across 400+ social networks and
websites. New targets are tested and implemented regularly.
}

%description %{_description}

%prep
%autosetup -n sherlock-%{source_ref}

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files -l sherlock sites result notify __init__ __main__

sed -r -i '1{/^#!/d}' '%{buildroot}%{python3_sitelib}/*.py'

%check
# Tests fail when pwd isn't sherlock. Relative pathing need fix upstream.
cd sherlock
%{py3_test_envvars} %{python3} -m unittest tests.all --verbose
cd ..

%files -f %{pyproject_files}
%doc README.md
%{_bindir}/sherlock
%{python3_sitelib}/resources
%pycached %{python3_sitelib}/tests/*.py

%changelog
* Tue May 14 2024 Paul Pfeister <[email protected]> 0.14.4
- Initial package.

0 comments on commit ff1e9d5

Please sign in to comment.