2011-10-21 10:56:46 +02:00
|
|
|
#
|
|
|
|
# spec file for package tclap
|
|
|
|
#
|
2020-05-28 13:20:48 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2011-10-21 10:56:46 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-05-28 13:20:48 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-10-21 10:56:46 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: tclap
|
|
|
|
Version: 1.2.1
|
|
|
|
Release: 0
|
|
|
|
Summary: Templatized C++ Command Line Parser
|
2015-12-11 13:44:14 +01:00
|
|
|
License: MIT
|
2011-10-21 10:56:46 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-05-28 13:20:48 +02:00
|
|
|
URL: http://tclap.sf.net
|
2015-12-11 13:44:14 +01:00
|
|
|
Source0: http://prdownloads.sourceforge.net/tclap/tclap-%{version}.tar.gz
|
|
|
|
BuildRequires: fdupes
|
2011-10-21 10:56:46 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libstdc++-devel
|
2020-05-28 13:20:48 +02:00
|
|
|
BuildRequires: pkgconfig
|
2011-10-21 10:56:46 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2020-05-28 13:20:48 +02:00
|
|
|
%configure
|
|
|
|
%make_build
|
2011-10-21 10:56:46 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
install -d "%{buildroot}%{_docdir}/%{name}"
|
|
|
|
mv "%{buildroot}%{_datadir}/doc/tclap" "%{buildroot}%{_docdir}/%{name}/html"
|
2020-05-28 13:20:48 +02:00
|
|
|
rm -rf "%{buildroot}%{_docdir}/%{name}"
|
2011-10-21 10:56:46 +02:00
|
|
|
|
2015-12-11 13:44:14 +01:00
|
|
|
%check
|
2020-05-28 13:20:48 +02:00
|
|
|
%make_build check
|
2011-10-21 10:56:46 +02:00
|
|
|
|
2020-05-28 13:20:48 +02:00
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ChangeLog NEWS README
|
2011-10-21 10:56:46 +02:00
|
|
|
%{_includedir}/tclap
|
|
|
|
%{_libdir}/pkgconfig/tclap.pc
|
|
|
|
|
|
|
|
%changelog
|