File eclipse-titan.spec of Package eclipse-titan
#
# spec file for package eclipse-titan
#
# Copyright (c) 2018-2021, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _lto_cflags %{nil}
Name: eclipse-titan
Version: 7.2.2
Release: 0
Summary: TITAN TTCN-3 toolset from the Eclipse project
License: EPL-1.0
Group: Development/Languages/Java
URL: https://projects.eclipse.org/projects/tools.titan
#Git-Clone: https://github.com/eclipse/titan.core.git
Source: https://github.com/eclipse/titan.core/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: automake
BuildRequires: bison
BuildRequires: expect
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: java-devel >= 1.6
BuildRequires: libedit-devel
BuildRequires: libopenssl-devel
BuildRequires: libxml2-devel
BuildRequires: ncurses-devel
BuildRequires: perl
Requires: expect
Requires: gcc-c++
Requires: java >= 1.6
Requires: libopenssl-devel
Requires: libpcap-devel
Requires: libxml2-devel
Requires: lksctp-tools-devel
Requires: make
Requires: pcre-devel
Requires: perl
Requires: python
%description
TTCN-3 is a standardized, modular language specifically designed for testing.
Eclipse Titan offers a free and open source (FOSS) compiler both for TTCN-3
and for ASN.1
%prep
%setup -q -n titan.core-%{version}
sed -i 's|%{_prefix}/lib/jvm/default-java|%{_sysconfdir}/alternatives/java_sdk|g' Makefile.cfg
sed -i 's|COMPILERFLAGS := -Wall|COMPILERFLAGS := -Wall %{optflags}|g' Makefile.cfg
%build
make %{?_smp_mflags}
%install
%make_install
install -d %{buildroot}/%{_bindir}
cp -ar Install/bin/* %{buildroot}/%{_bindir}
install -d %{buildroot}/%{_datadir}/titan%{_sysconfdir}
cp -ar Install%{_sysconfdir}/* %{buildroot}/%{_datadir}/titan%{_sysconfdir}
install -d %{buildroot}/%{_datadir}/titan/help
cp -ar Install/help/* %{buildroot}/%{_datadir}/titan/help
install -d %{buildroot}/%{_includedir}/titan
cp -ar Install/include/* %{buildroot}/%{_includedir}/titan
install -d %{buildroot}%{_prefix}/lib/titan
cp -ar Install/lib/* %{buildroot}%{_prefix}/lib/titan
install -d %{buildroot}/%{_mandir}/man1
cp -ar Install/man/man1/* %{buildroot}/%{_mandir}/man1
find Install -type d -empty -delete
%files
%license LICENSE
%doc CONTRIBUTING.md README.md README.linux
%{_bindir}/*
%{_datadir}/titan
%{_datadir}/titan%{_sysconfdir}
%{_datadir}/titan/help
%{_includedir}/titan
%{_prefix}/lib/titan
%{_mandir}/man1/*
%changelog