3 %bcond_without static_libs # don't build static library
5 %define ecore_ver 1.7.0
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: 0e9d008a9ae17de2aea82a34ee62691e
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: udev-libs >= 1:148
34 Obsoletes: enlightenment-utils-eeze
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Eeze is a library for manipulating devices through udev with a simple
39 and fast API. It interfaces directly with libudev, avoiding such
40 middleman daemons as udisks/upower or hal, to immediately gather
41 device information the instant it becomes known to the system. This
42 can be used to determine such things as:
43 - If a CD-ROM has a disk inserted
44 - The temperature of a cpu core
45 - The remaining power left in a battery
46 - The current power consumption of various parts
47 - Monitor in realtime the status of peripheral devices.
49 Each of the above examples can be performed by using only a single
50 eeze function, as one of the primary focuses of the library is to
51 reduce the complexity of managing devices.
53 %description -l pl.UTF-8
54 Eeze to bibliotek do operowania urządzeniami poprzez udev z prostym i
55 szybkim API. Działa bezpośrednio z libudev, bez pośrednich demonów,
56 takich jak udisks, upower czy hal, aby zebrać informacje z urządzeń
57 natychmiast, kiedy staną się znane w systemie. Może to służyć do
58 określania rzeczy takich jak:
60 - termperatura rdzenia procesora
61 - pozostała pojemność baterii
62 - aktualne zużycie energii przez różne elementy
63 - monitorowanie stanu urządzeń peryferyjnych w czasie rzeczywistym.
65 Każde z tych zapytań może być wykonane przy użyciu jedynie pojedynczej
66 funkcji eeze, jako że jedną z głównych idei biblioteki jest
67 ograniczenie skomplikowania zarządzania urządzeniami.
70 Summary: Eeze header files
71 Summary(pl.UTF-8): Pliki nagłówkowe Eeze
72 Group: Development/Libraries
73 Requires: %{name} = %{version}-%{release}
74 Requires: ecore-devel >= %{ecore_ver}
75 Requires: eina-devel >= %{eina_ver}
76 Requires: udev-devel >= 1:148
79 Header files for Eeze.
81 %description devel -l pl.UTF-8
82 Pliki nagłówkowe Eeze.
85 Summary: Static Eeze library
86 Summary(pl.UTF-8): Statyczna biblioteka Eeze
87 Group: Development/Libraries
88 Requires: %{name}-devel = %{version}-%{release}
93 %description static -l pl.UTF-8
94 Statyczna biblioteka Eeze.
106 --disable-silent-rules \
107 %{!?with_static_libs:--disable-static} \
108 --with-eject=/usr/bin/eject \
109 --with-mount=/bin/mount \
110 --with-umount=/bin/umount
114 rm -rf $RPM_BUILD_ROOT
117 DESTDIR=$RPM_BUILD_ROOT
120 rm -rf $RPM_BUILD_ROOT
122 %post -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
126 %defattr(644,root,root,755)
127 %doc AUTHORS COPYING ChangeLog NEWS README TODO
128 %attr(755,root,root) %{_bindir}/eeze_disk_ls
129 %attr(755,root,root) %{_bindir}/eeze_mount
130 %attr(755,root,root) %{_bindir}/eeze_scanner
131 %attr(755,root,root) %{_bindir}/eeze_umount
132 %attr(755,root,root) %{_libdir}/libeeze.so.*.*.*
133 %attr(755,root,root) %ghost %{_libdir}/libeeze.so.1
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/libeeze.so
138 %{_libdir}/libeeze.la
139 %{_includedir}/eeze-1
140 %{_pkgconfigdir}/eeze.pc
142 %if %{with static_libs}
144 %defattr(644,root,root,755)