Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First rpm spec file release #169

Merged
merged 3 commits into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions rpm/jr.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
Name: jr
Version: 0.3.9
Release: 1%{?dist}
Summary: JR: streaming quality random data from the command line

License: MIT
URL: https://jrnd.io/
Source0: https://github.com/ugol/%{name}/archive/refs/tags/v%{version}.tar.gz

BuildRequires: golang >= 1.22.0
BuildRequires: make

%description
JR is a CLI program that helps you to stream quality random data for your applications.

%global debug_package %{nil}

%prep
%setup -q

%build
make all %{?_smp_mflags}

%install
mkdir -p %{buildroot}/usr/bin
install -m 0755 %{_builddir}/%{name}-%{version}/build/jr %{buildroot}/usr/bin/jr

# Copy templates section
mkdir -p %{buildroot}%{_datadir}/jr/
cp -rf %{_builddir}/%{name}-%{version}/templates %{buildroot}%{_datadir}/jr/

# Copy config section
cp -rf %{_builddir}/%{name}-%{version}/config %{buildroot}%{_datadir}/jr/

%files
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/jr/

%changelog
* Thu Aug 22 2024 Gianni Salinetti <gbsalinetti@gmail.com> - v0.3.9
- v0.3.9 release, includes jr default config files in /usr/share/jr
* Fri Aug 16 2024 Gianni Salinetti <gbsalinetti@gmail.com> - v0.3.8
- First jr package, templates included in /usr/share/jr/templates but still not seen by the program

Loading