SHA256
3
0
forked from pool/tclap
tclap/tclap-doc.spec
Michael Vetter 271f231974 Accepting request 1084652 from home:dimstar:Factory
- Add _multibuild to define 2nd spec file as additional flavor.
  Eliminates the need for source package links in OBS.

OBS-URL: https://build.opensuse.org/request/show/1084652
OBS-URL: https://build.opensuse.org/package/show/graphics/tclap?expand=0&rev=13
2023-05-04 12:16:19 +00:00

66 lines
1.8 KiB
RPMSpec

#
# spec file for package tclap-doc
#
# Copyright (c) 2023 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: tclap-doc
Version: 1.2.5
Release: 0
Summary: API Documentation for %{name}
License: MIT
Group: Development/Libraries/C and C++
URL: http://tclap.sourceforge.net/
Source0: https://downloads.sourceforge.net/tclap/tclap-%{version}.tar.gz
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: graphviz
BuildRequires: libstdc++-devel
BuildRequires: pkgconfig
BuildArch: noarch
%description
This package contains the API documentation for TCLAP, the Templatized
C++ Command Line Parser.
%prep
%setup -q -n tclap-%{version}
%build
%configure \
--enable-doxygen
%make_build
%install
%make_install
install -d "%{buildroot}%{_docdir}/%{name}"
mv "%{buildroot}%{_datadir}/doc/tclap" "%{buildroot}%{_docdir}/%{name}/html"
rm -rf "%{buildroot}%{_docdir}/%{name}/html/html/CVS"
%fdupes -s "%{buildroot}%{_docdir}/%{name}/html"
rm -rf %{buildroot}/%{_includedir}/tclap
rm -f %{buildroot}/%{_libdir}/pkgconfig/tclap.pc
%files
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/html
%changelog