I apologize for posting if this is a duplicate issue and/or in the wrong place however I had a quick question regarding RPM building.
So, I've read quite a few articles on RPM building and still having issues!
http://www.rpm.org/RPM-HOWTO/build.html
http://perso.b2b2c.ca/sarrazip/dev/r...sh-course.html
http://www.rpm.org/max-rpm/s1-rpm-bu...-go-wrong.html
So this is beyond simple.... I'm just trying to create a directory right now.
As you can see from the install, i'm just trying to make a folder called hello_world.
The reason I'm so confused(and it could be because I don't' quite grasp the concept of making/building rpm's) is that it works fine when I do the build ...
rpmbuild -qa myspec.spec
It goes through the motions, deletes and creates all the files that I needed ...
so I delete the folder and run the rpm
rpm -i myspec.rpm
and it says it installs fine, I do a query through rpm and the package says it was installed. However, I go to see my directory and it's no where to be found!
I'm clueless and lost ... if anybody could provide some insight, it'd be greatly appreciated. Ultimately I will be using this to distribute a code base so I don't need any make installs(or at least I don't think I do).
My end goal is to unzip the source.tgz .... and copy that to a different location.
Any insight or help is greatly appreciated.
Summary: This is just a tester ...
Name: tester_tester
Version: 3.3.0
Release: 1
License: public
Source: sphere.tar.gz
BuildRoot: %{_tmppath}/tester-root
Group:System Environment/Base
%description
Code that is ready to be released.
%prep
%setup -c
%install
rm -rf $RPM_BUILD_ROOT
#Here is the directory I'd like to create!
mkdir /var/www/html/hello_world
%clean
rm -rf $RPM_BUILD_ROOT
%post
%files
%defattr(-,root,root)