935ffa7
Name:           4th
935ffa7
Version:        3.62.5
ac388c0
Release:        6%{?dist}
935ffa7
Summary:        A Forth compiler
935ffa7
935ffa7
License:        GPLv3+
935ffa7
URL:            https://thebeez.home.xs4all.nl/4tH/
935ffa7
Source0:        https://downloads.sourceforge.net/project/forth-4th/%{name}-%{version}/%{name}-%{version}-unix.tar.gz
935ffa7
935ffa7
BuildRequires:  gcc make
935ffa7
935ffa7
%description
935ffa7
4tH is basic framework for creating application specific scripting
935ffa7
languages. It is a library of functions centered around a virtual
935ffa7
machine, which guarantees high performance, ease of use and low overhead.
935ffa7
935ffa7
935ffa7
%package devel
935ffa7
Summary:        Development files for 4th
935ffa7
Requires:       %{name}%{?_isa} = %{version}-%{release}
935ffa7
935ffa7
%description devel
935ffa7
This package includes headers for development with 4th, a Forth compiler
935ffa7
library.
935ffa7
935ffa7
935ffa7
%prep
935ffa7
%setup -q -n %{name}-%{version}-unix
935ffa7
935ffa7
935ffa7
%build
935ffa7
LD_LIBRARY_PATH="$PWD/sources/" \
935ffa7
make %{?_smp_mflags} -C sources \
935ffa7
        STATIC= SHARED=1 \
935ffa7
        CFLAGS="-DUNIX -fsigned-char %{optflags} -fPIC"
935ffa7
935ffa7
935ffa7
%install
935ffa7
mkdir -p \
935ffa7
        %{buildroot}%{_libdir} \
935ffa7
        %{buildroot}%{_includedir}/%{name} \
935ffa7
        %{buildroot}%{_bindir} \
935ffa7
        %{buildroot}%{_mandir} \
935ffa7
        %{buildroot}%{_docdir}/%{name}
935ffa7
935ffa7
LD_LIBRARY_PATH="$PWD/sources/" \
935ffa7
%make_install -C sources \
935ffa7
        STATIC= SHARED=1 \
935ffa7
        LIBRARIES=%{buildroot}%{_libdir} \
935ffa7
        INCLUDES=%{buildroot}%{_includedir} \
935ffa7
        BINARIES=%{buildroot}%{_bindir} \
935ffa7
        MANDIR=%{buildroot}%{_mandir} \
935ffa7
        DOCDIR=%{buildroot}%{_docdir}
935ffa7
cp -ap sources/include/*.h %{buildroot}%{_includedir}/%{name}/
935ffa7
935ffa7
935ffa7
%files
935ffa7
%{_libdir}/lib4th.so.3*
935ffa7
%{_bindir}/4tsh
935ffa7
%{_bindir}/pp4th
935ffa7
%{_bindir}/4th
935ffa7
%{_mandir}/man1/4th.1*
935ffa7
%doc %{_docdir}/%{name}
935ffa7
%doc README
935ffa7
%license COPYING
935ffa7
935ffa7
935ffa7
%files devel
935ffa7
%{_libdir}/lib4th.so
935ffa7
%{_includedir}/%{name}
935ffa7
935ffa7
935ffa7
%changelog
ac388c0
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.62.5-6
ac388c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ac388c0
3c7b126
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.62.5-5
3c7b126
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3c7b126
630a9c6
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.62.5-4
630a9c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
630a9c6
705ade9
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.62.5-3
705ade9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
705ade9
935ffa7
* Sun Sep 16 2018 Lubomir Rintel <lkundrak@v3.sk> - 3.62.5-2
935ffa7
- Fix issues discovered in review (Robert-André Mauchin, rh#1628149):
935ffa7
- Dropped Group tag
935ffa7
- Fixed a typo in devel package requires
935ffa7
- Corrected the dynamic library file match
935ffa7
935ffa7
* Tue Sep 11 2018 Lubomir Rintel <lkundrak@v3.sk> - 3.62.5-1
935ffa7
- Initial packaging