]>
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 |
4ec5e49a | 4 | Version: 1.13.2 |
761c9fdb | 5 | Release: 2 |
2ed4d719 JB |
6 | License: LGPL |
7 | Group: Libraries | |
4ec5e49a JB |
8 | Source0: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz |
9 | # Source0-md5: d1c6bdd5a76c66d2c38331e2d287bc01 | |
10 | URL: http://www.freedesktop.org/wiki/Software/cppunit/ | |
11 | BuildRequires: autoconf >= 2.65 | |
12 | BuildRequires: automake >= 1:1.11 | |
2ed4d719 JB |
13 | BuildRequires: doxygen |
14 | BuildRequires: libstdc++-devel | |
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} |
71b20f1f | 30 | Requires: libstdc++-devel |
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 | |
4ec5e49a JB |
83 | # non-Linux |
84 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/cppunit/{ui/mfc,ui/qt,config/config-{bcb5,evc4,mac,msvc6}.h} | |
85 | # packaged as %doc in -apidocs | |
86 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/cppunit/html | |
2ed4d719 JB |
87 | |
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
94 | %files | |
95 | %defattr(644,root,root,755) | |
96 | %doc AUTHORS BUGS NEWS README THANKS TODO | |
dfa0b2e4 | 97 | %attr(755,root,root) %{_bindir}/DllPlugInTester |
4ec5e49a JB |
98 | %attr(755,root,root) %{_libdir}/libcppunit-1.13.so.*.*.* |
99 | %attr(755,root,root) %ghost %{_libdir}/libcppunit-1.13.so.0 | |
c94aa9f5 | 100 | |
2ed4d719 JB |
101 | %files devel |
102 | %defattr(644,root,root,755) | |
c94aa9f5 | 103 | %doc doc/FAQ |
2ed4d719 | 104 | %attr(755,root,root) %{_bindir}/cppunit-config |
bea96af2 JB |
105 | %attr(755,root,root) %{_libdir}/libcppunit.so |
106 | %{_libdir}/libcppunit.la | |
2ed4d719 JB |
107 | %{_includedir}/cppunit |
108 | %{_aclocaldir}/cppunit.m4 | |
a4a593a0 | 109 | %{_pkgconfigdir}/cppunit.pc |
2ed4d719 JB |
110 | %{_mandir}/man1/cppunit-config.1* |
111 | ||
112 | %files static | |
113 | %defattr(644,root,root,755) | |
bea96af2 | 114 | %{_libdir}/libcppunit.a |
4ec5e49a JB |
115 | |
116 | %files apidocs | |
117 | %defattr(644,root,root,755) | |
118 | %doc doc/html/* |