]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
5 | %define ecore_ver 1.0.0 | |
6 | %define svn %{nil} | |
7 | ||
8 | Summary: EFL wrapper for DBus | |
9 | Summary(pl.UTF-8): Obudowanie EFL dla systemu DBus | |
10 | Name: e_dbus | |
11 | %define subver beta2 | |
12 | Version: 1.0.0 | |
13 | Release: 0.%{subver}.1 | |
14 | License: LGPL v2.1 | |
15 | Group: Libraries | |
16 | Source0: http://download.enlightenment.org/releases/%{name}-%{version}.%{subver}.tar.bz2 | |
17 | # Source0-md5: 98c45ac347b3bfb5b7a33cd972006226 | |
18 | URL: http://enlightenment.org/p.php?p=about/efl | |
19 | BuildRequires: autoconf >= 2.52 | |
20 | BuildRequires: automake >= 1.6 | |
21 | BuildRequires: dbus-devel >= 0.62 | |
22 | BuildRequires: ecore-devel >= %{ecore_ver} | |
23 | BuildRequires: libtool | |
24 | BuildRequires: pkgconfig | |
25 | Obsoletes: ecore-dbus | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %undefine __cxx | |
29 | ||
30 | %description | |
31 | EFL wrapper for DBus. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Obudowanie EFL dla systemu DBus. | |
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} | |
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 | |
49 | Summary: Static e_dbus library | |
50 | Summary(pl.UTF-8): Statyczna biblioteka e_dbus | |
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 | |
61 | %setup -q -n %{name}-%{version}.%{subver} | |
62 | ||
63 | %build | |
64 | %{__libtoolize} | |
65 | %{__aclocal} -I m4 | |
66 | %{__autoconf} | |
67 | %{__autoheader} | |
68 | %{__automake} | |
69 | %configure \ | |
70 | %{!?with_static_libs:--disable-static} | |
71 | %{__make} V=1 | |
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) | |
87 | %doc AUTHORS COPYING README | |
88 | %attr(755,root,root) %{_bindir}/e-notify-send | |
89 | %attr(755,root,root) %{_bindir}/e_dbus_bluez_test | |
90 | %attr(755,root,root) %{_bindir}/e_dbus_connman_test | |
91 | %attr(755,root,root) %{_bindir}/e_dbus_notification_daemon | |
92 | %attr(755,root,root) %{_bindir}/e_dbus_notify | |
93 | %attr(755,root,root) %{_bindir}/e_dbus_ofono_test | |
94 | %attr(755,root,root) %{_bindir}/e_dbus_test | |
95 | %attr(755,root,root) %{_bindir}/e_dbus_test_client | |
96 | %attr(755,root,root) %{_bindir}/e_dbus_ukit_test | |
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 | |
111 | ||
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/libebluez.so | |
115 | %attr(755,root,root) %{_libdir}/libeconnman.so | |
116 | %attr(755,root,root) %{_libdir}/libedbus.so | |
117 | %attr(755,root,root) %{_libdir}/libehal.so | |
118 | #%attr(755,root,root) %{_libdir}/libenm.so | |
119 | %attr(755,root,root) %{_libdir}/libenotify.so | |
120 | %attr(755,root,root) %{_libdir}/libeofono.so | |
121 | %attr(755,root,root) %{_libdir}/libeukit.so | |
122 | %{_libdir}/libebluez.la | |
123 | %{_libdir}/libeconnman.la | |
124 | %{_libdir}/libedbus.la | |
125 | %{_libdir}/libehal.la | |
126 | %{_libdir}/libeofono.la | |
127 | %{_libdir}/libeukit.la | |
128 | #%{_libdir}/libenm.la | |
129 | %{_libdir}/libenotify.la | |
130 | %dir %{_includedir}/e_dbus-1 | |
131 | %{_includedir}/e_dbus-1/*.h | |
132 | %{_pkgconfigdir}/ebluez.pc | |
133 | %{_pkgconfigdir}/econnman.pc | |
134 | %{_pkgconfigdir}/edbus.pc | |
135 | %{_pkgconfigdir}/ehal.pc | |
136 | #%{_pkgconfigdir}/enm.pc | |
137 | %{_pkgconfigdir}/enotify.pc | |
138 | %{_pkgconfigdir}/eofono.pc | |
139 | %{_pkgconfigdir}/eukit.pc | |
140 | ||
141 | %if %{with static_libs} | |
142 | %files static | |
143 | %defattr(644,root,root,755) | |
144 | %{_libdir}/libebluez.a | |
145 | %{_libdir}/libeconnman.a | |
146 | %{_libdir}/libedbus.a | |
147 | %{_libdir}/libehal.a | |
148 | #%{_libdir}/libenm.a | |
149 | %{_libdir}/libenotify.a | |
150 | %{_libdir}/libeofono.a | |
151 | %{_libdir}/libeukit.a | |
152 | %endif |