Skip to content

Instantly share code, notes, and snippets.

@dropofwill
Last active November 23, 2023 21:20
Show Gist options
  • Save dropofwill/86d76f75c4b5a2534f92 to your computer and use it in GitHub Desktop.
Save dropofwill/86d76f75c4b5a2534f92 to your computer and use it in GitHub Desktop.
RPM Packaging C++ program
%define name sharkcpp
%define version 0.1
%define release 1
Name: %{name}
Version: %{version}
Release: %{release}
Summary: Left Shark App
Group: Development/Libraries
License: GPLv3
URL: https://github.com/IGM-Software-On-Linux/584-RPM-Exercise-CPP
Source0: sharkcpp.tar.gz
BuildArch: x86_64
Vendor: Cody VanDeMark <cavigm@rit.edu>
%description
The Shark program, written in C++. Displays a shark on your screen with SDL.
%prep
%setup -q -n 584-RPM-Exercise-CPP
%build
make
%install
%make_install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_bindir}/*
%{_datadir}/sharkapp
%defattr(-,root,root)
%changelog
* Thu Apr 02 2015 Will Paul <whp3652@rit.edu> 0.1-1
- Build for class
* Tue Mar 31 2015 Julien Eid <jeid64@gmail.com> 0.1-2
- Init version of sharkcpp application
%define name sharkpy
%define version 0.1
%define release 1
Name: %{name}
Version: %{version}
Release: %{release}
Summary: Left Shark App
Group: Development/Libraries
License: GPLv3
URL: https://github.com/IGM-Software-On-Linux/584-RPM-Exercise-Py
Source0: sharkpy.tar.gz
BuildArch: noarch
Vendor: Cody VanDeMark <cavigm@rit.edu>
Requires: pygame
%description
The Shark program, written in Python. Displays a shark on your screen with SDL.
%prep
%setup -q -n 584-RPM-Exercise-Py
%build
python setup.py build
%install
python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%changelog
* Thu Apr 02 2015 Will Paul <whp3652@rit.edu> 0.1-1
- Build for class
* Tue Mar 31 2015 Julien Eid <jeid64@gmail.com> 0.1-2
- Init version of sharkpy application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment