-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcppunit.spec
More file actions
87 lines (70 loc) · 2.2 KB
/
cppunit.spec
File metadata and controls
87 lines (70 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
%define major 1
%define api 1.15
%define libname %mklibname cppunit %{api}_%{major}
%define develname %mklibname cppunit -d
Summary: C++ port of JUnit Testing Framework
Name: cppunit
Version: 1.15.1
Release: 2
License: LGPLv2+
Group: System/Libraries
URL: https://freedesktop.org/wiki/Software/cppunit/
Source0: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz
Patch0: cppunit-1.11.4-missing-include.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool-base
BuildRequires: slibtool
BuildRequires: make
%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 -n %{libname}
Summary: C++ port of JUnit Testing Framework
Group: System/Libraries
%description -n %{libname}
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 -n %{develname}
Summary: Development files for %{name}
Group: Development/C++
Requires: %{libname} = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}
Provides: lib%{name}-devel = %{version}-%{release}
Provides: lib%{name}%{api}-devel = %{version}-%{release}
Obsoletes: %{mklibname cppunit 1.12_0 -d}
%description -n %{develname}
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.
%prep
%setup -q
%autopatch -p1
%build
%configure \
--enable-shared \
--disable-static \
--disable-doxygen \
--disable-dot \
--disable-html-docs \
--disable-latex-docs
# <oden> somehow LIBADD_DL is ignored, is that an intentional change?
perl -pi -e "s|^LIBS =.*|LIBS = -lm -ldl|g" src/cppunit/Makefile
%make_build
%install
%make_install
#(tpg) do not duplicate docs
rm -rf %{buildroot}%{_datadir}/doc/cppunit
# clean up
rm -rf %{buildroot}%{_datadir}/cppunit
rm -f %{buildroot}%{_libdir}/*.*a
%files -n %{libname}
%{_libdir}/libcppunit-%{api}.so.%{major}*
%files -n %{develname}
%doc AUTHORS NEWS README THANKS ChangeLog
%{_bindir}/DllPlugInTester
%{_libdir}/*.so
%{_includedir}/cppunit
%{_libdir}/pkgconfig/cppunit.pc