File tap.spec of Package tap

#
# spec file for package tap
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) by Lars Vogdt
#
# 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:           tap
Version:        1.01
Release:        0
Summary:        Write tests that implement the Test Anything Protocol
License:        GPL-2.0+
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group:          Development/Libraries
Url:            http://jc.ngo.org.uk/trac-bin/trac.cgi/wiki/LibTap
Source0:        %{name}-%{version}.tar.bz2
Requires:       libtap0 = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The tap library provides functions for writing test scripts that produce
output consistent with the Test Anything Protocol.  A test harness that
parses this protocol can run these tests and produce useful reports indi-
cating their success or failure.

%package devel
Summary:        Development files for tap
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group:          Development/Libraries
Requires:       %{name} = %{version}

%description devel
This package contains header files to develop applications using tap.

%package -n libtap0
Summary:        Shared library libtap
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group:          Development/Libraries

%description -n libtap0
This package contains the shared library named libtap.

%prep
%setup -q

%build
%configure --disable-static
make all %{?_smp_mflags}

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
rm  %{buildroot}/%{_libdir}/libtap.la

%post -n libtap0 -p /sbin/ldconfig
%postun -n libtap0 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc README
%{_mandir}/man3/tap.3%{ext_man}

%files -n libtap0
%defattr(-,root,root)
%{_libdir}/libtap.so.0
%{_libdir}/libtap.so.0.0.0

%files devel
%defattr(-,root,root)
%{_includedir}/tap.h
%{_libdir}/libtap.so

%changelog
openSUSE Build Service is sponsored by