Build documentation
This commit is contained in:
parent
a5401d5080
commit
e4cc5e71b5
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/fmt-3.0.0.zip
|
/fmt-3.0.0.zip
|
||||||
/fmt-3.0.1.zip
|
/fmt-3.0.1.zip
|
||||||
|
/fmt-3.0.1.tar.gz
|
||||||
|
21
fmt.spec
21
fmt.spec
@ -1,17 +1,23 @@
|
|||||||
Name: fmt
|
Name: fmt
|
||||||
Version: 3.0.1
|
Version: 3.0.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Small, safe and fast formatting library for C++
|
Summary: Small, safe and fast formatting library for C++
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/fmtlib/fmt
|
URL: https://github.com/fmtlib/fmt
|
||||||
Source0: https://github.com/fmtlib/fmt/releases/download/%{version}/%{name}-%{version}.zip
|
Source0: https://github.com/fmtlib/fmt/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
BuildRequires: cmake3
|
BuildRequires: cmake3
|
||||||
%else
|
%else
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
%endif
|
%endif
|
||||||
|
# For building documentation
|
||||||
|
BuildRequires: doxygen
|
||||||
|
BuildRequires: git
|
||||||
|
BuildRequires: nodejs-less
|
||||||
|
BuildRequires: python2-pip
|
||||||
|
BuildRequires: python2-virtualenv
|
||||||
|
|
||||||
%description
|
%description
|
||||||
C++ Format is an open-source formatting library for C++. It can be used as a
|
C++ Format is an open-source formatting library for C++. It can be used as a
|
||||||
@ -69,7 +75,11 @@ cmakeopts="$cmakeopts -DCMAKE_SKIP_RPATH=OFF"
|
|||||||
%cmake \
|
%cmake \
|
||||||
%endif
|
%endif
|
||||||
$cmakeopts ..
|
$cmakeopts ..
|
||||||
make %{?_smp_mflags} all
|
# Remove --clean-css since that plugin isn't available
|
||||||
|
sed -i "s/'--clean-css',//" ../doc/build.py
|
||||||
|
make %{?_smp_mflags} all doc
|
||||||
|
# Remove temporary build products
|
||||||
|
rm -rf ../build/doc/html/{.buildinfo,.doctrees}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make -C build install DESTDIR=%{buildroot}
|
make -C build install DESTDIR=%{buildroot}
|
||||||
@ -95,7 +105,7 @@ make -C build test
|
|||||||
%{_includedir}/fmt/time.h
|
%{_includedir}/fmt/time.h
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc doc/html/
|
%doc %{_datadir}/doc/fmt/
|
||||||
%license doc/python-license.txt
|
%license doc/python-license.txt
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
@ -103,6 +113,9 @@ make -C build test
|
|||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 27 2016 Dave Johansen <davejohansen@gmail.com> - 3.0.1-2
|
||||||
|
- Build documentation
|
||||||
|
|
||||||
* Fri Nov 25 2016 Dave Johansen <davejohansen@gmail.com> - 3.0.1-1
|
* Fri Nov 25 2016 Dave Johansen <davejohansen@gmail.com> - 3.0.1-1
|
||||||
- Upstream release
|
- Upstream release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user