%global gitdate 20150410 %global gittag 211ce99d29820f7a02c874360be11978ef40fee8 %global shorttag %(c=%{gittag}; echo ${c:0:7}) %global user gabime %global debug_package %{nil} Name: spdlog Version: 0 Release: 3.%{gitdate}git.%{shorttag}%{?dist} Summary: Super fast C++ logging library Group: Development/Libraries License: MIT URL: https://github.com/%{user}/%{name}/ Source0: https://github.com/%{user}/%{name}/tarball/%{gittag}/%{user}-%{name}-%{shorttag}.tar.gz %description This is a packaged version of the gabime/spdlog header-only C++ logging library available at Github. %package devel Summary: Development files for %{name} Group: Development/Libraries Provides: %{name}-static = %{version}-%{release} Requires: %{name} = %{version}-%{release} Requires: libstdc++-devel %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q -n %{user}-%{name}-%{shorttag} %build # Nothing to build here. %install find ./example -name '.gitignore' -exec rm {} \; mkdir -p %{buildroot}%{_includedir} cp -pvR include/spdlog %{buildroot}%{_includedir} %files %doc README.md %license LICENSE %files devel %doc example/ %dir %{_includedir}/spdlog %{_includedir}/spdlog/* %changelog * Mon Apr 20 2015 Daniel Kopecek - 0-3.20150410git.211ce99 - use the -p option when copying the header files * Tue Apr 14 2015 Daniel Kopecek - 0-2.20150410git.211ce99 - don't build the debuginfo subpackage - require libstdc++-devel - don't generate a distribution specific pkg-config file * Fri Apr 10 2015 Daniel Kopecek - 0-1.20150410git.211ce99 - Initial package