0c8aace
Name:           tclap
0c8aace
Summary:        Template-Only Command Line Argument Parser
e496046
Version:        1.2.2
e496046
Release:        1%{?dist}
0c8aace
License:        MIT
0c8aace
URL:            http://%{name}.sourceforge.net
0c8aace
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
ec86b5d
Group:          Development/Libraries
0c8aace
BuildArch:      noarch
0c8aace
ec86b5d
Obsoletes:      tclap-devel < 1.2.0-9
ec86b5d
Provides:       tclap-devel = %{version}-%{release}
0c8aace
0c8aace
%description
0c8aace
%{name} is a small, flexible library that provides a simple interface for 
0c8aace
defining and accessing command line arguments. It was initially inspired by
0c8aace
the user friendly CLAP library. The difference is that this library is
0c8aace
template-only, so the argument class is type independent. Type independence 
0c8aace
avoids identical-except-for-type objects, such as IntArg, FloatArg, and
0c8aace
StringArg. While the library is not strictly compliant with the GNU or
0c8aace
POSIX standards, it is close.
0c8aace
0c8aace
%{name} is written in ANSI C++ and is meant to be compatible with any
0c8aace
standards-compliant C++ compiler. The library is implemented entirely
0c8aace
in header files making it easy to use and distribute with other software.
0c8aace
0c8aace
%{name} is now a mature, stable, and feature rich package. It probably will not
0c8aace
see much further development aside from bug fixes and compatibility updates.
0c8aace
0c8aace
0c8aace
%package doc
0c8aace
Summary:        API Documentation for %{name}
0c8aace
Group:          Documentation
0c8aace
BuildRequires:  doxygen, graphviz
0c8aace
0c8aace
%description doc
0c8aace
API documentation for the Template-Only Command Line Argument Parser library
0c8aace
0c8aace
0c8aace
%prep
0c8aace
%setup -q
0c8aace
sed -i 's/\r//' docs/style.css
b76a78a
rm -rf docs/html/CVS
0c8aace
0c8aace
%build
0c8aace
%configure
0c8aace
make %{?_smp_mflags}
0c8aace
0c8aace
%install
0c8aace
make install DESTDIR=%{buildroot}
0c8aace
# Move the pkgconfig helper file to the right location for Fedora
0c8aace
# when the package is noarch
0c8aace
mv -f %{buildroot}%{_libdir}/pkgconfig/ %{buildroot}%{_datadir}/
0c8aace
ec86b5d
# move installed docs to include them in -devel package via %%doc magic
ec86b5d
rm -rf __tmp_doc ; mkdir __tmp_doc
ec86b5d
mv %{buildroot}%{_docdir}/%{name}/* __tmp_doc
0c8aace
ec86b5d
%check
e496046
make %{?_smp_mflags} -j1 check
0c8aace
ec86b5d
%files
0c8aace
%{_includedir}/%{name}/
0c8aace
%{_datadir}/pkgconfig/%{name}.pc
0c8aace
%doc AUTHORS COPYING README
0c8aace
0c8aace
%files doc
0c8aace
%doc AUTHORS COPYING README
ec86b5d
%doc __tmp_doc/*
0c8aace
0c8aace
%changelog
e496046
* Fri Dec 29 2017 Bruno Postle <bruno@postle.net> - 1.2.2-1
e496046
- Upstream release
e496046
54329b2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-6
54329b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
54329b2
0247053
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-5
0247053
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0247053
8375e88
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-4
8375e88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8375e88
c8468da
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-3
c8468da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c8468da
5a3a65b
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
5a3a65b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5a3a65b
b76a78a
* Sat Dec 14 2013 Bruno Postle 1.2.1-1
b76a78a
- Upstream release
b76a78a
ec86b5d
* Fri Dec 13 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 1.2.0-9
ec86b5d
- Fix duplicate documentation (#1001296)
ec86b5d
- Fix the unusual packaging (eliminate dummy base package!)
ec86b5d
- Remove %%_isa base package dep, since this is all noarch
ec86b5d
- Remove explicit pkgconfig dep
ec86b5d
- Remove %%defattr
ec86b5d
5518bca
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-8
5518bca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5518bca
72cf584
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-7
72cf584
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
72cf584
d63203f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-6
d63203f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d63203f
5c23a0f
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-5
5c23a0f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5c23a0f
0c8aace
* Wed Oct 05 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 1.2.0-4
0c8aace
- The package and sub-packages are now all noarch.
0c8aace
- A few cosmetic improvements have also been made.
0c8aace
0c8aace
* Thu Jul 28 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 1.2.0-3
0c8aace
- Re-added a main package, almost empty
0c8aace
0c8aace
* Mon Jul 04 2011 Bruno Postle 1.2.0-2
0c8aace
- create -devel package without a base package
0c8aace
0c8aace
* Tue Mar 08 2011 Bruno Postle 1.2.0-1
0c8aace
- initial fedora package
0c8aace