Bug 64217 - RPM %setup can't grok zip sources
Summary: RPM %setup can't grok zip sources
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm-build
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-04-29 15:22 UTC by Nicolas Mailhot
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-05-02 17:58:31 UTC
Embargoed:


Attachments (Terms of Use)

Description Nicolas Mailhot 2002-04-29 15:22:18 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.0 (X11; Linux i686; U;) Gecko/20020408

Description of problem:
When fed up a zip source the RedHat version of the %setup rpm macro will try to
untar it.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Get a specfile that uses a zip source
(a good example is
http://jpackage.sourceforge.net/rpm/non-free/jaf/jaf-1.0.1-9jpp.nosrc.rpm)
2. Try to build it
Weep as rpm tries tu untar the zip
	

Actual Results:  rpm tries tu untar the zip

+ cd /usr/src/redhat/BUILD
+ rm -rf /var/tmp/jaf-1.0.1-buildroot
+ cd /usr/src/redhat/BUILD
+ rm -rf jaf-1.0.1
+ tar -xvvf /usr/src/redhat/SOURCES/jaf1_0_1.zip


Expected Results:  + cd /usr/src/redhat/BUILD
+ rm -rf /var/tmp/jaf-1.0.1-buildroot
+ cd /usr/src/redhat/BUILD
+ rm -rf jaf-1.0.1
+ unzip /usr/src/redhat/SOURCES/jaf1_0_1.zip

Additional info:

1. This specfile (and a lot of others) where written by mandrake users, so the
mandrake version of rpm should be sane

2. tested both on rawhide (rpm-4.0.4-7x.16) and RH 7.2 (rpm-4.0.4-7x)

This is a major pain, we do a lot of java inhouse and java software is usually
distributed as zipfiles. Sometimes the licence prohibits distribution of
anything other than the nosrc.rpm and the url of the zip.

Comment 1 Nicolas Mailhot 2002-10-07 08:58:54 UTC
This seems to work with RH 8.0, thanks


Note You need to log in before you can comment on or make changes to this bug.