initial commit
commit
06583a28d0
@ -0,0 +1,2 @@
|
||||
env/
|
||||
.idea/
|
@ -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.
|
Binary file not shown.
@ -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.|
|
||||
| | |
|
@ -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 <<EOF
|
||||
#!/usr/bin/bash
|
||||
echo Hello world
|
||||
EOF
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
||||
install -m 755 hello-world.sh $RPM_BUILD_ROOT/usr/bin/hello-world.sh
|
||||
|
||||
%files
|
||||
/usr/bin/hello-world.sh
|
||||
|
Loading…
Reference in New Issue