From d8d00f6f0b356031febbe36cc7830cf1d9eac105da8b631544c50d601202e1f1 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 28 May 2020 11:20:48 +0000 Subject: [PATCH] Accepting request 809012 from home:marxin:branches:graphics - Split -doc subpackage to a different spec file. - New split sub-package. OBS-URL: https://build.opensuse.org/request/show/809012 OBS-URL: https://build.opensuse.org/package/show/graphics/tclap?expand=0&rev=5 --- _multibuild | 3 +++ tclap-doc.changes | 4 +++ tclap-doc.spec | 65 +++++++++++++++++++++++++++++++++++++++++++++++ tclap.changes | 5 ++++ tclap.spec | 48 ++++++++-------------------------- 5 files changed, 88 insertions(+), 37 deletions(-) create mode 100644 _multibuild create mode 100644 tclap-doc.changes create mode 100644 tclap-doc.spec diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fdf41d0 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + tclap-doc + diff --git a/tclap-doc.changes b/tclap-doc.changes new file mode 100644 index 0000000..6b6f3bd --- /dev/null +++ b/tclap-doc.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue May 26 11:48:54 UTC 2020 - Martin Liška + +- New split sub-package. diff --git a/tclap-doc.spec b/tclap-doc.spec new file mode 100644 index 0000000..f844be9 --- /dev/null +++ b/tclap-doc.spec @@ -0,0 +1,65 @@ +# +# spec file for package tclap-doc +# +# Copyright (c) 2020 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.1 +Release: 0 +Summary: API Documentation for %{name} +License: MIT +Group: Development/Libraries/C and C++ +URL: http://tclap.sf.net +Source0: http://prdownloads.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 diff --git a/tclap.changes b/tclap.changes index 3885ea3..6500da0 100644 --- a/tclap.changes +++ b/tclap.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 26 11:48:40 UTC 2020 - Martin Liška + +- Split -doc subpackage to a different spec file. + ------------------------------------------------------------------- Fri Dec 11 11:14:58 UTC 2015 - mpluskal@suse.com diff --git a/tclap.spec b/tclap.spec index f7d85f6..9e46d30 100644 --- a/tclap.spec +++ b/tclap.spec @@ -1,7 +1,7 @@ # # spec file for package tclap # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -22,17 +22,14 @@ Release: 0 Summary: Templatized C++ Command Line Parser License: MIT Group: Development/Libraries/C and C++ -Url: http://tclap.sf.net +URL: http://tclap.sf.net Source0: http://prdownloads.sourceforge.net/tclap/tclap-%{version}.tar.gz -BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gcc-c++ -BuildRequires: graphviz BuildRequires: libstdc++-devel -BuildRequires: pkg-config +BuildRequires: pkgconfig Provides: libtclap = %{version} Provides: libtclap-devel = %{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description TCLAP is a small, flexible library that provides a simple interface for @@ -43,50 +40,27 @@ 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 %build -%configure \ - --enable-doxygen -make %{?_smp_mflags} +%configure +%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" - -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" +rm -rf "%{buildroot}%{_docdir}/%{name}" %check -make %{?_smp_mflags} check +%make_build check -%files -f docfiles.lst -%defattr(-,root,root) -%doc %dir %{_docdir}/%{name} +%files +%license COPYING +%doc AUTHORS ChangeLog NEWS README %{_includedir}/tclap %{_libdir}/pkgconfig/tclap.pc -%files doc -%defattr(-,root,root) -%doc %dir %{_docdir}/%{name} -%doc %{_docdir}/%{name}/html - %changelog