85 lines
2.3 KiB
RPMSpec
85 lines
2.3 KiB
RPMSpec
|
#
|
||
|
# spec file for package cpptest
|
||
|
#
|
||
|
# 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/
|
||
|
#
|
||
|
|
||
|
|
||
|
%define so_ver 0
|
||
|
Name: cpptest
|
||
|
Version: 1.1.2
|
||
|
Release: 0
|
||
|
Summary: C++ unit testing framework
|
||
|
License: LGPL-2.1-or-later
|
||
|
Group: Development/Libraries/C and C++
|
||
|
URL: https://github.com/cpptest/cpptest
|
||
|
Source: https://github.com/cpptest/cpptest/archive/%{version}.tar.gz#/cpptest-%{version}.tar.gz
|
||
|
BuildRequires: autoconf
|
||
|
BuildRequires: automake
|
||
|
BuildRequires: gcc-c++
|
||
|
BuildRequires: libtool
|
||
|
|
||
|
%description
|
||
|
C++ automated unit testing framework
|
||
|
|
||
|
%package -n libcpptest%{so_ver}
|
||
|
Summary: Runtime library for C++ unit testing framework
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description -n libcpptest%{so_ver}
|
||
|
This package contains runtime library for handling unit tests.
|
||
|
|
||
|
%package devel
|
||
|
Summary: Development headers for C++ unit testing framework
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Requires: libcpptest%{so_ver} = %{version}
|
||
|
|
||
|
%description devel
|
||
|
This package contains development library and headers for C++ unit
|
||
|
testing framework.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
cd cpptest
|
||
|
bash autogen.sh
|
||
|
%configure \
|
||
|
--enable-warnings \
|
||
|
--disable-static
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
cd cpptest
|
||
|
%make_install
|
||
|
rm %{buildroot}%{_libdir}/libcpptest.la
|
||
|
|
||
|
%post -n libcpptest%{so_ver} -p /sbin/ldconfig
|
||
|
%postun -n libcpptest%{so_ver} -p /sbin/ldconfig
|
||
|
|
||
|
%files -n libcpptest%{so_ver}
|
||
|
%{_libdir}/libcpptest.so.%{so_ver}
|
||
|
%{_libdir}/libcpptest.so.%{so_ver}.*
|
||
|
%license cpptest/COPYING
|
||
|
|
||
|
%files devel
|
||
|
%{_includedir}/cpptest.h
|
||
|
%{_includedir}/cpptest-*.h
|
||
|
%{_libdir}/libcpptest.so
|
||
|
%{_libdir}/pkgconfig/libcpptest.pc
|
||
|
%license cpptest/COPYING
|
||
|
%doc cpptest/ChangeLog cpptest/README
|
||
|
|
||
|
%changelog
|