]>
Commit | Line | Data |
---|---|---|
a5ef3f00 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | Summary: subunit - a streaming protocol for test results | |
7 | Summary(pl.UTF-8): subunit - protokół strumieniowy do wyników testów | |
8 | Name: subunit | |
9 | Version: 1.1.0 | |
50877366 | 10 | Release: 3 |
a5ef3f00 JB |
11 | License: Apache v2.0 or BSD |
12 | Group: Libraries | |
13 | Source0: https://github.com/testing-cabal/subunit/archive/%{version}/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: c1d0cf2363a0fcae3714de7ae83923e7 | |
15 | Patch0: %{name}-link.patch | |
16 | URL: https://code.launchpad.net/subunit | |
17 | BuildRequires: autoconf >= 2.59 | |
18 | BuildRequires: automake | |
19 | BuildRequires: check-devel >= 0.9.4 | |
20 | BuildRequires: cppunit-devel | |
21 | BuildRequires: libstdc++-devel | |
22 | BuildRequires: libtool >= 2:1.5 | |
23 | BuildRequires: pkgconfig | |
24 | BuildRequires: python-devel | |
25 | BuildRequires: rpm-perlprov | |
26 | BuildRequires: rpm-pythonprov | |
27 | BuildRequires: rpmbuild(macros) >= 1.219 | |
12c2eecd | 28 | BuildRequires: sed >= 4.0 |
a5ef3f00 JB |
29 | Requires: python-subunit = %{version}-%{release} |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | Subunit is a streaming protocol for test results. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Subunit to protokół strumieniowy do wyników testów. | |
37 | ||
38 | %package libs | |
39 | Summary: Subunit shared library | |
40 | Summary(pl.UTF-8): Biblioteka współdzielona Subunit | |
41 | Group: Libraries | |
42 | ||
43 | %description libs | |
44 | Subunit shared library. | |
45 | ||
46 | %description libs -l pl.UTF-8 | |
47 | Biblioteka współdzielona Subunit. | |
48 | ||
49 | %package devel | |
50 | Summary: Development files for Subunit library | |
51 | Summary(pl.UTF-8): Pliki programistyczne biblioteki Subunit | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-libs = %{version}-%{release} | |
54 | ||
55 | %description devel | |
56 | Development files for Subunit library. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Pliki programistyczne biblioteki Subunit. | |
60 | ||
61 | %package static | |
62 | Summary: Static Subunit library | |
63 | Summary(pl.UTF-8): Statyczna biblioteka Subunit | |
64 | Group: Development/Libraries | |
65 | Requires: %{name}-devel = %{version}-%{release} | |
66 | ||
67 | %description static | |
68 | Static Subunit library. | |
69 | ||
70 | %description static -l pl.UTF-8 | |
71 | Statyczna biblioteka Subunit. | |
72 | ||
73 | %package -n cppunit-subunit | |
74 | Summary: SubunitTestProgressListener for CPPUnit - shared library | |
75 | Summary(pl.UTF-8): SubunitTestProgressListener dla biblioteki CPPUnit - biblioteka współdzielona | |
76 | Group: Libraries | |
77 | Requires: %{name}-libs = %{version}-%{release} | |
78 | ||
79 | %description -n cppunit-subunit | |
80 | SubunitTestProgressListener for CPPUnit - shared library. | |
81 | ||
82 | %description -n cppunit-subunit -l pl.UTF-8 | |
83 | SubunitTestProgressListener dla biblioteki CPPUnit - biblioteka | |
84 | współdzielona. | |
85 | ||
86 | %package -n cppunit-subunit-devel | |
87 | Summary: SubunitTestProgressListener for CPPUnit - development files | |
88 | Summary(pl.UTF-8): SubunitTestProgressListener dla biblioteki CPPUnit - pliki programistyczne | |
89 | Group: Development/Libraries | |
90 | Requires: %{name}-devel = %{version}-%{release} | |
91 | Requires: cppunit-devel | |
92 | Requires: cppunit-subunit = %{version}-%{release} | |
93 | Requires: libstdc++-devel | |
94 | ||
95 | %description -n cppunit-subunit-devel | |
96 | SubunitTestProgressListener for CPPUnit - development files. | |
97 | ||
98 | %description -n cppunit-subunit-devel -l pl.UTF-8 | |
99 | SubunitTestProgressListener dla biblioteki CPPUnit - pliki | |
100 | programistyczne. | |
101 | ||
102 | %package -n cppunit-subunit-static | |
103 | Summary: SubunitTestProgressListener for CPPUnit - static library | |
104 | Summary(pl.UTF-8): SubunitTestProgressListener dla biblioteki CPPUnit - biblioteka statyczna | |
105 | Group: Development/Libraries | |
106 | Requires: cppunit-subunit-devel = %{version}-%{release} | |
107 | ||
108 | %description -n cppunit-subunit-static | |
109 | SubunitTestProgressListener for CPPUnit - static library. | |
110 | ||
111 | %description -n cppunit-subunit-static -l pl.UTF-8 | |
112 | SubunitTestProgressListener dla biblioteki CPPUnit - biblioteka | |
113 | statyczna. | |
114 | ||
115 | %package -n perl-Subunit | |
116 | Summary: Subunit support for Perl language | |
117 | Summary(pl.UTF-8): Obsługa protokołu Subunit dla języka Perl | |
118 | Group: Development/Languages/Perl | |
119 | ||
120 | %description -n perl-Subunit | |
121 | Subunit support for Perl language. | |
122 | ||
123 | %description -n perl-Subunit -l pl.UTF-8 | |
124 | Obsługa protokołu Subunit dla języka Perl. | |
125 | ||
126 | %package -n python-subunit | |
127 | Summary: Subunit support for Python language | |
128 | Summary(pl.UTF-8): Obsługa protokołu Subunit dla języka Python | |
129 | Group: Development/Languages/Python | |
130 | ||
131 | %description -n python-subunit | |
132 | Subunit support for Python language. | |
133 | ||
134 | %description -n python-subunit -l pl.UTF-8 | |
135 | Obsługa protokołu Subunit dla języka Python. | |
136 | ||
137 | %prep | |
138 | %setup -q | |
139 | %patch0 -p1 | |
140 | ||
12c2eecd JB |
141 | %{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' filters/*subunit* |
142 | ||
a5ef3f00 JB |
143 | %build |
144 | %{__libtoolize} | |
145 | %{__aclocal} | |
146 | %{__autoconf} | |
147 | %{__autoheader} | |
148 | %{__automake} | |
149 | %configure \ | |
150 | %{!?with_static_libs:--disable-static} | |
151 | %{__make} \ | |
152 | INSTALLDIRS=vendor | |
153 | ||
154 | %install | |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
157 | %{__make} install \ | |
158 | DESTDIR=$RPM_BUILD_ROOT | |
159 | ||
160 | # obsoleted by pkg-config | |
161 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
162 | ||
163 | %py_postclean | |
164 | ||
165 | %clean | |
166 | rm -rf $RPM_BUILD_ROOT | |
167 | ||
168 | %post libs -p /sbin/ldconfig | |
169 | %postun libs -p /sbin/ldconfig | |
170 | ||
171 | %post -n cppunit-subunit -p /sbin/ldconfig | |
172 | %postun -n cppunit-subunit -p /sbin/ldconfig | |
173 | ||
174 | %files | |
175 | %defattr(644,root,root,755) | |
176 | %doc BSD COPYING NEWS README | |
177 | %attr(755,root,root) %{_bindir}/subunit-1to2 | |
178 | %attr(755,root,root) %{_bindir}/subunit-2to1 | |
179 | %attr(755,root,root) %{_bindir}/subunit-diff | |
180 | %attr(755,root,root) %{_bindir}/subunit-filter | |
181 | %attr(755,root,root) %{_bindir}/subunit-ls | |
182 | %attr(755,root,root) %{_bindir}/subunit-notify | |
183 | %attr(755,root,root) %{_bindir}/subunit-output | |
184 | %attr(755,root,root) %{_bindir}/subunit-stats | |
185 | %attr(755,root,root) %{_bindir}/subunit-tags | |
186 | %attr(755,root,root) %{_bindir}/subunit2csv | |
187 | %attr(755,root,root) %{_bindir}/subunit2gtk | |
188 | %attr(755,root,root) %{_bindir}/subunit2junitxml | |
189 | %attr(755,root,root) %{_bindir}/subunit2pyunit | |
190 | %attr(755,root,root) %{_bindir}/tap2subunit | |
191 | ||
192 | %files libs | |
193 | %defattr(644,root,root,755) | |
194 | %doc c/README | |
195 | %attr(755,root,root) %{_libdir}/libsubunit.so.*.*.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/libsubunit.so.0 | |
197 | ||
198 | %files devel | |
199 | %defattr(644,root,root,755) | |
200 | %attr(755,root,root) %{_libdir}/libsubunit.so | |
201 | %dir %{_includedir}/subunit | |
202 | %{_includedir}/subunit/child.h | |
203 | %{_pkgconfigdir}/libsubunit.pc | |
204 | ||
205 | %if %{with static_libs} | |
206 | %files static | |
207 | %defattr(644,root,root,755) | |
208 | %{_libdir}/libsubunit.a | |
209 | %endif | |
210 | ||
211 | %files -n cppunit-subunit | |
212 | %defattr(644,root,root,755) | |
213 | %doc c++/README | |
214 | %attr(755,root,root) %{_libdir}/libcppunit_subunit.so.*.*.* | |
215 | %attr(755,root,root) %ghost %{_libdir}/libcppunit_subunit.so.0 | |
216 | ||
217 | %files -n cppunit-subunit-devel | |
218 | %defattr(644,root,root,755) | |
219 | %attr(755,root,root) %{_libdir}/libcppunit_subunit.so | |
220 | %{_includedir}/subunit/SubunitTestProgressListener.h | |
221 | %{_pkgconfigdir}/libcppunit_subunit.pc | |
222 | ||
223 | %if %{with static_libs} | |
224 | %files -n cppunit-subunit-static | |
225 | %defattr(644,root,root,755) | |
226 | %{_libdir}/libcppunit_subunit.a | |
227 | %endif | |
228 | ||
229 | %files -n perl-Subunit | |
230 | %defattr(644,root,root,755) | |
231 | %{perl_vendorlib}/Subunit.pm | |
232 | %{perl_vendorlib}/Subunit | |
233 | ||
234 | %files -n python-subunit | |
235 | %defattr(644,root,root,755) | |
236 | %{py_sitescriptdir}/subunit |