File tclap.spec of Package tclap
#
# spec file for package tclap
#
# Copyright (c) 2018 SUSE LINUX Products 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: tclap
Version: 1.2.2
Release: 0
Summary: Templatized C++ Command Line Parser
License: MIT
Group: Development/Libraries/C and C++
URL: http://tclap.sf.net
Source: https://sourceforge.net/projects/tclap/files/tclap-%{version}.tar.gz
BuildRequires: dos2unix
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: ghostscript-fonts-std
BuildRequires: fdupes
BuildRequires: graphviz-gd
BuildRequires: graphviz
BuildRequires: libstdc++-devel
BuildRequires: pkgconfig
Provides: libtclap = %{version}
Provides: libtclap-devel = %{version}
%description
TCLAP is a small, flexible library that provides a simple interface for
defining and accessing command line arguments. It was intially inspired by the
user friendly CLAP libary. The difference is that this library is templatized,
so the argument class is type independent. Type independence avoids
identical-except-for-type objects, such as IntArg, FloatArg, and StringArg.
While the library is not strictly compliant with the GNU or POSIX standards, it
is close.
%package doc
Summary: API Documentation for %{name}
Group: Development/Libraries/C and C++
%description doc
This package contains the API documentation for TCLAP, the Templatized
C++ Command Line Parser.
%prep
%setup -q
# Delete CVS directory that shouldn't be copied over
rm -rf docs/html/CVS
# Fix encoding
dos2unix docs/style.css
%build
%configure --enable-doxygen
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
install -d "%{buildroot}%{_docdir}/%{name}"
mv "%{buildroot}%{_datadir}/doc/tclap" "%{buildroot}%{_docdir}/%{name}/html"
echo -n > docfiles.lst
for f in AUTHORS ChangeLog COPYING NEWS README; do
install -m0644 "$f" "%{buildroot}%{_docdir}/%{name}/$f"
echo "%doc %{_docdir}/%{name}/${f}" >> docfiles.lst
done
%fdupes -s "%{buildroot}%{_docdir}/%{name}/html"
%files -f docfiles.lst
%defattr(-,root,root)
%doc %dir %{_docdir}/%{name}
%{_includedir}/tclap
%{_libdir}/pkgconfig/tclap.pc
%files doc
%defattr(-,root,root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/html
%changelog