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