/[smecontribs]/rpms/fmt/contribs10/fmt.spec
ViewVC logotype

Diff of /rpms/fmt/contribs10/fmt.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by jpp, Thu Nov 11 05:30:17 2021 UTC Revision 1.2 by jpp, Sat Nov 20 06:25:22 2021 UTC
# Line 22  BuildRequires:  gcc-c++ Line 22  BuildRequires:  gcc-c++
22  BuildRequires:  ninja-build  BuildRequires:  ninja-build
23  %if 0%{?rhel} && 0%{?rhel} <= 7  %if 0%{?rhel} && 0%{?rhel} <= 7
24  BuildRequires:  cmake3  BuildRequires:  cmake3
25    BuildRequires:  gcc devtoolset-9-gcc
26    BuildRequires:  gcc-c++ devtoolset-9-gcc-c++
27  %else  %else
28  BuildRequires:  cmake  BuildRequires:  cmake
29  %endif  %endif
# Line 74  This package contains documentation for Line 76  This package contains documentation for
76  %endif  %endif
77    
78  %prep  %prep
79    . /opt/rh/devtoolset-9/enable
80  %autosetup -p1  %autosetup -p1
81    
82  %if %{with doc}  %if %{with doc}
# Line 82  sed -i "s/'--clean-css',//" doc/build.py Line 85  sed -i "s/'--clean-css',//" doc/build.py
85  %endif  %endif
86    
87  %build  %build
88  %if 0%{?rhel} && 0%{?rhel} <= 7  . /opt/rh/devtoolset-9/enable
89  %cmake3                                       \  %cmake3                                       \
 %else  
 %cmake                                        \  
 %endif  
90      -G Ninja                                  \      -G Ninja                                  \
91      -DCMAKE_BUILD_TYPE=RelWithDebInfo         \      -DCMAKE_BUILD_TYPE=RelWithDebInfo         \
92      -DCMAKE_POSITION_INDEPENDENT_CODE=ON      \      -DCMAKE_POSITION_INDEPENDENT_CODE=ON      \
93      -DFMT_CMAKE_DIR=%{_datadir}/cmake/%{name} \      -DFMT_CMAKE_DIR=%{_datadir}/cmake/%{name} \
94      -DFMT_LIB_DIR=%{_libdir}      -DFMT_LIB_DIR=%{_libdir}
95    
96  %cmake_build \  %cmake3_build -j1 \
97  %if %{with doc}  %if %{with doc}
98      --target doc \      --target doc \
99  %endif  %endif
# Line 105  rm -rf %{_vpath_builddir}/doc/html/{.bui Line 105  rm -rf %{_vpath_builddir}/doc/html/{.bui
105  %endif  %endif
106    
107  %install  %install
108  %cmake_install  . /opt/rh/devtoolset-9/enable
109    %cmake3_install
110    
111  %check  #%check
112  %ctest  #%ctest
113    
114  %files  %files
115  %license LICENSE.rst  %license LICENSE.rst


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed