cppunit/cppunit.spec

88 lines
2.2 KiB
RPMSpec
Raw Normal View History

2019-12-21 10:05:22 +00:00
%global apiversion 1.15
Name: cppunit
2019-12-25 09:12:54 +00:00
Version: 1.15.1
2022-11-21 20:03:21 +00:00
Release: %autorelease
Summary: C++ unit testing framework
# no license in files
2022-11-21 20:03:19 +00:00
License: LGPL-2.1-or-later
2016-02-13 07:43:51 +00:00
Url: https://www.freedesktop.org/wiki/Software/cppunit/
2017-05-02 19:55:25 +00:00
Source: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz
2016-02-13 07:56:36 +00:00
BuildRequires: doxygen
2018-02-19 11:58:16 +00:00
BuildRequires: gcc-c++
2016-02-13 07:56:36 +00:00
BuildRequires: graphviz
BuildRequires: make
%description
CppUnit is the C++ port of the famous JUnit framework for unit testing.
2008-10-04 23:37:08 +00:00
Test output is in XML for automatic testing and GUI based for supervised
tests.
%package devel
Summary: Libraries and headers for cppunit development
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains the libraries and headers necessary for developing
programs that use cppunit.
%package doc
Summary: HTML formatted API documention for cppunit
%description doc
The cppunit-doc package contains HTML formatted API documention generated by
the popular doxygen documentation generation tool.
%prep
2016-02-13 12:05:50 +00:00
%autosetup -p1
%build
2022-01-27 18:18:45 +00:00
%configure --enable-doxygen --disable-static --disable-silent-rules --disable-werror
2016-02-13 07:59:06 +00:00
sed -i \
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
libtool
%make_build
%install
%make_install
2016-02-13 12:15:42 +00:00
rm %{buildroot}%{_libdir}/*.la
# remove double of doc
2016-02-13 12:15:42 +00:00
rm -rf %{buildroot}%{_datadir}/doc/cppunit %{buildroot}%{_datadir}/%{name}/html
# clean up examples
rm -rf __dist-examples __dist-examples-dir
cp -a examples __dist-examples
make -C __dist-examples distclean
# Makefile.am files are left as documentation
2019-12-25 09:12:54 +00:00
find __dist-examples \( -name Makefile.in -o -name .gitignore -o -name '*.opt' -o -name '*.sln' -o -name '*.vcproj' \) -exec rm {} \;
mkdir __dist-examples-dir
mv __dist-examples __dist-examples-dir/examples
%ldconfig_scriptlets
%files
2016-02-13 12:08:24 +00:00
%doc AUTHORS NEWS README THANKS TODO BUGS doc/FAQ
2016-02-12 20:36:22 +00:00
%license COPYING
%{_bindir}/DllPlugInTester
2019-12-25 09:12:54 +00:00
%{_libdir}/libcppunit-%{apiversion}.so.1
%{_libdir}/libcppunit-%{apiversion}.so.1.*
%files devel
%{_includedir}/cppunit
%{_libdir}/libcppunit.so
2006-05-21 14:40:44 +00:00
%{_libdir}/pkgconfig/cppunit.pc
%files doc
2016-02-12 20:36:54 +00:00
%license COPYING
%doc __dist-examples-dir/examples/
2008-10-04 23:37:08 +00:00
%doc doc/html
%changelog
2022-11-21 20:03:21 +00:00
%autochangelog