]>
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 |
bea96af2 | 4 | Version: 1.12.1 |
8332aadb | 5 | Release: 3 |
2ed4d719 JB |
6 | License: LGPL |
7 | Group: Libraries | |
f15cf192 | 8 | Source0: http://dl.sourceforge.net/cppunit/%{name}-%{version}.tar.gz |
bea96af2 | 9 | # Source0-md5: bd30e9cf5523cdfc019b94f5e1d7fd19 |
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 | 24 | |
c94aa9f5 MB |
25 | %package apidocs |
26 | Summary: cppunit API documentation | |
27 | Summary(pl.UTF-8): Dokumentacja API cppunit | |
28 | Group: Documentation | |
29 | ||
30 | %description apidocs | |
31 | cppunit API documentation. | |
32 | ||
33 | %description apidocs -l pl.UTF-8 | |
34 | Dokumentacja API cppunit. | |
35 | ||
2ed4d719 JB |
36 | %package devel |
37 | Summary: cppunit header files | |
44cfde93 | 38 | Summary(pl.UTF-8): Pliki nagłówkowe cppunit |
2ed4d719 | 39 | Group: Development/Libraries |
d58f4fd7 | 40 | Requires: %{name} = %{version}-%{release} |
71b20f1f | 41 | Requires: libstdc++-devel |
2ed4d719 JB |
42 | |
43 | %description devel | |
44 | cppunit header files. | |
45 | ||
e7caeaa2 JR |
46 | %description devel -l pl.UTF-8 |
47 | Pliki nagłówkowe cppunit. | |
2ed4d719 JB |
48 | |
49 | %package static | |
50 | Summary: cppunit static library | |
44cfde93 | 51 | Summary(pl.UTF-8): Statyczna biblioteka cppunit |
2ed4d719 | 52 | Group: Development/Libraries |
d58f4fd7 | 53 | Requires: %{name}-devel = %{version}-%{release} |
2ed4d719 JB |
54 | |
55 | %description static | |
56 | cppunit static library. | |
57 | ||
e7caeaa2 | 58 | %description static -l pl.UTF-8 |
2ed4d719 JB |
59 | Statyczna biblioteka cppunit. |
60 | ||
61 | %prep | |
62 | %setup -q | |
63 | ||
d58f4fd7 | 64 | echo 'libcppunit_la_LIBADD = -ldl' >> src/cppunit/Makefile.am |
2ed4d719 JB |
65 | |
66 | %build | |
d58f4fd7 | 67 | %{__libtoolize} |
09e15b0e | 68 | %{__aclocal} -I config |
2ed4d719 | 69 | %{__autoconf} |
d58f4fd7 | 70 | %{__autoheader} |
2ed4d719 JB |
71 | %{__automake} |
72 | %configure | |
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 | |
bea96af2 JB |
81 | rm -r $RPM_BUILD_ROOT%{_includedir}/cppunit/{ui/mfc,ui/qt,config/config-[bm]*} |
82 | rm -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
2ed4d719 JB |
83 | |
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post -p /sbin/ldconfig | |
88 | %postun -p /sbin/ldconfig | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
92 | %doc AUTHORS BUGS NEWS README THANKS TODO | |
dfa0b2e4 | 93 | %attr(755,root,root) %{_bindir}/DllPlugInTester |
bea96af2 JB |
94 | %attr(755,root,root) %{_libdir}/libcppunit-1.12.so.*.*.* |
95 | %attr(755,root,root) %ghost %{_libdir}/libcppunit-1.12.so.1 | |
2ed4d719 | 96 | |
c94aa9f5 MB |
97 | %files apidocs |
98 | %defattr(644,root,root,755) | |
99 | %doc doc/html/* | |
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 |