]>
Commit | Line | Data |
---|---|---|
2ed4d719 | 1 | Summary: The C++ Unit Test Library |
44cfde93 | 2 | Summary(pl.UTF-8): Biblioteka testowa do C++ |
2ed4d719 | 3 | Name: cppunit |
af9c11c9 JB |
4 | Version: 1.14.0 |
5 | Release: 1 | |
2ed4d719 JB |
6 | License: LGPL |
7 | Group: Libraries | |
af9c11c9 JB |
8 | Source0: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 7ad93022171710a541bfe4bfd8b4a381 | |
eb6588a8 | 10 | URL: https://www.freedesktop.org/wiki/Software/cppunit/ |
4ec5e49a JB |
11 | BuildRequires: autoconf >= 2.65 |
12 | BuildRequires: automake >= 1:1.11 | |
2ed4d719 | 13 | BuildRequires: doxygen |
af9c11c9 | 14 | BuildRequires: libstdc++-devel >= 6:4.7 |
d58f4fd7 | 15 | BuildRequires: libtool >= 2:1.4d |
2ed4d719 JB |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | CppUnit is the C++ port of the famous JUnit framework for unit | |
20 | testing. | |
21 | ||
e7caeaa2 JR |
22 | %description -l pl.UTF-8 |
23 | CppUnit jest portem C++ słynnego środowiska testowego JUnit. | |
2ed4d719 JB |
24 | |
25 | %package devel | |
26 | Summary: cppunit header files | |
44cfde93 | 27 | Summary(pl.UTF-8): Pliki nagłówkowe cppunit |
2ed4d719 | 28 | Group: Development/Libraries |
d58f4fd7 | 29 | Requires: %{name} = %{version}-%{release} |
af9c11c9 | 30 | Requires: libstdc++-devel >= 6:4.7 |
2ed4d719 JB |
31 | |
32 | %description devel | |
33 | cppunit header files. | |
34 | ||
e7caeaa2 JR |
35 | %description devel -l pl.UTF-8 |
36 | Pliki nagłówkowe cppunit. | |
2ed4d719 JB |
37 | |
38 | %package static | |
39 | Summary: cppunit static library | |
44cfde93 | 40 | Summary(pl.UTF-8): Statyczna biblioteka cppunit |
2ed4d719 | 41 | Group: Development/Libraries |
d58f4fd7 | 42 | Requires: %{name}-devel = %{version}-%{release} |
2ed4d719 JB |
43 | |
44 | %description static | |
45 | cppunit static library. | |
46 | ||
e7caeaa2 | 47 | %description static -l pl.UTF-8 |
2ed4d719 JB |
48 | Statyczna biblioteka cppunit. |
49 | ||
4ec5e49a JB |
50 | %package apidocs |
51 | Summary: cppunit API documentation | |
52 | Summary(pl.UTF-8): Dokumentacja API cppunit | |
53 | Group: Documentation | |
761c9fdb ER |
54 | %if "%{_rpmversion}" >= "5" |
55 | BuildArch: noarch | |
56 | %endif | |
4ec5e49a JB |
57 | |
58 | %description apidocs | |
59 | cppunit API documentation. | |
60 | ||
61 | %description apidocs -l pl.UTF-8 | |
62 | Dokumentacja API cppunit. | |
63 | ||
2ed4d719 JB |
64 | %prep |
65 | %setup -q | |
66 | ||
2ed4d719 | 67 | %build |
d58f4fd7 | 68 | %{__libtoolize} |
09e15b0e | 69 | %{__aclocal} -I config |
2ed4d719 | 70 | %{__autoconf} |
d58f4fd7 | 71 | %{__autoheader} |
2ed4d719 | 72 | %{__automake} |
4ec5e49a JB |
73 | %configure \ |
74 | --disable-silent-rules | |
2ed4d719 JB |
75 | %{__make} |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
cc4260b2 PG |
80 | %{__make} install \ |
81 | DESTDIR=$RPM_BUILD_ROOT | |
2ed4d719 | 82 | |
af9c11c9 JB |
83 | # obsoleted by pkg-config |
84 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcppunit.la | |
4ec5e49a | 85 | # non-Linux |
af9c11c9 | 86 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/cppunit/config/config-{bcb5,evc4,mac,msvc6}.h |
4ec5e49a JB |
87 | # packaged as %doc in -apidocs |
88 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/cppunit/html | |
2ed4d719 JB |
89 | |
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post -p /sbin/ldconfig | |
94 | %postun -p /sbin/ldconfig | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
98 | %doc AUTHORS BUGS NEWS README THANKS TODO | |
dfa0b2e4 | 99 | %attr(755,root,root) %{_bindir}/DllPlugInTester |
af9c11c9 JB |
100 | %attr(755,root,root) %{_libdir}/libcppunit-1.14.so.*.*.* |
101 | %attr(755,root,root) %ghost %{_libdir}/libcppunit-1.14.so.0 | |
c94aa9f5 | 102 | |
2ed4d719 JB |
103 | %files devel |
104 | %defattr(644,root,root,755) | |
c94aa9f5 | 105 | %doc doc/FAQ |
bea96af2 | 106 | %attr(755,root,root) %{_libdir}/libcppunit.so |
2ed4d719 | 107 | %{_includedir}/cppunit |
a4a593a0 | 108 | %{_pkgconfigdir}/cppunit.pc |
2ed4d719 JB |
109 | |
110 | %files static | |
111 | %defattr(644,root,root,755) | |
bea96af2 | 112 | %{_libdir}/libcppunit.a |
4ec5e49a JB |
113 | |
114 | %files apidocs | |
115 | %defattr(644,root,root,755) | |
116 | %doc doc/html/* |