Hi
I'm going forward making some more RPM installers. I'm doing one for Digger Reloaded.
Everything was going fine until I need to put a file (digger.sco - the score files) on the /home/ directory.
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/@unixroot/usr/bin
mkdir -p $RPM_BUILD_ROOT/@unixroot/usr/share/doc/%{name}-%{version}
mkdir -p $RPM_BUILD_ROOT/@unixroot/usr/share/licenses/%{name}-%{version}
mkdir -p $RPM_BUILD_ROOT/@unixroot/home/.config/%{name}
cp -p *.exe $RPM_BUILD_ROOT/@unixroot/usr/bin
cp -p digger.txt $RPM_BUILD_ROOT/@unixroot/usr/share/doc/%{name}-%{version}
cp -p readme.txt $RPM_BUILD_ROOT/@unixroot/usr/share/doc/%{name}-%{version}
cp -p copyright.txt $RPM_BUILD_ROOT/@unixroot/usr/share/licenses/%{name}-%{version}
cp -p digger.sco $RPM_BUILD_ROOT/@unixroot/home/.config/%{name}
%files
%{_bindir}/*.exe
%doc digger.txt readme.txt
%license copyright.txt
??/*.sco
I have no idea what to put on %files so the RPM can grab digger.sco inside the RPM package. (That is where I have the ?)
Help is welcome.
Regards
this spec has some not very clean statements
like you never use rm -rf $RPM_BUILD_ROOT in the install section
%clean does that for you anyway
then you don't have to copy files which you reference later on with %doc or %license, as those %doc or %license copy them to the right location anyway.
look at the macros and then you see what they do.
regards
Silvan