[opensuse-packaging] %prep and %setup query
Hello, How can I correct this error[1] The tar file contains [2] Spec file see [3] Thanks Glenn [1] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.P5nauL + umask 022 + cd /home/abuild/rpmbuild/BUILD + cd /home/abuild/rpmbuild/BUILD + rm -rf cacti-0.8.7i + /usr/bin/gzip -dc /home/abuild/rpmbuild/SOURCES/cacti-0.8.7i-PIA-3.1.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd cacti-0.8.7i /var/tmp/rpm-tmp.P5nauL: line 32: cd: cacti-0.8.7i: No such file or directory [2] tar file cacti-0.8.7i-PIA-3.1.tar partial list: # tar -tvf cacti-0.8.7i-PIA-3.1.tar | head drwxr-xr-x roman/users 0 2011-12-12 13:14 cacti-0.8.7i-PIA-3.1/ -rw-r--r-- roman/users 10006 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/graph_templates_inputs.php drwxr-xr-x roman/users 0 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/ -rw-r--r-- roman/users 5759 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/poller_data_sources_reapply_names.php -rw-r--r-- roman/users 11403 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/add_device.php -rw-r--r-- roman/users 5350 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/poller_graphs_reapply_names.php -rw-r--r-- roman/users 33 2010-12-05 08:11 cacti-0.8.7i-PIA-3.1/cli/.htaccess -rw-r--r-- roman/users 5100 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/data_template_associate_rra.php -rw-r--r-- roman/users 18738 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/add_graphs.php -rw-r--r-- roman/users 4461 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/rebuild_poller_cache.php . . . [3]Spec file location and %prep content: https://build.opensuse.org/package/view_file?file=cacti-PA.spec&package=cacti-PA&project=home%3Adoiggl&rev=2d65e6bfba7843fedd16fdc578d9995d . %prep %setup -q -n cacti-%{version} %patch0 -p1 #%patch1 -p1 %patch2 -p1 #%patch3 -p1 . -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Wed, 14 Dec 2011 00:26:20 +1100 <doiggl@velocitynet.com.au> wrote:
Hello, How can I correct this error[1] The tar file contains [2] Spec file see [3]
Thanks Glenn
[1] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.P5nauL + umask 022 + cd /home/abuild/rpmbuild/BUILD + cd /home/abuild/rpmbuild/BUILD + rm -rf cacti-0.8.7i + /usr/bin/gzip -dc /home/abuild/rpmbuild/SOURCES/cacti-0.8.7i-PIA-3.1.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd cacti-0.8.7i /var/tmp/rpm-tmp.P5nauL: line 32: cd: cacti-0.8.7i: No such file or directory
[2] tar file cacti-0.8.7i-PIA-3.1.tar partial list: # tar -tvf cacti-0.8.7i-PIA-3.1.tar | head drwxr-xr-x roman/users 0 2011-12-12 13:14 cacti-0.8.7i-PIA-3.1/ -rw-r--r-- roman/users 10006 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/graph_templates_inputs.php drwxr-xr-x roman/users 0 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/ -rw-r--r-- roman/users 5759 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/poller_data_sources_reapply_names.php -rw-r--r-- roman/users 11403 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/add_device.php -rw-r--r-- roman/users 5350 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/poller_graphs_reapply_names.php -rw-r--r-- roman/users 33 2010-12-05 08:11 cacti-0.8.7i-PIA-3.1/cli/.htaccess -rw-r--r-- roman/users 5100 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/data_template_associate_rra.php -rw-r--r-- roman/users 18738 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/add_graphs.php -rw-r--r-- roman/users 4461 2011-12-12 12:56 cacti-0.8.7i-PIA-3.1/cli/rebuild_poller_cache.php . . .
[3]Spec file location and %prep content: https://build.opensuse.org/package/view_file?file=cacti-PA.spec&package=cacti-PA&project=home%3Adoiggl&rev=2d65e6bfba7843fedd16fdc578d9995d
. %prep %setup -q -n cacti-%{version} %patch0 -p1 #%patch1 -p1 %patch2 -p1 #%patch3 -p1 .
Hi Because the extracted folder name is 'cacti-0.8.7i-PIA-3.1' so it should be something like; %setup -q -n %{realname}-%{version}-PIA-3.1 -- Cheers Malcolm °¿° (Linux Counter #276890) openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.9-desktop up 2 days 22:23, 5 users, load average: 0.43, 0.26, 0.15 GPU GeForce 8600 GTS Silent - Driver Version: 290.10 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
doiggl@velocitynet.com.au
-
Malcolm