Package libantlr4: Specfile

Name: libantlr4
Version: 4.8
Release: alt1

Summary: ANTLR C++ runtime
License: BSD
Group: System/Libraries


Packager: Vitaly Lipatov <>

# Source-url:
Source: %name-%version.tar

BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake gcc-c++
BuildRequires: libuuid-devel

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator
for reading, processing, executing, or translating structured text or binary files.
It's widely used to build languages, tools, and frameworks.
From a grammar, ANTLR generates a parser that can build parse trees and also generates
a listener interface (or visitor) that makes it easy to respond to the recognition of phrases of interest.

%package devel
Summary: Header files for %name
Group: Development/C++
Requires: %name = %version-%release

%description devel
Header files for %name.

# build only cpp runtime
rm -f *.* && mv runtime runtime-t && mv runtime-t/Cpp/* .
# TODO: fix in upstream
%__subst "s|DESTINATION lib|DESTINATION %_lib|" runtime/CMakeLists.txt


rm -fv %buildroot%_libdir/libantlr4-runtime.a
rm -fv %buildroot%_docdir/%name/


%files devel

* Wed Nov 04 2020 Vitaly Lipatov <> 4.8-alt1
- initial build for ALT Sisyphus