1 Star 0 Fork 9

邢星/cppunit

forked from src-openEuler/cppunit 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
cppunit.spec 2.45 KB
一键复制 编辑 原始数据 按行查看 历史
starlet_dx 提交于 2022-04-19 15:14 . Upgrade to version 1.15.1
%global apiversion 1.15
Name: cppunit
Version: 1.15.1
Release: 1
Summary: C++ port of JUnit testing framework
License: LGPLv2+
Url: https://www.freedesktop.org/wiki/Software/cppunit/
Source: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz
BuildRequires: doxygen gcc-c++ graphviz
%description
CppUnit is the C++ port of the famous JUnit framework for unit testing.\
Test output is in XML for automatic testing and GUI based for supervised tests.\
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
Libraries and header files of %{name} are all in the %{name}-devel package.
%package help
Summary: Help manual for %{name}
Provides: %{name}-doc
Obsoletes: %{name}-doc
%description help
The %{name}-help package conatins man manual etc
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure --enable-doxygen --disable-static --disable-silent-rules
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
rm %{buildroot}%{_libdir}/*.la
# remove double of doc
rm -rf %{buildroot}%{_datadir}/doc/cppunit %{buildroot}%{_datadir}/%{name}/html
# remove unused cppunit-config
rm -f %{buildroot}%{_bindir}/cppunit-config %{buildroot}%{_mandir}/man1/cppunit-config.1* %{buildroot}%{_datadir}/aclocal/cppunit.m4
# 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
find __dist-examples \( -name Makefile.in -o -name .cvsignore -o -name '*.dsw' -o -name '*.dsp' \) -exec rm {} \;
mkdir __dist-examples-dir
mv __dist-examples __dist-examples-dir/examples
%ldconfig_scriptlets
%files
%license COPYING AUTHORS
%{_bindir}/DllPlugInTester
%{_libdir}/libcppunit-%{apiversion}.so.1
%{_libdir}/libcppunit-%{apiversion}.so.1.*
%files devel
%{_includedir}/cppunit
%{_libdir}/libcppunit.so
%{_libdir}/pkgconfig/cppunit.pc
%files help
%license COPYING
%doc NEWS README THANKS TODO BUGS doc/FAQ
%doc __dist-examples-dir/examples/
%doc doc/html
%changelog
* Tue Apr 19 2022 yaoxin <yaoxin30@h-partners.com> - 1.15.1-1
- Upgrade to version 1.15.1
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.14.0-8
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
* Tue Dec 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.14.0-7
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xing_xing1992/cppunit.git
git@gitee.com:xing_xing1992/cppunit.git
xing_xing1992
cppunit
cppunit
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385