]>
Commit | Line | Data |
---|---|---|
1f22bc91 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
5 | %define ecore_ver 1.0.0 | |
1f22bc91 | 6 | |
7 | Summary: Library for manipulating devices through udev | |
8 | Summary(pl.UTF-8): Biblioteka do operowania urządzeniami korzystająca z udev | |
9 | Name: eeze | |
107dec0f | 10 | Version: 1.0.2 |
5d0e8e41 | 11 | Release: 1 |
a786efc1 | 12 | License: BSD |
1f22bc91 | 13 | Group: X11/Libraries |
76ec9f2e | 14 | Source0: http://download.enlightenment.org/releases/%{name}-%{version}.tar.bz2 |
107dec0f | 15 | # Source0-md5: 51f9e7dca05a2e4c00ff75eeb70850a7 |
a786efc1 | 16 | URL: http://trac.enlightenment.org/e/wiki/Eeze |
1f22bc91 | 17 | BuildRequires: autoconf >= 2.52 |
18 | BuildRequires: automake >= 1.6 | |
1f22bc91 | 19 | BuildRequires: ecore-devel >= %{ecore_ver} |
20 | BuildRequires: libtool | |
a786efc1 JB |
21 | BuildRequires: udev-devel >= 148 |
22 | BuildRequires: pkgconfig >= 1:0.22 | |
23 | Requires: ecore >= %{ecore_ver} | |
24 | Requires: udev-libs >= 148 | |
1f22bc91 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
a786efc1 JB |
28 | Eeze is a library for manipulating devices through udev with a simple |
29 | and fast API. It interfaces directly with libudev, avoiding such | |
107dec0f JB |
30 | middleman daemons as udisks/upower or hal, to immediately gather |
31 | device information the instant it becomes known to the system. This | |
32 | can be used to determine such things as: | |
a786efc1 JB |
33 | - If a CD-ROM has a disk inserted |
34 | - The temperature of a cpu core | |
35 | - The remaining power left in a battery | |
36 | - The current power consumption of various parts | |
37 | - Monitor in realtime the status of peripheral devices. | |
1f22bc91 | 38 | |
107dec0f JB |
39 | Each of the above examples can be performed by using only a single |
40 | eeze function, as one of the primary focuses of the library is to | |
41 | reduce the complexity of managing devices. | |
1f22bc91 | 42 | |
a786efc1 JB |
43 | %description -l pl.UTF-8 |
44 | Eeze to bibliotek do operowania urządzeniami poprzez udev z prostym i | |
45 | szybkim API. Działa bezpośrednio z libudev, bez pośrednich demonów, | |
46 | takich jak udisks, upower czy hal, aby zebrać informacje z urządzeń | |
47 | natychmiast, kiedy staną się znane w systemie. Może to służyć do | |
48 | określania rzeczy takich jak: | |
49 | - włożenie płyty CD | |
50 | - termperatura rdzenia procesora | |
51 | - pozostała pojemność baterii | |
52 | - aktualne zużycie energii przez różne elementy | |
53 | - monitorowanie stanu urządzeń peryferyjnych w czasie rzeczywistym. | |
54 | ||
55 | Każde z tych zapytań może być wykonane przy użyciu jedynie pojedynczej | |
56 | funkcji eeze, jako że jedną z głównych idei biblioteki jest | |
57 | ograniczenie skomplikowania zarządzania urządzeniami. | |
58 | ||
1f22bc91 | 59 | %package devel |
60 | Summary: Eeze header files | |
61 | Summary(pl.UTF-8): Pliki nagłówkowe Eeze | |
62 | Group: Development/Libraries | |
63 | Requires: %{name} = %{version}-%{release} | |
a786efc1 JB |
64 | Requires: ecore-devel >= %{ecore_ver} |
65 | Requires: udev-devel >= 148 | |
1f22bc91 | 66 | |
67 | %description devel | |
a786efc1 | 68 | Header files for Eeze. |
1f22bc91 | 69 | |
70 | %description devel -l pl.UTF-8 | |
a786efc1 | 71 | Pliki nagłówkowe Eeze. |
1f22bc91 | 72 | |
73 | %package static | |
a786efc1 JB |
74 | Summary: Static Eeze library |
75 | Summary(pl.UTF-8): Statyczna biblioteka Eeze | |
1f22bc91 | 76 | Group: Development/Libraries |
77 | Requires: %{name}-devel = %{version}-%{release} | |
78 | ||
79 | %description static | |
a786efc1 | 80 | Static Eeze library. |
1f22bc91 | 81 | |
82 | %description static -l pl.UTF-8 | |
a786efc1 | 83 | Statyczna biblioteka Eeze. |
1f22bc91 | 84 | |
85 | %prep | |
76ec9f2e | 86 | %setup -q |
1f22bc91 | 87 | |
1f22bc91 | 88 | %build |
89 | %{__libtoolize} | |
90 | %{__aclocal} -I m4 | |
91 | %{__autoconf} | |
92 | %{__autoheader} | |
93 | %{__automake} | |
94 | %configure \ | |
a786efc1 | 95 | --disable-silent-rules \ |
1f22bc91 | 96 | %{!?with_static_libs:--disable-static} |
a786efc1 | 97 | %{__make} |
1f22bc91 | 98 | |
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %{__make} install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
a786efc1 | 105 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/eeze_udev_test |
1f22bc91 | 106 | |
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %post -p /sbin/ldconfig | |
111 | %postun -p /sbin/ldconfig | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
71aa5464 | 115 | %doc AUTHORS COPYING ChangeLog README TODO |
a786efc1 JB |
116 | %attr(755,root,root) %{_libdir}/libeeze.so.*.*.* |
117 | %attr(755,root,root) %ghost %{_libdir}/libeeze.so.1 | |
1f22bc91 | 118 | |
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
121 | %attr(755,root,root) %{_libdir}/libeeze.so | |
122 | %{_libdir}/libeeze.la | |
a786efc1 | 123 | %{_includedir}/eeze-1 |
1f22bc91 | 124 | %{_pkgconfigdir}/eeze.pc |
125 | ||
126 | %if %{with static_libs} | |
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libeeze.a | |
130 | %endif |