Remove non free docs from src.rpm and provide script to do so before upload.
Fixes bug #1684335
This commit is contained in:
parent
f30fb1ef29
commit
802925718b
4 changed files with 26 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -13,3 +13,4 @@
|
|||
/waitress-1.0.2.tar.gz
|
||||
/waitress-1.1.0.tar.gz
|
||||
/v1.2.1.tar.gz
|
||||
/v1.2.1-nodocs.tar.gz
|
||||
|
|
|
|||
8
generate-tarball.sh
Executable file
8
generate-tarball.sh
Executable file
|
|
@ -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}
|
||||
Version: 1.2.1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Waitress WSGI server
|
||||
|
||||
License: ZPLv2.1
|
||||
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
|
||||
|
||||
|
|
@ -48,7 +57,7 @@ BuildRequires: python3-coverage
|
|||
Python 3 version.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version}
|
||||
%autosetup -n %{srcname}-%{version}-nodocs
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
|
|
@ -76,6 +85,10 @@ Python 3 version.
|
|||
%{python3_sitelib}/%{srcname}-*.egg-info/
|
||||
|
||||
%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
|
||||
- Update to 1.2.1 (#1667466)
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (v1.2.1.tar.gz) = 6c06fb799aa277a5e53fc085de3e284c558327f3df7fd2f06771e87f741bdf911a8e0ed2f13f7aa115ab13d4364da27b54984592db6ce3a4326723a7d4c7f7c3
|
||||
SHA512 (v1.2.1-nodocs.tar.gz) = 1bea7eae80b4eb506516587a661c8f1aec179c2db542178ad65beec3faae70ce5ab504b970ee43a9745883d535ad0551b7bf88eeda513443dbf493a3efa1fd14
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue