LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cec.spec of Package cec (Project home:dilawar)

# spec file for package cec
%define debug_package %{nil}
Name: cec
Group: Productivity/Scientific/Electronics
Summary: Columbia Esterel Compiler

Version: 0.4.1
Release: 1%{?dist}
Url: http://github.com/dilawar/cec
Source0: cec-%{version}.tar.gz

License: GPL-3.0

BuildRequires: gcc, gcc-c++, cmake
%if 0%{?fedora}
BuildRequires: expat-devel 
%else
BuildRequires: libexpat-devel
%endif

%description -n cec
The Columbia Esterel Compiler is an open-source compiler designed for research in both hardware and software generation from the Esterel synchronous language. 

%prep
%setup -q

%build
cmake \
    -DCMAKE_INSTALL_PREFIX=%{buildroot}/usr \
    -DCMAKE_INSTALL_DO_STRIP=1 \
    -DCMAKE_CXX_FLAGS=%optflags \
    -DCMAKE_BUILD_TYPE="Release|RelWithDebugInfo" \
    . 

make VERBOSE=1 %{?_smp_mflags}

%install
make install

%files 
%defattr(-,root,root)
/usr