# Restore old style debuginfo creation for rpm >= 4.14.
%undefine _debugsource_packages
%undefine _debuginfo_subpackages

# -*- rpm-spec -*-
BuildRoot:      %_topdir/filestorm-0.3.21-Source
Summary:        filestorm built using CMake
Name:           filestorm
Version:        0.3.21
Release:        1%{?dist}
License:        unknown
Group:          unknown
Vendor:         Humanity

Source: filestorm-0.3.21.tar.gz
BuildRequires: cmake, gcc-c++, spdlog-devel, fmt-devel, git, json-devel, eigen3-devel



%define debug_package %{nil}

%define _rpmdir %_topdir/RPMS
%define _srcrpmdir %_topdir/SRPMS

%define _unpackaged_files_terminate_build 0





%description
DESCRIPTION
===========

This is an installer created using CPack (https://cmake.org). No additional installation instructions provided.



# This is a shortcutted spec file generated by CMake RPM generator
# we skip _install step because CPack does that for us.
# We do only save CPack installed tree in _prepr
# and then restore it in build.
%prep
%setup -c


%build
mkdir cpack_rpm_build_dir
cd cpack_rpm_build_dir
'/usr/bin/cmake'  -DCPACK_PACKAGING_INSTALL_PREFIX=/usr ../filestorm-0.3.21-Source
make %{?_smp_mflags}

#p build

%install

cd cpack_rpm_build_dir
cpack -G RPM
mv *.rpm %_rpmdir

%clean

%changelog
* Sun Jul 4 2010 Eric Noulard <eric.noulard@gmail.com> - 0.3.21-1%{?dist}
  Generated by CPack RPM (no Changelog file were provided)