]>
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 |
20d8d078 | 4 | Version: 1.15.1 |
af9c11c9 | 5 | Release: 1 |
2ed4d719 JB |
6 | License: LGPL |
7 | Group: Libraries | |
af9c11c9 | 8 | Source0: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz |
20d8d078 | 9 | # Source0-md5: 9dc669e6145cadd9674873e24943e6dd |
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 | 54 | BuildArch: noarch |
4ec5e49a JB |
55 | |
56 | %description apidocs | |
57 | cppunit API documentation. | |
58 | ||
59 | %description apidocs -l pl.UTF-8 | |
60 | Dokumentacja API cppunit. | |
61 | ||
2ed4d719 JB |
62 | %prep |
63 | %setup -q | |
64 | ||
2ed4d719 | 65 | %build |
d58f4fd7 | 66 | %{__libtoolize} |
09e15b0e | 67 | %{__aclocal} -I config |
2ed4d719 | 68 | %{__autoconf} |
d58f4fd7 | 69 | %{__autoheader} |
2ed4d719 | 70 | %{__automake} |
4ec5e49a JB |
71 | %configure \ |
72 | --disable-silent-rules | |
2ed4d719 JB |
73 | %{__make} |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
cc4260b2 PG |
78 | %{__make} install \ |
79 | DESTDIR=$RPM_BUILD_ROOT | |
2ed4d719 | 80 | |
af9c11c9 JB |
81 | # obsoleted by pkg-config |
82 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcppunit.la | |
4ec5e49a | 83 | # non-Linux |
af9c11c9 | 84 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/cppunit/config/config-{bcb5,evc4,mac,msvc6}.h |
4ec5e49a JB |
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 |
20d8d078 JB |
98 | %attr(755,root,root) %{_libdir}/libcppunit-1.15.so.*.*.* |
99 | %attr(755,root,root) %ghost %{_libdir}/libcppunit-1.15.so.1 | |
c94aa9f5 | 100 | |
2ed4d719 JB |
101 | %files devel |
102 | %defattr(644,root,root,755) | |
c94aa9f5 | 103 | %doc doc/FAQ |
bea96af2 | 104 | %attr(755,root,root) %{_libdir}/libcppunit.so |
2ed4d719 | 105 | %{_includedir}/cppunit |
a4a593a0 | 106 | %{_pkgconfigdir}/cppunit.pc |
2ed4d719 JB |
107 | |
108 | %files static | |
109 | %defattr(644,root,root,755) | |
bea96af2 | 110 | %{_libdir}/libcppunit.a |
4ec5e49a JB |
111 | |
112 | %files apidocs | |
113 | %defattr(644,root,root,755) | |
114 | %doc doc/html/* |