forked from pool/tclap
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
This commit is contained in:
parent
9e2350137d
commit
d8d00f6f0b
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>tclap-doc</package>
|
||||
</multibuild>
|
4
tclap-doc.changes
Normal file
4
tclap-doc.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 11:48:54 UTC 2020 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- New split sub-package.
|
65
tclap-doc.spec
Normal file
65
tclap-doc.spec
Normal file
@ -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
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 11:48:40 UTC 2020 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Split -doc subpackage to a different spec file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 11 11:14:58 UTC 2015 - mpluskal@suse.com
|
||||
|
||||
|
48
tclap.spec
48
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
|
||||
|
Loading…
Reference in New Issue
Block a user