A new user interface for you! Read more...

File inastemp-0.2.spec of Package inastemp

%define _topdir /home/bbramas/Projects/inastemp/Packing/rpm
Summary: Inastemp
Name: inastemp
Version: 0.2
Release: 0.2rc
Source0: %{name}-%{version}.tar
URL: https://gitlab.mpcdf.mpg.de/bbramas/inastemp/repository/archive.tar?ref=%{version}
License: MIT
Group: Development/Tools
%description
This is an auto vectorization library.
%prep
%setup
%build
mkdir build
cd build
cmake .. -DINASTEMP_DO_INSTALL=ON -DINASTEMP_BUILD_UTESTS=OFF -DINASTEMP_BUILD_PATTERNS=OFF -DINASTEMP_BUILD_EXAMPLES=OFF \
        -DARCH_NATIVE_FLAG="" \
        -DCMAKE_INSTALL_PREFIX="%_prefix" \
        -DCMAKE_INSTALL_LIBEXEC="%_libexecdir" \
        -DCMAKE_C_FLAGS:STRING="%optflags" \
        -DCMAKE_CXX_FLAGS:STRING="%optflags"
make
%install
cd build
DESTDIR=$RPM_BUILD_ROOT make install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README.md LICENSE
%{_prefix}/include/*
%{_prefix}/lib/*