]>
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 |
7cd97864 | 4 | Version: 1.12.0 |
d1923c93 | 5 | Release: 2 |
2ed4d719 JB |
6 | License: LGPL |
7 | Group: Libraries | |
f15cf192 | 8 | Source0: http://dl.sourceforge.net/cppunit/%{name}-%{version}.tar.gz |
7cd97864 | 9 | # Source0-md5: 7493718733ded49a96cf763c5d3eea7f |
2ed4d719 | 10 | URL: http://cppunit.sourceforge.net/ |
d58f4fd7 JB |
11 | BuildRequires: autoconf >= 2.50 |
12 | BuildRequires: automake >= 1.4 | |
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 | ||
50 | %prep | |
51 | %setup -q | |
52 | ||
d58f4fd7 | 53 | echo 'libcppunit_la_LIBADD = -ldl' >> src/cppunit/Makefile.am |
2ed4d719 JB |
54 | |
55 | %build | |
d58f4fd7 | 56 | %{__libtoolize} |
09e15b0e | 57 | %{__aclocal} -I config |
2ed4d719 | 58 | %{__autoconf} |
d58f4fd7 | 59 | %{__autoheader} |
2ed4d719 JB |
60 | %{__automake} |
61 | %configure | |
2ed4d719 JB |
62 | %{__make} |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
cc4260b2 PG |
67 | %{__make} install \ |
68 | DESTDIR=$RPM_BUILD_ROOT | |
2ed4d719 | 69 | |
d58f4fd7 | 70 | rm -rf $RPM_BUILD_ROOT%{_includedir}/cppunit/{ui/mfc,ui/qt,config/config-[bm]*} |
6d540b77 | 71 | rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name} |
2ed4d719 JB |
72 | |
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc AUTHORS BUGS NEWS README THANKS TODO | |
dfa0b2e4 | 82 | %attr(755,root,root) %{_bindir}/DllPlugInTester |
2ed4d719 JB |
83 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
84 | ||
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %doc doc/FAQ doc/html | |
88 | %attr(755,root,root) %{_bindir}/cppunit-config | |
2ed4d719 | 89 | %attr(755,root,root) %{_libdir}/lib*.so |
d58f4fd7 | 90 | %{_libdir}/lib*.la |
2ed4d719 JB |
91 | %{_includedir}/cppunit |
92 | %{_aclocaldir}/cppunit.m4 | |
a4a593a0 | 93 | %{_pkgconfigdir}/cppunit.pc |
2ed4d719 JB |
94 | %{_mandir}/man1/cppunit-config.1* |
95 | ||
96 | %files static | |
97 | %defattr(644,root,root,755) | |
98 | %{_libdir}/lib*.a |