Remove script strip_FAQ.sh from sources; Rename script

This commit is contained in:
Jitka Plesnikova 2015-03-12 10:59:18 +01:00
parent fc5a11c317
commit 519c645c39
2 changed files with 29 additions and 4 deletions

View File

@ -8,7 +8,7 @@
Name: perl-DBI
Version: 1.630
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A database access API for perl
Group: Development/Libraries
License: GPL+ or Artistic
@ -16,10 +16,9 @@ URL: http://dbi.perl.org/
# The source tarball must be repackaged to remove the DBI/FAQ.pm, since the
# license is not a FSF free license.
# When upgrading, download the new source tarball, and run
# "./strip-FAQ.sh <version>" to produce the "-repackaged" tarball.
# Source0: http://www.cpan.org/authors/id/T/TI/TIMB/DBI-%{version}.tar.gz
# "./repackage.sh <version>" to produce the "-repackaged" tarball.
# Source0: http://www.cpan.org/authors/id/T/TI/TIMB/DBI-%{version}.tar.gz
Source0: DBI-%{version}_repackaged.tar.gz
Source1: strip_FAQ.sh
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find)
@ -144,6 +143,9 @@ make test
%{_mandir}/man3/*.3*
%changelog
* Thu Mar 12 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.630-3
- Remove script strip_FAQ.sh from sources
* Mon Mar 09 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.630-2
- Repackage source tarball to remove non-free DBI/FAQ.pm (bug #1199532)

View File

@ -1,4 +1,25 @@
#!/bin/bash
#
# Copyright (C) 2010 Red Hat, Inc.
# Authors:
# Thomas Woerner <twoerner@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Script was a bit changed for DBI, because command below breaks tar index
# tar -f <tarball> --delete <file>
# Jitka Plesnikova <jplesnik@redhat.com>
version=$1
[ -z "$version" ] && { echo "Usage: $0 <version>"; exit 1; }
@ -7,6 +28,8 @@ version=$1
declare -a REMOVE
REMOVE[${#REMOVE[*]}]="lib/DBI/FAQ.pm"
# no changes below this line should be needed
orig="DBI-${version}"
orig_tgz="${orig}.tar.gz"
repackaged="${orig}_repackaged"