commit 06583a28d0d78b8d424592663e67097917c4f8a7 Author: Toor Date: Mon Jun 24 16:40:29 2019 -0400 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1810cfd --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +env/ +.idea/ \ No newline at end of file diff --git a/IBM_packaging_tut/README.md b/IBM_packaging_tut/README.md new file mode 100644 index 0000000..589ac7d --- /dev/null +++ b/IBM_packaging_tut/README.md @@ -0,0 +1,10 @@ +# IBM packaging tutorial + +https://developer.ibm.com/tutorials/l-rpm1/ + +There were some details that needed to be fixed in the original .spec file + +1. `%define _topdir /home/toor/mywget` You needed to set your _topdir to your user's home directory. +2. The `make install prefix=$RPM_BUILD_ROOT/usr` needed to be `make install prefix=$RPM_BUILD_ROOT/usr/local` +3. `%defattr(-,root,root)` and `%attr(0444,root,root)` needed to be typed out by hand. Something happened in the copy paste I guess. +4. diff --git a/IBM_packaging_tut/wget-latest.tar.gz b/IBM_packaging_tut/wget-latest.tar.gz new file mode 100644 index 0000000..5fd16e8 Binary files /dev/null and b/IBM_packaging_tut/wget-latest.tar.gz differ diff --git a/rpm_packaging_guide_tut/README.md b/rpm_packaging_guide_tut/README.md new file mode 100644 index 0000000..8a862b2 --- /dev/null +++ b/rpm_packaging_guide_tut/README.md @@ -0,0 +1,12 @@ +# RPM Packaging guide + +https://rpm-packaging-guide.github.io/ + +This guide seems a little more detailed as compared to the IBM tutorial. More core concepts, and less copy pasta. + +Project list: + +|Program name| Purpose| +| ------------- |-------------| +| hello-world | Your first rpm package. Creates a hello world script and rpm from one spec file.| +| | | diff --git a/rpm_packaging_guide_tut/hello-world/hello-world.spec b/rpm_packaging_guide_tut/hello-world/hello-world.spec new file mode 100644 index 0000000..a9f10d6 --- /dev/null +++ b/rpm_packaging_guide_tut/hello-world/hello-world.spec @@ -0,0 +1,26 @@ +Name: hello-world +Version: 1 +Release: 1 +Summary: Most simple RPM package +License: MIT + +%description +This is my first RPM package, which does nothing. + +%prep +# We have no source, so nothing to do here + +%build +# Here we create a hello world shell script +cat > hello-world.sh <