# Generated from banco-1.0.3.gem by gem2rpm -*- rpm-spec -*- %global gem_name banco Name: rubygem-%{gem_name} Version: 1.0.3 Release: 1%{?dist} Summary: Make your bank's .csv file statement more readable License: MIT URL: https://github.com/s33dco/banco Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.9 # BuildRequires: rubygem(rspec) >= 2.8 # BuildRequires: rubygem(rspec) < 3 BuildArch: noarch %description Welcome to Banco ! Banco has been developed to summarize statements downloaded from your bank. Install as a Rubygem, navigate to the directory your .csv files are in and execute from the command line with 'banco'. Banco will only accept comma seperated value files (.csv) and will produce a summary for the period uploaded from the file. Remove the header line from your downloaded bank statement, ensure the columns are ordered date, description, type of charge, money in an money out from left to right, any columns right of the fifth will be ignored. Banco will total the incoming & outgoing transactions for the period. Reporting the bottom line aswell as summing up the values for similar transactions. This is achieved by matching the description name, currently set at the first 9 characters of the string, (:total_outgoing :total_incoming - class Reporter), you can change this to be more or less exact. Hope your numbers are positive ! https://github.com/s33dco/banco https://rubygems.org/gems/banco. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # rspec spec popd %files %dir %{gem_instdir} %{_bindir}/banco %license %{gem_instdir}/LICENSE %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README %{gem_instdir}/spec %changelog * Sun Sep 12 2021 mockbuilder - 1.0.3-1 - Initial package