diff --git a/python-summershum.spec b/python-summershum.spec index 267bc034be..ada0c0240e 100644 --- a/python-summershum.spec +++ b/python-summershum.spec @@ -8,7 +8,7 @@ Name: python-summershum Version: 0.1.5 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A fedmsg consumer that extracts and stores hashes of source files Group: Development/Libraries @@ -23,49 +23,59 @@ BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: fedmsg -Requires: fedmsg BuildRequires: python-kitchen -Requires: python-kitchen %if 0%{?rhel} && 0%{?rhel} <= 6 BuildRequires: python-sqlalchemy0.8 -Requires: python-sqlalchemy0.8 BuildRequires: python-logutils -Requires: python-logutils %else BuildRequires: python-sqlalchemy -Requires: python-sqlalchemy %endif -Requires: rpmdevtools - - -%description -A fedmsg consumer that extracts and stores hashes of source files. - -summershum is composed of two components: - -- A fedmsg consumer plugin that listens for - ``org.fedoraproject.prod.git.lookaside.new`` messages. Whenever a - contributor uploads a new source tarball to the lookaside cache, - summershum will download that tarball, unpack it, and calculate the - sha1 sum of every file in the tarball. Those hashes are then stored in - a database to be queried later. -- A cli tool ``summershum-cli`` that queries datagrepper for the fedmsg - history. It then crawls through old lookaside messages to fill in data where - it was missed. - -With the summershum database, we can then make some interesting queries -in short time: -- how many files have this hash sum in all of fedora? and for which - packages ? -- we can easily find what is bundling what and generate a programatic list -- we could check the db in taskotron tests -- we could check to see how many packages include the full GPL license -- how many packages have that license but with the old FSF address +%global _description\ +A fedmsg consumer that extracts and stores hashes of source files.\ +\ +summershum is composed of two components:\ +\ +- A fedmsg consumer plugin that listens for\ + ``org.fedoraproject.prod.git.lookaside.new`` messages. Whenever a\ + contributor uploads a new source tarball to the lookaside cache,\ + summershum will download that tarball, unpack it, and calculate the\ + sha1 sum of every file in the tarball. Those hashes are then stored in\ + a database to be queried later.\ +- A cli tool ``summershum-cli`` that queries datagrepper for the fedmsg\ + history. It then crawls through old lookaside messages to fill in data where\ + it was missed.\ +\ +With the summershum database, we can then make some interesting queries\ +in short time:\ +\ +- how many files have this hash sum in all of fedora? and for which\ + packages ?\ +- we can easily find what is bundling what and generate a programatic list\ +- we could check the db in taskotron tests\ +- we could check to see how many packages include the full GPL license\ +- how many packages have that license but with the old FSF address\ + + +%description %_description + +%package -n python2-summershum +Summary: %summary +Requires: fedmsg +Requires: python-kitchen +%if 0%{?rhel} && 0%{?rhel} <= 6 +Requires: python-sqlalchemy0.8 +Requires: python-logutils +%else +Requires: python-sqlalchemy +%endif +Requires: rpmdevtools +%{?python_provide:%python_provide python2-summershum} +%description -n python2-summershum %_description %prep %setup -q -n %{modname}-%{version} @@ -88,13 +98,17 @@ rm -rf %{modname}.egg-info %{__python2} tests/__init__.py %endif -%files +%files -n python2-summershum %doc README.rst LICENSE %{python2_sitelib}/%{modname}/ %{python2_sitelib}/%{modname}-%{version}* %{_bindir}/summershum-cli %changelog +* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 0.1.5-7 +- Python 2 binary package renamed to python2-summershum + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 0.1.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild