commit a017d7e8b19d0826456e1f4baff4dddc5bfde80979931659945118eaf279c7f8 Author: Thomas Schraitle Date: Fri Apr 27 07:59:16 2018 +0000 Accepting request 592066 from home:badshah400:Staging An offline mirror of the C/C++ reference: en.cppreference.com, in plain html, devhelp (useful for looking up keywords from inside vim if vim-plugin-devhelp is installed, for example) and qhelp (for rendering on Qt's qhelpcenter) formats OBS-URL: https://build.opensuse.org/request/show/592066 OBS-URL: https://build.opensuse.org/package/show/Documentation/cppreference-doc?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/cppreference-doc-20180311.tar.xz b/cppreference-doc-20180311.tar.xz new file mode 100644 index 0000000..9faa37e --- /dev/null +++ b/cppreference-doc-20180311.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8fe592ee31efa1e5de4515d6c27a76c99b599ce28e4e88b4cbb0cb2b70ca2b67 +size 8110420 diff --git a/cppreference-doc.changes b/cppreference-doc.changes new file mode 100644 index 0000000..481bf75 --- /dev/null +++ b/cppreference-doc.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Mar 28 08:40:30 UTC 2018 - badshah400@gmail.com + +- Initial version diff --git a/cppreference-doc.spec b/cppreference-doc.spec new file mode 100644 index 0000000..ee4934a --- /dev/null +++ b/cppreference-doc.spec @@ -0,0 +1,88 @@ +# +# spec file for package cppreference-doc +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +Name: cppreference-doc +Version: 20180311 +Release: 0 +Summary: Cppreference documentation for offline reading +License: CC-BY-SA-3.0 +Group: Documentation/HTML +Url: http://en.cppreference.com/w/ +Source: http://upload.cppreference.com/mwiki/images/c/cb/cppreference-doc-20180311.tar.xz +BuildRequires: python3-lxml +BuildRequires: libqt5-qttools +BuildRequires: devhelp +BuildRequires: fdupes +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 +License: CC-BY-SA-3.0 +Group: Documentation/Other +Requires: %{name} = %{version} + +%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 +License: CC-BY-SA-3.0 +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 +%setup -q + +%build +make %{?_smp_mflags} qhelpgenerator=qhelpgenerator-qt5 + +%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 +