e4616c7083
- Rewrite incorrect %description of main RPM. There are no static libs in the main package. OBS-URL: https://build.opensuse.org/request/show/503407 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/bcunit?expand=0&rev=6
123 lines
3.5 KiB
RPMSpec
123 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package bcunit
|
|
#
|
|
# Copyright (c) 2017 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 soname libbcunit
|
|
%define sover 1
|
|
Name: bcunit
|
|
Version: 3.0+git20170404
|
|
Release: 0
|
|
Summary: Provide C programmers basic testing functionality
|
|
License: LGPL-2.0+
|
|
Group: Development/Libraries/C and C++
|
|
Url: https://github.com/BelledonneCommunications/bcunit
|
|
Source: %{name}-%{version}.tar.xz
|
|
Source99: baselibs.conf
|
|
# PATCH-FIX-OPENSUSE bcunit-link-ncurses.patch jengelh@medozas.de
|
|
Patch0: bcunit-link-ncurses.patch
|
|
# PATCH-FIX-OPENSUSE bcunit-ncurses6.patch idonmez@suse.com -- Compile with ncurses6.
|
|
Patch1: bcunit-ncurses6.patch
|
|
# PATCH-FIX-OPENSUSE bcunit-sover.patch sor.alexei@meowr.ru -- Correctly set the sover.
|
|
Patch2: bcunit-sover.patch
|
|
BuildRequires: cmake
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: pkgconfig
|
|
|
|
%description
|
|
BCUnit is a unit testing framework for C, derived from CUnit.
|
|
(B)CUnit provides various interfaces to the framework, some of which
|
|
are platform dependent (e.g. curses on *nix). The framework complies
|
|
with the conventional structure of test cases bundled into suites
|
|
which are registered with the framework for running.
|
|
|
|
%package devel
|
|
Summary: BCUnit development files
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{soname}%{sover} = %{version}
|
|
Requires: ncurses-devel
|
|
Recommends: %{name}-doc = %{version}
|
|
|
|
%description devel
|
|
BCUnit is a unit testing framework for C.
|
|
This package installs the BCUnit development files.
|
|
|
|
%package doc
|
|
Summary: BCUnit documentation
|
|
Group: Documentation/Man
|
|
Requires: %{soname}%{sover} = %{version}
|
|
|
|
%description doc
|
|
BCUnit is a unit testing framework for C.
|
|
This package installs the BCUnit documentation files.
|
|
|
|
%package -n %{soname}%{sover}
|
|
Summary: BCUnit shared library
|
|
Group: System/Libraries
|
|
|
|
%description -n %{soname}%{sover}
|
|
BCUnit is a unit testing framework for C.
|
|
This package installs the BCUnit shared library.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
|
|
%build
|
|
%cmake \
|
|
-DENABLE_STATIC=OFF \
|
|
-DENABLE_AUTOMATED=ON \
|
|
-DENABLE_BASIC=ON \
|
|
-DENABLE_CONSOLE=ON \
|
|
-DENABLE_CURSES=ON \
|
|
-DENABLE_EXAMPLES=ON
|
|
make %{?_smp_mflags} V=1
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
# Architecture dependent files.
|
|
mkdir -p %{buildroot}%{_libdir}/BCUnit/
|
|
mv %{buildroot}%{_datadir}/BCUnit/Examples/ \
|
|
%{buildroot}%{_libdir}/BCUnit/
|
|
|
|
%post -n %{soname}%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n %{soname}%{sover} -p /sbin/ldconfig
|
|
|
|
%files -n %{soname}%{sover}
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
|
%{_libdir}/%{soname}.so.%{sover}*
|
|
|
|
%files doc
|
|
%defattr(-,root,root)
|
|
%dir %{_datadir}/BCUnit/
|
|
%{_datadir}/BCUnit/*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/BCUnit/
|
|
%dir %{_datadir}/BCunit/
|
|
%{_libdir}/BCUnit/
|
|
%{_libdir}/%{soname}.so
|
|
%{_libdir}/pkgconfig/bcunit.pc
|
|
%{_datadir}/BCunit/cmake/
|
|
|
|
%changelog
|