-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Which creates a package with three files: - README.txt - <name>.spec - <name>.changes
- Loading branch information
Showing
4 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Name: factory_package | ||
Version: 1 | ||
Release: 1 | ||
Summary: Most simple RPM package | ||
License: CC0-1.0 | ||
|
||
%description | ||
This is my first RPM package, which does nothing. | ||
|
||
%prep | ||
# we have no source, so nothing here | ||
|
||
%build | ||
cat > factory_package.sh <<EOF | ||
#!/usr/bin/bash | ||
echo Hello world, from factory_package. | ||
EOF | ||
|
||
%install | ||
mkdir -p %{buildroot}/usr/bin/ | ||
install -m 755 factory_package.sh %{buildroot}/usr/bin/factory_package.sh | ||
|
||
%files | ||
/usr/bin/factory_package.sh | ||
|
||
%changelog | ||
# let skip this for now |