Version: 4.10.1 Release: 0 Summary: Header files for programs that use C++ ANTLR parsers License: BSD-3-Clause BuildArch: noarch Requires: antlr4-cpp-runtime-devel %define lib antlr4-runtime Name: %{lib}-devel %{!?base_include:%define base_include %_includedir/%lib} %{!?_pkgconfig_dir:%define _pkgconfig_dir %_datadir/pkgconfig} %define pcfile %_pkgconfig_dir/%lib.pc %prep %build cat << EOFEOF > %lib.pc Name: %lib Description: %summary Version: %version Libs: -l%lib Cflags: -I%base_include EOFEOF %install install -Dm644 %lib.pc %buildroot%pcfile %description ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It is widely used to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can build and walk parse trees. This package provides header files for programs that use C++ ANTLR parsers. %files %dir %_pkgconfig_dir %pcfile