* Drop support for Leap 15.6 and older: builds fail anyway due to at least python 3.8 being required. OBS-URL: https://build.opensuse.org/package/show/Documentation/cppreference-doc?expand=0&rev=24
91 lines
3.3 KiB
RPMSpec
91 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package cppreference-doc
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: cppreference-doc
|
|
Version: 20250209
|
|
Release: 0
|
|
Summary: Cppreference documentation for offline reading
|
|
License: CC-BY-SA-3.0
|
|
Group: Documentation/HTML
|
|
URL: http://en.cppreference.com/w/
|
|
Source0: https://github.com/PeterFeicht/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
|
# PATCH-FIX-UPSTREAM cppreference-doc-premailer-3.9-compat.patch badshah400@gmail.com -- Fix building against premailer >= 3.9
|
|
Patch0: cppreference-doc-premailer-3.9-compat.patch
|
|
BuildRequires: devhelp
|
|
BuildRequires: fdupes
|
|
BuildRequires: python3-cssutils >= 2.0.0
|
|
BuildRequires: python3-lxml
|
|
BuildRequires: python3-premailer
|
|
BuildRequires: qt6-macros
|
|
BuildRequires: qt6-tools-helpgenerators
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Cppreference is a complete online reference for the C and C++ languages and standard libraries, i.e. a more convenient version of the C and C++ standards. This package provides an offline mirror of the reference.
|
|
|
|
%package devhelp
|
|
Summary: Cppreference documentation for offline reading - devhelp version
|
|
Group: Documentation/Other
|
|
Requires: %{name} = %{version}
|
|
Recommends: devhelp
|
|
|
|
%description devhelp
|
|
Cppreference is a complete online reference for the C and C++ languages and standard libraries, i.e. a more convenient version of the C and C++ standards. This package provides an offline mirror of the reference in the devhelp format.
|
|
|
|
This package provides the documentation in the devhelp format.
|
|
|
|
%package qhelp
|
|
Summary: Cppreference documentation for offline reading - qhelp version
|
|
Group: Documentation/Other
|
|
Requires: %{name} = %{version}
|
|
|
|
%description qhelp
|
|
Cppreference is a complete online reference for the C and C++ languages and standard libraries, i.e. a more convenient version of the C and C++ standards. This package provides an offline mirror of the reference in the devhelp format.
|
|
|
|
This package provides the documentation in the qhelp format.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
make %{?_smp_mflags} qhelpgenerator=%{_qt6_libexecdir}/qhelpgenerator
|
|
|
|
%install
|
|
%make_install
|
|
|
|
rm %{buildroot}%{_datadir}/devhelp/books/cppreference-doxygen*.xml
|
|
|
|
%fdupes %{buildroot}%{_datadir}/cppreference/
|
|
|
|
%files
|
|
%doc README.md
|
|
%dir %{_datadir}/cppreference
|
|
%dir %{_datadir}/cppreference/doc
|
|
%{_datadir}/cppreference/doc/html/
|
|
|
|
%files devhelp
|
|
%{_datadir}/devhelp/books/cppreference-doc-en-c/
|
|
%{_datadir}/devhelp/books/cppreference-doc-en-cpp/
|
|
|
|
%files qhelp
|
|
%dir %{_datadir}/cppreference/doc/qch
|
|
%{_datadir}/cppreference/doc/qch/
|
|
|
|
%changelog
|