[opensuse] rpmbuild errors
hi all, I. today i use rpmbuild to creat a rpm package,however i get an error : RPM build errors: File not found: /usr/src/packages/BUILDROOT/showshenxun-1.0-1.i386/usr/local/bin/showshenxun.sh and my spec files like this: 1 %if 0%{?suse_version} < 1120 2 BuildRoot: %{_tmppath}/%{name}-%{version}-build 3 %endif 4 Summary: This is a demo RPM package. 5 Name:showshenxun 6 Version:1.0 7 Release:1 8 License:GPL 9 Group:zongzi 10 Source:showshenxun.tar.gz 11 Url:http://www.stam.com.cn 12 Packager:stam 13 14 %description 15 This package is just a demo RPM 16 17 %prep 18 %setup -c 19 %install 20 21 install -m 755 showshenxun.sh /usr/local/bin/showshenxun.sh 22 %files 23 /usr/local/bin/showshenxun.sh how can i solve the problem?? can someone help me ???thanks -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Sonntag 06 Dezember 2009 03:36:21 wrote shenxun521@gmail.com:
hi all, I. today i use rpmbuild to creat a rpm package,however i get an error :
RPM build errors: File not found: /usr/src/packages/BUILDROOT/showshenxun-1.0-1.i386/usr/local/bin/sho wshenxun.sh It looks. that the *.sh cant found. Try: Source1: showshenxun.sh
%install %__install -d %{_bindir} %__install -m 755 {S:1} %{_bindir}/showshenxun.sh %files % dir %{_bindir} %{_bindir}/showshenxun.sh For openSUSE the Target should not be /usr/local/bin. Better use /usr/bin. For that it exists the Macro %{_bindir}
how can i solve the problem?? can someone help me ???thanks For question like that, please use the opensuse-packaging List. Then you get faster Informations.
-- Sincerely yours Sascha Manns open-slx GmbH openSUSE Member openSUSE Community & Support Agent openSUSE Ambassador Web: http://www.open-slx.de openSUSE Marketing Team Web: http://www.open-slx.com openSUSE Build Service openSUSE Medical Team Web: http://saschamanns.gulli.to Blog: http://saigkill.wordpress.com ClaimID: http://claimid.com/saigkill -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Sascha 'saigkill' Manns
-
shenxun521@gmail.com