A new user interface for you! Read more...

File pstreams.spec of Package pstreams

#
# spec file for package pstreams
#
# Copyright (c) 2018 SUSE LINUX 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/
#


Name:           pstreams
Version:        1.0.1
Release:        0
Summary:        POSIX Process Control in C++
License:        BSL-1.0
Group:          Development/Libraries/C and C++
URL:            http://pstreams.sourceforge.net/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:  doxygen
# Required to run test.
BuildRequires:  gcc-c++

%description
PStreams allows you to run another program from your C++ application and
to transfer data between the two programs, similar to shell pipelines.
The PStreams class works like a wrapper for the the POSIX.2 functions
popen(3) and pclose(3) (although it doesn't actually use them), using
a C++ iostreams interface, instead of C's stdio library. Thus, PStreams
makes it possible to run an external program and handle its stdin,
stdout, and stderr just like you would handle any other C++ iostream.

%package devel
Summary:        POSIX Process Control in C++
Group:          Development/Libraries/C and C++
BuildArch:      noarch

%description devel
PStreams allows you to run another program from your C++ application and
to transfer data between the two programs, similar to shell pipelines.
The PStreams class works like a wrapper for the the POSIX.2 functions
popen(3) and pclose(3) (although it doesn't actually use them), using
a C++ iostreams interface, instead of C's stdio library. Thus, PStreams
makes it possible to run an external program and handle its stdin,
stdout, and stderr just like you would handle any other C++ iostream.

%prep
%setup -q

%build
make %{?_smp_mflags}
make %{?_smp_mflags} docs

%install
mv -f doc/man/man3/{deprecated.3,pstreams_deprecated.3}
%make_install prefix=%{_prefix}
mkdir -p %{buildroot}%{_mandir}/man3 examples
install -m 0644 *.cc examples
install -m 0644 doc/man/man3/* %{buildroot}%{_mandir}/man3/

%check
make %{?_smp_mflags} test

%files devel
%license LICENSE_1_0.txt
%doc AUTHORS ChangeLog README mainpage.html
%doc doc/html examples
%{_includedir}/pstreams/
%{_mandir}/man?/*

%changelog