Remove non free docs from src.rpm and provide script to do so before upload.

Fixes bug #1684335
epel8
Kevin Fenzi 6 years ago
parent f30fb1ef29
commit 802925718b

1
.gitignore vendored

@ -13,3 +13,4 @@
/waitress-1.0.2.tar.gz /waitress-1.0.2.tar.gz
/waitress-1.1.0.tar.gz /waitress-1.1.0.tar.gz
/v1.2.1.tar.gz /v1.2.1.tar.gz
/v1.2.1-nodocs.tar.gz

@ -0,0 +1,8 @@
#!/bin/sh
VERSION=$1
tar -xzvf v$VERSION.tar.gz
rm -rf waitress-$VERSION/docs
mv waitress-$VERSION waitress-$VERSION-nodocs
tar -czvf v$VERSION-nodocs.tar.gz waitress-$VERSION-nodocs

@ -4,12 +4,21 @@
Name: python-%{srcname} Name: python-%{srcname}
Version: 1.2.1 Version: 1.2.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: Waitress WSGI server Summary: Waitress WSGI server
License: ZPLv2.1 License: ZPLv2.1
URL: https://github.com/Pylons/%{srcname} URL: https://github.com/Pylons/%{srcname}
Source0: %{url}/archive/v%{version}.tar.gz Source0: v%{version}-nodocs.tar.gz
# Upstream ships non free docs files.
# We do not even want them in our src.rpms
# So we remove them before uploading.
#
# Download the upstream tarball and invoke this script while in the
# tarball's directory:
# ./generate-tarball.sh 1.0
#
Source1: generate-tarball.sh
BuildArch: noarch BuildArch: noarch
@ -48,7 +57,7 @@ BuildRequires: python3-coverage
Python 3 version. Python 3 version.
%prep %prep
%autosetup -n %{srcname}-%{version} %autosetup -n %{srcname}-%{version}-nodocs
%build %build
%py2_build %py2_build
@ -76,6 +85,10 @@ Python 3 version.
%{python3_sitelib}/%{srcname}-*.egg-info/ %{python3_sitelib}/%{srcname}-*.egg-info/
%changelog %changelog
* Sat Jun 29 2019 Kevin Fenzi <kevin@scrye.com> - 1.2.1-2
- Remove non free docs from src.rpm and provide script to do so before upload.
- Fixes bug #1684335
* Tue Feb 05 2019 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 1.2.1-1 * Tue Feb 05 2019 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 1.2.1-1
- Update to 1.2.1 (#1667466) - Update to 1.2.1 (#1667466)

@ -1 +1 @@
SHA512 (v1.2.1.tar.gz) = 6c06fb799aa277a5e53fc085de3e284c558327f3df7fd2f06771e87f741bdf911a8e0ed2f13f7aa115ab13d4364da27b54984592db6ce3a4326723a7d4c7f7c3 SHA512 (v1.2.1-nodocs.tar.gz) = 1bea7eae80b4eb506516587a661c8f1aec179c2db542178ad65beec3faae70ce5ab504b970ee43a9745883d535ad0551b7bf88eeda513443dbf493a3efa1fd14

Loading…
Cancel
Save