I have created my own .rpm file. The installation works prefect on the command line but doesn't work properly when i am doing it from the GUI.
The only thing that doesn't work from the GUI is the %post script. I try to invoke the browser post installation, works when i run through the command line but not through GUI.
Here is the .spec file used for rpm building
Name:sample_rpm
Version:1.0
Release:1%{?dist}
Summary:Sample RPM package for testing post install script
Group:Development/Tools
License:GPL
URL:None
Source0:sample_rpm.tar.gz
%description
Sample rpm for testing post install script
%prep
%setup -n sample_rpm
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p "$RPM_BUILD_ROOT/opt/sample_rpm"
cp -R * "$RPM_BUILD_ROOT/opt/sample_rpm"
%post
exec "/usr/bin/firefox" "http://www.google.com" &
%clean
rm -rf $RPM_BUILD_ROOT
%files
/opt/sample_rpm/
%defattr(-,root,root,-)
%doc
%changelog
Thanks in advance!