diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..9e72fc1 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,6 @@ +specfile_path: semver.spec +files_to_sync: + - semver.spec + - .packit.yaml +upstream_package_name: semver +downstream_package_name: semver diff --git a/semver.spec b/semver.spec new file mode 100644 index 0000000..485a759 --- /dev/null +++ b/semver.spec @@ -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