1 # NOTE: for versions >= 1.8 see efl.spec
4 %bcond_without static_libs # don't build static library
6 %define ecore_ver 1.7.9
10 Summary: Library for manipulating devices through udev
11 Summary(pl.UTF-8): Biblioteka do operowania urządzeniami korzystająca z udev
17 Source0: http://download.enlightenment.org/releases/%{name}-%{version}.tar.bz2
18 # Source0-md5: 94743f4f50682b58e2761bfb5978a48a
19 URL: http://trac.enlightenment.org/e/wiki/Eeze
20 BuildRequires: autoconf >= 2.52
21 BuildRequires: automake >= 1.6
22 BuildRequires: ecore-con-devel >= %{ecore_ver}
23 BuildRequires: ecore-devel >= %{ecore_ver}
24 BuildRequires: ecore-file-devel >= %{ecore_ver}
25 BuildRequires: eet-devel >= %{eet_ver}
26 BuildRequires: eina-devel >= %{eina_ver}
27 BuildRequires: libmount-devel >= 2.18.0
28 BuildRequires: libtool
29 BuildRequires: udev-devel >= 1:148
30 BuildRequires: pkgconfig >= 1:0.22
31 Requires: ecore >= %{ecore_ver}
32 Requires: eet >= %{eet_ver}
33 Requires: eina >= %{eina_ver}
34 Requires: libmount >= 2.18.0
35 Requires: udev-libs >= 1:148
36 Obsoletes: enlightenment-utils-eeze
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Eeze is a library for manipulating devices through udev with a simple
41 and fast API. It interfaces directly with libudev, avoiding such
42 middleman daemons as udisks/upower or hal, to immediately gather
43 device information the instant it becomes known to the system. This
44 can be used to determine such things as:
45 - If a CD-ROM has a disk inserted
46 - The temperature of a cpu core
47 - The remaining power left in a battery
48 - The current power consumption of various parts
49 - Monitor in realtime the status of peripheral devices.
51 Each of the above examples can be performed by using only a single
52 eeze function, as one of the primary focuses of the library is to
53 reduce the complexity of managing devices.
55 %description -l pl.UTF-8
56 Eeze to bibliotek do operowania urządzeniami poprzez udev z prostym i
57 szybkim API. Działa bezpośrednio z libudev, bez pośrednich demonów,
58 takich jak udisks, upower czy hal, aby zebrać informacje z urządzeń
59 natychmiast, kiedy staną się znane w systemie. Może to służyć do
60 określania rzeczy takich jak:
62 - termperatura rdzenia procesora
63 - pozostała pojemność baterii
64 - aktualne zużycie energii przez różne elementy
65 - monitorowanie stanu urządzeń peryferyjnych w czasie rzeczywistym.
67 Każde z tych zapytań może być wykonane przy użyciu jedynie pojedynczej
68 funkcji eeze, jako że jedną z głównych idei biblioteki jest
69 ograniczenie skomplikowania zarządzania urządzeniami.
72 Summary: Eeze header files
73 Summary(pl.UTF-8): Pliki nagłówkowe Eeze
74 Group: Development/Libraries
75 Requires: %{name} = %{version}-%{release}
76 Requires: ecore-devel >= %{ecore_ver}
77 Requires: eina-devel >= %{eina_ver}
78 Requires: udev-devel >= 1:148
81 Header files for Eeze.
83 %description devel -l pl.UTF-8
84 Pliki nagłówkowe Eeze.
87 Summary: Static Eeze library
88 Summary(pl.UTF-8): Statyczna biblioteka Eeze
89 Group: Development/Libraries
90 Requires: %{name}-devel = %{version}-%{release}
95 %description static -l pl.UTF-8
96 Statyczna biblioteka Eeze.
108 --disable-silent-rules \
109 %{!?with_static_libs:--disable-static} \
110 --with-eject=/usr/bin/eject \
111 --with-mount=/bin/mount \
112 --with-umount=/bin/umount
116 rm -rf $RPM_BUILD_ROOT
119 DESTDIR=$RPM_BUILD_ROOT
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
128 %defattr(644,root,root,755)
129 %doc AUTHORS COPYING ChangeLog NEWS README TODO
130 %attr(755,root,root) %{_bindir}/eeze_disk_ls
131 %attr(755,root,root) %{_bindir}/eeze_mount
132 %attr(755,root,root) %{_bindir}/eeze_scanner
133 %attr(755,root,root) %{_bindir}/eeze_umount
134 %attr(755,root,root) %{_libdir}/libeeze.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/libeeze.so.1
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/libeeze.so
140 %{_libdir}/libeeze.la
141 %{_includedir}/eeze-1
142 %{_pkgconfigdir}/eeze.pc
144 %if %{with static_libs}
146 %defattr(644,root,root,755)