]>
Commit | Line | Data |
---|---|---|
c873476a BZ |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
6106d705 | 5 | %define ecore_ver 1.0.0 |
6 | %define svn %{nil} | |
c873476a | 7 | |
5052e00f JB |
8 | Summary: EFL wrapper for DBus |
9 | Summary(pl.UTF-8): Obudowanie EFL dla systemu DBus | |
c873476a | 10 | Name: e_dbus |
6106d705 | 11 | %define subver beta2 |
12 | Version: 1.0.0 | |
13 | Release: 0.%{subver}.1 | |
c67e204b | 14 | License: LGPL v2.1 |
c873476a | 15 | Group: Libraries |
6106d705 | 16 | Source0: http://download.enlightenment.org/releases/%{name}-%{version}.%{subver}.tar.bz2 |
17 | # Source0-md5: 98c45ac347b3bfb5b7a33cd972006226 | |
5052e00f JB |
18 | URL: http://enlightenment.org/p.php?p=about/efl |
19 | BuildRequires: autoconf >= 2.52 | |
20 | BuildRequires: automake >= 1.6 | |
c873476a BZ |
21 | BuildRequires: dbus-devel >= 0.62 |
22 | BuildRequires: ecore-devel >= %{ecore_ver} | |
c873476a BZ |
23 | BuildRequires: libtool |
24 | BuildRequires: pkgconfig | |
a6bb1636 | 25 | Obsoletes: ecore-dbus |
c873476a BZ |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %undefine __cxx | |
29 | ||
30 | %description | |
5052e00f | 31 | EFL wrapper for DBus. |
c873476a | 32 | |
5052e00f JB |
33 | %description -l pl.UTF-8 |
34 | Obudowanie EFL dla systemu DBus. | |
c873476a BZ |
35 | |
36 | %package devel | |
37 | Summary: Header files for e_dbus library | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki e_dbus | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
c873476a BZ |
41 | |
42 | %description devel | |
43 | Header files for e_dbus library. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe biblioteki e_dbus. | |
47 | ||
48 | %package static | |
5052e00f JB |
49 | Summary: Static e_dbus library |
50 | Summary(pl.UTF-8): Statyczna biblioteka e_dbus | |
c873476a BZ |
51 | Group: Development/Libraries |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static e_dbus library. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczna biblioteka e_dbus. | |
59 | ||
60 | %prep | |
6106d705 | 61 | %setup -q -n %{name}-%{version}.%{subver} |
c873476a BZ |
62 | |
63 | %build | |
64 | %{__libtoolize} | |
c67e204b | 65 | %{__aclocal} -I m4 |
c873476a BZ |
66 | %{__autoconf} |
67 | %{__autoheader} | |
68 | %{__automake} | |
69 | %configure \ | |
70 | %{!?with_static_libs:--disable-static} | |
c67e204b | 71 | %{__make} V=1 |
c873476a BZ |
72 | |
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %{__make} install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %post -p /sbin/ldconfig | |
83 | %postun -p /sbin/ldconfig | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
5052e00f JB |
87 | %doc AUTHORS COPYING README |
88 | %attr(755,root,root) %{_bindir}/e-notify-send | |
c67e204b | 89 | %attr(755,root,root) %{_bindir}/e_dbus_bluez_test |
90 | %attr(755,root,root) %{_bindir}/e_dbus_connman_test | |
5052e00f JB |
91 | %attr(755,root,root) %{_bindir}/e_dbus_notification_daemon |
92 | %attr(755,root,root) %{_bindir}/e_dbus_notify | |
c67e204b | 93 | %attr(755,root,root) %{_bindir}/e_dbus_ofono_test |
5052e00f JB |
94 | %attr(755,root,root) %{_bindir}/e_dbus_test |
95 | %attr(755,root,root) %{_bindir}/e_dbus_test_client | |
c67e204b | 96 | %attr(755,root,root) %{_bindir}/e_dbus_ukit_test |
6106d705 | 97 | %attr(755,root,root) %{_libdir}/libebluez%{svn}.so.1.0.0 |
98 | %attr(755,root,root) %ghost %{_libdir}/libebluez%{svn}.so.1 | |
99 | %attr(755,root,root) %{_libdir}/libeconnman%{svn}.so.1.0.0 | |
100 | %attr(755,root,root) %ghost %{_libdir}/libeconnman%{svn}.so.1 | |
101 | %attr(755,root,root) %{_libdir}/libedbus%{svn}.so.1.0.0 | |
102 | %attr(755,root,root) %ghost %{_libdir}/libedbus%{svn}.so.1 | |
103 | %attr(755,root,root) %{_libdir}/libehal%{svn}.so.1.0.0 | |
104 | %attr(755,root,root) %ghost %{_libdir}/libehal%{svn}.so.1 | |
105 | %attr(755,root,root) %{_libdir}/libenotify%{svn}.so.1.0.0 | |
106 | %attr(755,root,root) %ghost %{_libdir}/libenotify%{svn}.so.1 | |
107 | %attr(755,root,root) %{_libdir}/libeofono%{svn}.so.1.0.0 | |
108 | %attr(755,root,root) %ghost %{_libdir}/libeofono%{svn}.so.1 | |
109 | %attr(755,root,root) %{_libdir}/libeukit%{svn}.so.1.0.0 | |
110 | %attr(755,root,root) %ghost %{_libdir}/libeukit%{svn}.so.1 | |
c873476a BZ |
111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
c67e204b | 114 | %attr(755,root,root) %{_libdir}/libebluez.so |
115 | %attr(755,root,root) %{_libdir}/libeconnman.so | |
5052e00f JB |
116 | %attr(755,root,root) %{_libdir}/libedbus.so |
117 | %attr(755,root,root) %{_libdir}/libehal.so | |
c67e204b | 118 | #%attr(755,root,root) %{_libdir}/libenm.so |
5052e00f | 119 | %attr(755,root,root) %{_libdir}/libenotify.so |
c67e204b | 120 | %attr(755,root,root) %{_libdir}/libeofono.so |
121 | %attr(755,root,root) %{_libdir}/libeukit.so | |
122 | %{_libdir}/libebluez.la | |
123 | %{_libdir}/libeconnman.la | |
5052e00f JB |
124 | %{_libdir}/libedbus.la |
125 | %{_libdir}/libehal.la | |
c67e204b | 126 | %{_libdir}/libeofono.la |
127 | %{_libdir}/libeukit.la | |
128 | #%{_libdir}/libenm.la | |
5052e00f | 129 | %{_libdir}/libenotify.la |
6106d705 | 130 | %dir %{_includedir}/e_dbus-1 |
131 | %{_includedir}/e_dbus-1/*.h | |
c67e204b | 132 | %{_pkgconfigdir}/ebluez.pc |
133 | %{_pkgconfigdir}/econnman.pc | |
5052e00f JB |
134 | %{_pkgconfigdir}/edbus.pc |
135 | %{_pkgconfigdir}/ehal.pc | |
c67e204b | 136 | #%{_pkgconfigdir}/enm.pc |
5052e00f | 137 | %{_pkgconfigdir}/enotify.pc |
c67e204b | 138 | %{_pkgconfigdir}/eofono.pc |
139 | %{_pkgconfigdir}/eukit.pc | |
c873476a BZ |
140 | |
141 | %if %{with static_libs} | |
142 | %files static | |
143 | %defattr(644,root,root,755) | |
c67e204b | 144 | %{_libdir}/libebluez.a |
145 | %{_libdir}/libeconnman.a | |
5052e00f JB |
146 | %{_libdir}/libedbus.a |
147 | %{_libdir}/libehal.a | |
c67e204b | 148 | #%{_libdir}/libenm.a |
5052e00f | 149 | %{_libdir}/libenotify.a |
c67e204b | 150 | %{_libdir}/libeofono.a |
151 | %{_libdir}/libeukit.a | |
c873476a | 152 | %endif |