Hi all,
i am new to OBC and i tried to follow the this post about building the indent.tar.gz into rpm.
so i create a new project and with the following indent-2.spec
Summary: GNU indent
Name: indent
Version: 2.2.10
Release: 2
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: Development/Tools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The GNU indent program reformats C code to any of a variety of
formatting standards, or you can define your own.
%prep
%setup -q
%build
./configure
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/local/bin/indent
%doc /usr/local/info/indent.info
%doc %attr(0444,root,root) /usr/local/man/man1/indent.1
%doc COPYING AUTHORS README NEWS
and also i have added the indent-2.2.10.tar.gz to the project.
but the build is failure and the following build log
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'jobs 4' --define 'disturl obs://build.opensuse.org/home:cecid:indent-2.2.10/openSUSE_11.2/c6aa535f8cd1d25302981759221987aa-indent-2.2.10' /usr/src/packages/SOURCES/indent-2.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dtFK59
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf indent-2.2.10
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/indent-2.2.10.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '' 0 -ne 0 ']'
+ cd indent-2.2.10
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ $'\r'
/var/tmp/rpm-tmp.dtFK59: line 31: : command not found
error: Bad exit status from /var/tmp/rpm-tmp.dtFK59 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.dtFK59 (%prep)
mount: / is busy
System halted.
Thanks for your help.
Regards,
Kit