2018-12-06 10:03:10 +01:00
|
|
|
#
|
|
|
|
# spec file for package fmt
|
|
|
|
#
|
2019-11-29 11:25:23 +01:00
|
|
|
# Copyright (c) 2019 SUSE LLC
|
2018-12-06 10:03:10 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-11-29 11:25:23 +01:00
|
|
|
%define sover 6
|
2018-12-06 10:03:10 +01:00
|
|
|
Name: fmt
|
2019-12-11 12:37:52 +01:00
|
|
|
Version: 6.1.1
|
2018-12-06 10:03:10 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A formatting library for C++
|
2019-11-29 11:25:23 +01:00
|
|
|
License: MIT
|
2018-12-06 10:03:10 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
URL: http://fmtlib.net/
|
|
|
|
Source0: https://github.com/fmtlib/fmt/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2018-12-06 14:39:12 +01:00
|
|
|
Source1: baselibs.conf
|
2018-12-06 10:03:10 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
%description
|
2018-12-06 22:57:59 +01:00
|
|
|
Fmt is a formatting library for C++. It can be used as an
|
2018-12-06 10:03:10 +01:00
|
|
|
alternative to (s)printf and IOStreams.
|
|
|
|
|
|
|
|
%package -n libfmt%{sover}
|
2018-12-06 22:57:59 +01:00
|
|
|
Summary: A formatting library for C++
|
2018-12-06 10:03:10 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libfmt%{sover}
|
2018-12-06 22:57:59 +01:00
|
|
|
Shared library for fmt, a formatting library for C++.
|
2018-12-06 10:03:10 +01:00
|
|
|
|
|
|
|
%package devel
|
2018-12-06 22:57:59 +01:00
|
|
|
Summary: Development files for fmt, a formatting library
|
2018-12-06 10:03:10 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libfmt%{sover} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
2018-12-06 22:57:59 +01:00
|
|
|
Development files for fmt, a formatting library for C++.
|
2018-12-06 10:03:10 +01:00
|
|
|
|
|
|
|
%prep
|
2019-03-26 09:29:23 +01:00
|
|
|
%autosetup -p1
|
2018-12-06 10:03:10 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir}
|
|
|
|
|
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
%check
|
|
|
|
# path needs to be exported otherwise unit tests will fail
|
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
|
|
|
|
%ctest
|
|
|
|
|
|
|
|
%post -n libfmt%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libfmt%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libfmt%{sover}
|
|
|
|
%if 0%{?sle_version} > 120200
|
|
|
|
%license LICENSE.rst
|
|
|
|
%else
|
|
|
|
%doc LICENSE.rst
|
|
|
|
%endif
|
|
|
|
%{_libdir}/libfmt.so.%{sover}*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc ChangeLog.rst README.rst
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_libdir}/cmake/%{name}
|
|
|
|
%{_libdir}/libfmt.so
|
2019-03-26 09:29:23 +01:00
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2018-12-06 10:03:10 +01:00
|
|
|
|
|
|
|
%changelog
|