File icmake.spec of Package icmake

# spec file for package icmake
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

Name:           icmake
Version:        9.02.02
Release:        0
Summary:        A program maintenance (make) utility using a C-like grammar
License:        GPL-3.0
Group:          Development/Tools/Building
Patch1:         prevent-double-slash.patch
BuildRequires:  bison
BuildRequires:  flex
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Icmake allows the programmer to use a program language (closely
resembling the well-known C-programming language) to define the
actions involved in (complex) program maintenance. For this, icmake
offers various special operators as well as a set of support functions
that have proven to be useful in program maintenance.

%setup -q
%patch1 -p1

export CFLAGS="%{optflags} -std=gnu99"
echo "/* created during rpmbuild */" >  %{name}/
echo "#define BINDIR      \"%{_bindir}\"" >>  %{name}/
echo "#define SKELDIR     \"%{_datadir}/%{name}\"" >>  %{name}/
echo "#define MANDIR      \"%{_mandir}\"" >>  %{name}/
echo "#define LIBDIR      \"%{_libdir}/%{name}\"" >>  %{name}/
echo "#define CONFDIR     \"%{_sysconfdir}/%{name}\"" >>  %{name}/
echo "#define DOCDIR      \"%{_docdir}/%{name}\"" >>  %{name}/
echo "#define DOCDOCDIR   \"%{_docdir}/%{name}\"" >>  %{name}/
pushd %{name}
./icm_prepare   "/"
./icm_bootstrap ""

pushd %{name}
./icm_install all %{buildroot}

%doc %{name}/changelog
%doc %{_docdir}/%{name}/
%dir %{_libdir}/icmake
%dir %{_sysconfdir}/icmake
%config %{_sysconfdir}/icmake/icmstart.rc

openSUSE Build Service is sponsored by