Name: grex Version: 1.4.6 Release: 1%{?dist} Summary: A command-line tool for generating regular expressions from user-provided test cases License: Apache-2.0 URL: https://github.com/pemistahl/grex Source0: https://github.com/pemistahl/%{name}/archive/v%{version}.tar.gz BuildRequires: rust >= 1.70.0 BuildRequires: cargo %description grex is a library as well as a command-line utility that is meant to simplify the often complicated and tedious task of creating regular expressions. It does so by automatically generating a single regular expression from user-provided test cases. %prep %autosetup -n %{name}-%{version} %build cargo build --release --locked %install install -D -m 755 target/release/grex %{buildroot}%{_bindir}/grex install -D -m 655 target/release/libgrex.so %{buildroot}%{_libdir}/libgrex.so %check cargo test %files %license LICENSE %doc README.md %{_bindir}/grex %{_libdir}/libgrex.so %changelog * Tue Nov 19 2024 Mingliang Song - 1.4.6-1 - Initial RPM package