File boron.spec of Package boron
%define sover 2
Name: boron
Version: 2.1.0
Release: 0
Summary: Scripting language and C library useful for building DSLs
License: LGPL-3.0-or-later
Group: Development/Languages/C and C++
URL: https://urlan.sf.net/boron
Source: https://master.dl.sourceforge.net/project/urlan/Boron/%{name}-%{version}.tar.gz
BuildRequires: zlib-devel
%description
Boron is an interpreted, prototype-based, scripting language similar to Rebol.
The interpreter and datatype system is a C library useful for building
domain specific languages embedded in C/C++ applications.
This package contains the interpreter binary.
%package devel
Summary: Development files for Boron
Group: Development/Languages/C and C++
Requires: %{name} = %{version}
%description devel
This package contains the header files and libraries needed to build
C/C++ programs that use the Boron interpreter.
%package -n libboron%{sover}
Summary: Scripting language and C library useful for building DSLs
Group: System/Libraries
%description -n libboron%{sover}
Boron is an interpreted, prototype-based, scripting language similar to Rebol.
The interpreter and datatype system is a C library useful for building
domain specific languages embedded in C/C++ applications.
This package contains the shared runtime library.
%prep
%autosetup
%build
# non autotools style ./configure
./configure --thread
%make_build
%install
make install DESTDIR=%{buildroot}%{_prefix}
make install-dev DESTDIR=%{buildroot}%{_prefix}
%ldconfig_scriptlets -n libboron%{sover}
%check
make -C test
%files
%license LICENSE LICENSE.GPL
%doc ChangeLog README.md
%{_bindir}/boron
%{_mandir}/man1/boron.1%{?ext_man}
%files devel
%{_includedir}/boron/
%{_libdir}/libboron.so
%{_datadir}/vim/
%files -n libboron%{sover}
%{_libdir}/libboron.so.%{sover}*
%changelog