diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d1be483 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bcal-1.8.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index dbe129b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# bcal - -The bcal package \ No newline at end of file diff --git a/bcal.spec b/bcal.spec new file mode 100644 index 0000000..48174e4 --- /dev/null +++ b/bcal.spec @@ -0,0 +1,53 @@ +Name: bcal +Version: 1.8 +Release: 1%{?dist} +Summary: Storage conversion and expression calculator + +License: GPLv3+ +URL: https://github.com/jarun/bcal +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +# Only available for 64bits system +ExclusiveArch: x86_64 aarch64 ia64 ppc64 ppc64le s390x + +BuildRequires: gcc +BuildRequires: make + + +%description +bcal (Byte CALculator) is a command-line utility for storage conversions +and calculations. Storage, hardware and firmware developers work +with numerical calculations regularly e.g., storage unit conversions, +address calculations etc. If you are one and can't calculate the hex address +offset for (512 - 16) MiB immediately, or the value when the 43rd bit of +a 64-bit address is set, bcal is for you + + +%prep +%autosetup -p1 -n %{name}-%{version} +sed -i '/STRIP ?= strip/d;s/install: bcal/install: /;s/$(CFLAGS)/$(CFLAGS) $(LDFLAGS)/' Makefile + + +%build +export CFLAGS="-fPIC %{optflags}" +export LDFLAGS="%{?__global_ldflags}" +%make_build bcal + + +%install +%make_install PREFIX=%{_prefix} + + +%files +%doc CHANGELOG README.md +%license LICENSE +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.* + + +%changelog +* Mon Mar 12 2018 Robert-André Mauchin - 1.8-1 +- Release 1.8 + +* Sat Feb 24 2018 Robert-André Mauchin - 1.7-1 +- First RPM release diff --git a/sources b/sources new file mode 100644 index 0000000..646f082 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bcal-1.8.tar.gz) = f35034df4626239ce059268e8b88400bda0115ae4210b87bff3930039d2753bb7965fa566622cdac0545e3a7654fe1ff372ef15df435250910abd1417cc53c7a