From e64d5d0c347c7c7155f414d8c2a7c766523ded9b Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Thu, 2 Mar 2023 12:24:46 -0800 Subject: Add specfile for building basic rpm package --- Makefile.am | 2 +- Makefile.in | 2 +- docs/README.md | 5 +++++ spec/terminal-media-launcher.spec | 46 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 spec/terminal-media-launcher.spec diff --git a/Makefile.am b/Makefile.am index 7c79f47..11c73d0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,4 +2,4 @@ SUBDIRS = src docs data dist_man_MANS = man man1_MANS = man/$(PACKAGE_NAME).1 man5_MANS = man/$(PACKAGE_NAME)-config.5 -EXTRA_DIST = debian +EXTRA_DIST = debian spec diff --git a/Makefile.in b/Makefile.in index 6508c1e..dd24389 100644 --- a/Makefile.in +++ b/Makefile.in @@ -338,7 +338,7 @@ SUBDIRS = src docs data dist_man_MANS = man man1_MANS = man/$(PACKAGE_NAME).1 man5_MANS = man/$(PACKAGE_NAME)-config.5 -EXTRA_DIST = debian +EXTRA_DIST = debian spec all: all-recursive .SUFFIXES: diff --git a/docs/README.md b/docs/README.md index 923b22a..804e977 100644 --- a/docs/README.md +++ b/docs/README.md @@ -17,6 +17,11 @@ On Debian and Debian-based systems: # apt install gcc libncurses-dev make ``` +On RHEL and RHEL-based systems: +``` +# dnf install gcc ncurses-devel +``` + 2. Download the latest `.tar.gz` release - The source acquired from the source repository can also be compiled, but requires additional dependencies to build (`autoconf`, `automake`, `autoconf-archive`) 3. Run the commands below in the directory the repository was cloned into. This will build the binary `src/terminal-media-launcher` diff --git a/spec/terminal-media-launcher.spec b/spec/terminal-media-launcher.spec new file mode 100644 index 0000000..1b642de --- /dev/null +++ b/spec/terminal-media-launcher.spec @@ -0,0 +1,46 @@ +Name: terminal-media-launcher +Version: 0.1 +Release: 1%{?dist} +Summary: Lightweight Terminal Media Launcher written in C + +License: GPLv3+ +URL: https://github.com/lshprung/terminal-media-launcher +Source0: %{name}-%{version}.tar.gz + +Requires: glibc >= 2.7, ncurses >= 6 + +%description +Terminal Media Launcher is a command line utility to help streamline +launching applications and other media + +%prep +%autosetup + + +%build +%configure +%make_build + + +%install +rm -rf $RPM_BUILD_ROOT +%make_install + + +%files +%license +%doc +%{_bindir}/terminal-media-launcher +%{_docdir}/terminal-media-launcher/README.md +%{_docdir}/terminal-media-launcher/screenshot1.png +%{_docdir}/terminal-media-launcher/screenshot2.png +%{_docdir}/terminal-media-launcher/terminal-media-launcher-config.md +%{_docdir}/terminal-media-launcher/windows_compile_instructions.md +%{_mandir}/man1/terminal-media-launcher.1.gz +%{_mandir}/man5/terminal-media-launcher-config.5.gz + + + +%changelog +* Thu Mar 02 2023 louie +- First version being packaged -- cgit