From bb5253c5e3bb6c00921383cc3a4c96e8d6e3e171 Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Jun 08 2020 13:42:57 +0000 Subject: Package v1.6.2 --- diff --git a/fairlogger.spec b/fairlogger.spec new file mode 100644 index 0000000..8cd8aa3 --- /dev/null +++ b/fairlogger.spec @@ -0,0 +1,60 @@ +Name: fairlogger +Version: 1.6.2 +Release: 1%{?dist} +Summary: Lightweight and fast C++ Logging Library + +License: LGPLv3 +%define github github.com +%define gh_org FairRootGroup +%define gh_repo FairLogger +%define gh_repo_url https://%{github}/%{gh_org}/%{gh_repo} +URL: %{gh_repo_url} +Source0: %{gh_repo_url}/archive/v%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: fmt-devel +BuildRequires: gcc-c++ +BuildRequires: git +Requires: fmt + +%description +FairLogger is a lightweight and fast C++ logging library. + +%global debug_package %{nil} + +%prep +%autosetup -S git -n %{gh_repo}-%{version} +git tag v%{version} + +%build +cmake -S. -Bbuild \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DCMAKE_BUILD_TYPE=Release \ + -DDISABLE_COLOR=ON \ + -DUSE_EXTERNAL_FMT=ON +cmake --build build %{?_smp_mflags} + +%install +DESTDIR=%{buildroot} cmake --build build --target install + +%files +%license LICENSE +%{_libdir}/libFairLogger.so* + + +%package devel +Requires: fmt-devel +Summary: Development files for fairlogger + +%description devel +This package contains the header files and CMake package for developing against FairLogger. + +%files devel +%license LICENSE +%{_includedir}/%{name}/*.h +%{_libdir}/cmake/%{gh_repo}-%{version}/%{gh_repo}*.cmake + + +%changelog +* Mon Jun 8 2020 Dennis Klein +- Package v1.6.2