A
Anonymous
Gast
Hi,
ich habe mir in meiner VM ein Rpm-Paket für Silicon gebaut (http://kde-apps.org/content/show.php/Silicon+-+Image+Manager?content=106128).
Das hat soweit auch gut geklappt, und das Proggi läuft. Wenn ich jetzt aber aus dem src.rpm auf meiner grossen Kiste ein rpm bauen lasse, bekomme ich folgenden Fehler:
Irgendwie stimmt da eine Kleinigkeit im Spec-File nicht. Wieso soll jetzt direkt nach /etc/init.d und nicht in BUILDROOT/etc/init.d installiert werden? Oder verstehe ich da was falsch?
Hier ist das Spec-File:
Kann mir bitte jemand helfen?
ich habe mir in meiner VM ein Rpm-Paket für Silicon gebaut (http://kde-apps.org/content/show.php/Silicon+-+Image+Manager?content=106128).
Das hat soweit auch gut geklappt, und das Proggi läuft. Wenn ich jetzt aber aus dem src.rpm auf meiner grossen Kiste ein rpm bauen lasse, bekomme ich folgenden Fehler:
Code:
(...)
install files/init/silicon /etc/init.d/
install: reguläre Datei „/etc/init.d/silicon“ kann nicht angelegt werden: Keine Berechtigung
make: *** [install] Fehler 1
error: Bad exit status from /var/tmp/rpm-tmp.cIVzov (%install)
Irgendwie stimmt da eine Kleinigkeit im Spec-File nicht. Wieso soll jetzt direkt nach /etc/init.d und nicht in BUILDROOT/etc/init.d installiert werden? Oder verstehe ich da was falsch?
Hier ist das Spec-File:
Code:
#
# spec file for package silicon (Version 1.2.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: silicon
BuildRequires: libkde4-devel
License: GPL v3 only
Group: Productivity/Multimedia/Other
Summary: KDE Image Manager
Version: 1.2.0
Release: 0.1
BuildRoot: %{_tmppath}/%{name}-build
Source: %{name}.tar.gz
Url: silicon.hyperray.net
%description
Silicon is an auto image mounter (Iso , Squashfs and ... files ) that work under GNU/Linux.
It's free and open source (License Under the GPL).
Authors:
--------
Bardia Daneshvar <bardia@hyperray.net>
%prep
%setup -q -n %{name}
%build
make
#%makeinstall
%install
#pushd
%makeinstall
#popd
%suse_update_desktop_file silicon
#%find_lang silicon
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc Readme
/usr/bin/silicon
/etc/silicon/config
/etc/silicon/database
/usr/share/applications/silicon.desktop
/usr/share/silicon
/usr/share/silicon/config
#/usr/share/kde4/config.kcfg/choqok.kcfg
/usr/share/icons/hicolor/*/apps/silicon.*
#/usr/share/icons/hicolor/*/actions/retweet.*
%changelog
* Sat Mar 6 2010 robertherb@arcor.de
* Initial package creared
Kann mir bitte jemand helfen?