## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global gittag tags Name: sc-im Version: 0.8.4 Release: %autorelease Summary: Spreadsheet Calculator Improvised, aka sc-im, is an ncurses based, vim-like spreadsheet calculator. License: https://github.com/andmarti1424/sc-im/blob/freeze/LICENSE URL: https://github.com/andmarti1424/sc-im Source0: https://github.com/andmarti1424/sc-im/archive/refs/tags/v%{version}.tar.gz BuildRequires: gcc BuildRequires: make BuildRequires: ncurses-devel BuildRequires: bison-devel BuildRequires: byacc BuildRequires: %{_bindir}/which BuildRequires: %{_bindir}/pkg-config %description %prep #extracted directory has name that differs from tarbal name in v in version %autosetup -n sc-im-%{version} # Modify the Makefile to comply with the FHS sed -i 's|/usr/local|/usr|g' src/Makefile %build make -C %{_builddir}/%{name}-%{version}/src %install make -C %{_builddir}/%{name}-%{version}/src DESTDIR=%{buildroot} install %files %{_bindir}/sc-im %{_bindir}/scopen #manpages %{_mandir}/man1/sc-im.1.gz # Data files in share directory %{_datadir}/sc-im/plot_bar %{_datadir}/sc-im/plot_line %{_datadir}/sc-im/plot_pie %{_datadir}/sc-im/plot_scatter %{_datadir}/sc-im/sc-im_help %license LICENSE %doc CHANGES Readme.md BUGS HELP KNOWN_ISSUES USER_REQUESTS WIKI doc %changelog * Tue Dec 10 2024 Tomas Juhasz - Initial RPM package