Blob Blame History Raw
Name:           4th
Version:        3.62.5
Release:        2%{?dist}
Summary:        A Forth compiler

License:        GPLv3+

BuildRequires:  gcc make

4tH is basic framework for creating application specific scripting
languages. It is a library of functions centered around a virtual
machine, which guarantees high performance, ease of use and low overhead.

%package devel
Summary:        Development files for 4th
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package includes headers for development with 4th, a Forth compiler

%setup -q -n %{name}-%{version}-unix

LD_LIBRARY_PATH="$PWD/sources/" \
make %{?_smp_mflags} -C sources \
        STATIC= SHARED=1 \
        CFLAGS="-DUNIX -fsigned-char %{optflags} -fPIC"

mkdir -p \
        %{buildroot}%{_libdir} \
        %{buildroot}%{_includedir}/%{name} \
        %{buildroot}%{_bindir} \
        %{buildroot}%{_mandir} \

LD_LIBRARY_PATH="$PWD/sources/" \
%make_install -C sources \
        STATIC= SHARED=1 \
        LIBRARIES=%{buildroot}%{_libdir} \
        INCLUDES=%{buildroot}%{_includedir} \
        BINARIES=%{buildroot}%{_bindir} \
        MANDIR=%{buildroot}%{_mandir} \
cp -ap sources/include/*.h %{buildroot}%{_includedir}/%{name}/

%doc %{_docdir}/%{name}
%license COPYING

%files devel

* Sun Sep 16 2018 Lubomir Rintel <> - 3.62.5-2
- Fix issues discovered in review (Robert-André Mauchin, rh#1628149):
- Dropped Group tag
- Fixed a typo in devel package requires
- Corrected the dynamic library file match

* Tue Sep 11 2018 Lubomir Rintel <> - 3.62.5-1
- Initial packaging