]>
Commit | Line | Data |
---|---|---|
9f7f48cb JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: Library to assist testing with a fresh DBus daemon | |
6 | Summary(pl.UTF-8): Biblioteka wspomagające testowanie z użyciem demona DBus | |
7 | Name: dbus-test-runner | |
8 | Version: 12.10.1 | |
9 | Release: 1 | |
10 | License: GPL v3+ | |
11 | Group: Libraries | |
12 | Source0: https://launchpad.net/dbus-test-runner/12.10/%{version}/+download/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 810dc82f9e06401ad903156bacc7008f | |
14 | URL: https://launchpad.net/dbus-test-runner | |
15 | BuildRequires: autoconf >= 2.53 | |
16 | BuildRequires: automake >= 1:1.11 | |
17 | BuildRequires: dbus-glib-devel >= 0.76 | |
18 | BuildRequires: gettext-tools | |
19 | BuildRequires: glib2-devel >= 1:2.30 | |
20 | BuildRequires: intltool >= 0.35.0 | |
21 | BuildRequires: libtool | |
22 | BuildRequires: pkgconfig | |
23 | BuildRequires: sed >= 4.0 | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Library to assist testing with a fresh DBus daemon. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Biblioteka wspomagające testowanie z użyciem demona DBus. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for dbustest library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dbustest | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: glib2-devel >= 1:2.30 | |
38 | ||
39 | %description devel | |
40 | Header files for dbustest library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki dbustest. | |
44 | ||
45 | %package static | |
46 | Summary: Static dbustest library | |
47 | Summary(pl.UTF-8): Statyczna biblioteka dbustest | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static dbustest library. | |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczna biblioteka dbustest. | |
56 | ||
57 | %prep | |
58 | %setup -q | |
59 | ||
60 | %{__sed} -i -e 's/-Werror //' libdbustest/Makefile.am src/Makefile.am | |
61 | ||
62 | %build | |
63 | %{__libtoolize} | |
64 | %{__aclocal} -I m4 | |
65 | %{__autoconf} | |
66 | %{__autoheader} | |
67 | %{__automake} | |
68 | %configure \ | |
69 | --disable-silent-rules \ | |
70 | %{!?with_static_libs:--disable-static} | |
71 | %{__make} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %{__make} install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
79 | # obsoleted by pkg-config | |
80 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdbustest.la | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %attr(755,root,root) %{_bindir}/dbus-test-runner | |
91 | %attr(755,root,root) %{_libdir}/libdbustest.so.*.*.* | |
92 | %attr(755,root,root) %ghost %{_libdir}/libdbustest.so.1 | |
93 | %{_datadir}/dbus-test-runner | |
94 | ||
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_libdir}/libdbustest.so | |
98 | %{_includedir}/libdbustest-1 | |
99 | %{_pkgconfigdir}/dbustest-1.pc | |
100 | ||
101 | %if %{with static_libs} | |
102 | %files static | |
103 | %defattr(644,root,root,755) | |
104 | %{_libdir}/libdbustest.a | |
105 | %endif |