Blob Blame History Raw
%global gitdate         20160703
%global gittag          34bb86b29320a4ae96386b1c2913a77b89e85d0a
%global shorttag        %(c=%{gittag}; echo ${c:0:7})
%global user            gabime
%global debug_package   %{nil}

Name:           spdlog
Version:        0
Release:        7.%{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}
Provides:       %{name} = %{version}-%{release}
Requires:       libstdc++-devel

%description devel
The %{name}-devel package contains C++ 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 devel
%doc README.md example/
%license LICENSE
%{_includedir}/spdlog/

%changelog
* Fri Jul 08 2016 Daniel Kopecek <dkopecek@redhat.com> - 0-7.20160703git34bb86b
- update to rev 34bb86b

* Tue Nov 10 2015 Daniel Kopecek <dkopecek@redhat.com> - 0-6.20151110gitcbc8ba7
- update to rev cbc8ba7

* Thu Apr 30 2015 Daniel Kopecek <dkopecek@redhat.com> - 0-4.20150410git211ce99
- don't build the base package
- remove a dot from the release tag
- corrected -devel subpackage description

* Mon Apr 20 2015 Daniel Kopecek <dkopecek@redhat.com> - 0-3.20150410git.211ce99
- use the -p option when copying the header files

* Tue Apr 14 2015 Daniel Kopecek <dkopecek@redhat.com> - 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 <dkopecek@redhat.com> - 0-1.20150410git.211ce99
- Initial package