commit 72681c8b15a3a7d37340592fbfbf4a08f76512ea2c4b315366a93e2306a5cc05 Author: OBS User mrdocs Date: Fri Oct 21 08:56:46 2011 +0000 Accepting request 88935 from home:tony2001:branches:network:utilities tclap package, required to build new version of hugin. OBS-URL: https://build.opensuse.org/request/show/88935 OBS-URL: https://build.opensuse.org/package/show/graphics/tclap?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.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 +*.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..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/tclap-1.2.1.tar.bz2 b/tclap-1.2.1.tar.bz2 new file mode 100644 index 0000000..02e0f77 --- /dev/null +++ b/tclap-1.2.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9ccf082c1555160cab129f799162df060b92267ed2e4c412e495361e392c78a +size 298808 diff --git a/tclap-remove_Wextra.patch b/tclap-remove_Wextra.patch new file mode 100644 index 0000000..61cfa0c --- /dev/null +++ b/tclap-remove_Wextra.patch @@ -0,0 +1,20 @@ +--- examples/Makefile.in.orig 2010-01-09 12:27:47.000000000 +0100 ++++ examples/Makefile.in 2010-01-09 12:27:52.000000000 +0100 +@@ -238,7 +238,7 @@ + test18_SOURCES = test18.cpp + test19_SOURCES = test19.cpp + AM_CPPFLAGS = -I$(top_srcdir)/include +-@HAVE_GNU_COMPILERS_TRUE@AM_CXXFLAGS = -Wall -Wextra ++@HAVE_GNU_COMPILERS_TRUE@AM_CXXFLAGS = -Wall + all: all-am + + .SUFFIXES: +--- examples/Makefile.am.orig 2010-01-09 12:27:36.000000000 +0100 ++++ examples/Makefile.am 2010-01-09 12:27:41.000000000 +0100 +@@ -26,5 +26,5 @@ + AM_CPPFLAGS = -I$(top_srcdir)/include + + if HAVE_GNU_COMPILERS +- AM_CXXFLAGS = -Wall -Wextra ++ AM_CXXFLAGS = -Wall + endif diff --git a/tclap.changes b/tclap.changes new file mode 100644 index 0000000..ffdca13 --- /dev/null +++ b/tclap.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Fri Oct 21 08:24:01 UTC 2011 - tony@daylessday.org + +- Updated to version 1.2.1. Several minor bugs and memory leaks were fixed. + +------------------------------------------------------------------- +Sat Sep 24 18:47:27 UTC 2011 - andreas.stieger@gmx.de + +- remove dependency on licenses, not in factory anymore + +------------------------------------------------------------------- +Sat Jan 9 10:50:38 UTC 2010 - pascal.bleser@opensuse.org + +- initial package (1.2.0) + diff --git a/tclap.spec b/tclap.spec new file mode 100644 index 0000000..f62cbcd --- /dev/null +++ b/tclap.spec @@ -0,0 +1,128 @@ +# +# spec file for package tclap +# +# Copyright (c) 2011 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/ +# + +%if 0%{?suse_version} >= 1000 +%define with_doc 1 +%else +%define with_doc 0 +%endif + +Name: tclap +Version: 1.2.1 +Release: 0 +License: MIT +Summary: Templatized C++ Command Line Parser +Url: http://tclap.sf.net +Group: Development/Libraries/C and C++ +# http://prdownloads.sourceforge.net/tclap/tclap-%%{version}.tar.gz +Source: tclap-%{version}.tar.bz2 +# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines +Patch1: tclap-remove_Wextra.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if %with_doc +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: doxygen +BuildRequires: gcc-c++ +BuildRequires: glibc-devel +BuildRequires: graphviz +BuildRequires: libstdc++-devel +BuildRequires: libtool +BuildRequires: make +BuildRequires: pkgconfig +Provides: libtclap = %{version} +Provides: libtclap-devel = %{version} +%endif #with_doc +%if 0%{?suse_version} >= 1030 +BuildRequires: fdupes +%endif + +%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. + +%if %with_doc +%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. +%endif #with_doc + +%prep +%setup -q +%if 0%{?suse_version} < 1000 +%patch1 +%endif + +%build +%configure \ +%if %with_doc + --enable-doxygen +%else + --disable-doxygen +%endif #with_doc + +make %{?_smp_mflags} + +%install +%make_install + +install -d "%{buildroot}%{_docdir}/%{name}" + +%if %with_doc +mv "%{buildroot}%{_datadir}/doc/tclap" "%{buildroot}%{_docdir}/%{name}/html" +rm -rf "%{buildroot}%{_docdir}/%{name}/html/html/CVS" +%endif #with_doc + +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 + +%if %with_doc +%if 0%{?suse_version} >= 1030 +%fdupes -s "%{buildroot}%{_docdir}/%{name}/html" +%endif +%endif #with_doc + +%clean +rm -rf %{buildroot} + +%files -f docfiles.lst +%defattr(-,root,root) +%doc %dir %{_docdir}/%{name} +%{_includedir}/tclap +%{_libdir}/pkgconfig/tclap.pc + +%if %with_doc +%files doc +%defattr(-,root,root) +%doc %dir %{_docdir}/%{name} +%doc %{_docdir}/%{name}/html +%endif #with_doc + +%changelog