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

Add Packit support #55

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
specfile_path: semver.spec
files_to_sync:
- semver.spec
- .packit.yaml
upstream_package_name: semver
downstream_package_name: semver
35 changes: 35 additions & 0 deletions semver.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Name: semver
Version: 0.0.10
Release: %autorelease
Summary: Semantic Versioning utility
BuildArch: noarch
License: MIT
URL: https://github.com/chriskilding/%{name}
Source0: https://github.com/chriskilding/%{name}/archive/refs/tags/%{version}.tar.gz

Requires: perl

%description
The %{name} utility is a text filter for Semantic Version strings. It searches text from the standard input, selects any Semantic Versions that are present, and writes them to the standard output. It can optionally sort or tabulate the selected versions.

%prep
%setup -q

%build
make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
cp %{name} $RPM_BUILD_ROOT%{_bindir}
cp %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%doc README.md
%license LICENSE

%changelog
%autochangelog