]> git.pld-linux.org Git - packages/eeze.git/blame - eeze.spec
- 1.0.0 is now stable
[packages/eeze.git] / eeze.spec
CommitLineData
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
7Summary: Library for manipulating devices through udev
8Summary(pl.UTF-8): Biblioteka do operowania urządzeniami korzystająca z udev
9Name: eeze
1f22bc91 10Version: 1.0.0
11Release: 0.%{subver}.1
a786efc1 12License: BSD
1f22bc91 13Group: X11/Libraries
76ec9f2e 14Source0: http://download.enlightenment.org/releases/%{name}-%{version}.tar.bz2
15# Source0-md5: 49123331a173f687e67a3a9c6a2115f2
a786efc1 16URL: http://trac.enlightenment.org/e/wiki/Eeze
1f22bc91 17BuildRequires: autoconf >= 2.52
18BuildRequires: automake >= 1.6
1f22bc91 19BuildRequires: ecore-devel >= %{ecore_ver}
20BuildRequires: libtool
a786efc1
JB
21BuildRequires: udev-devel >= 148
22BuildRequires: pkgconfig >= 1:0.22
23Requires: ecore >= %{ecore_ver}
24Requires: udev-libs >= 148
1f22bc91 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
a786efc1
JB
28Eeze is a library for manipulating devices through udev with a simple
29and fast API. It interfaces directly with libudev, avoiding such
30middleman daemons as udisks/upower or hal, to immediately gather device
31information the instant it becomes known to the system. This can be
32used to determine such things as:
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
39Each of the above examples can be performed by using only a single eeze
40function, as one of the primary focuses of the library is to reduce the
41complexity of managing devices.
42
a786efc1
JB
43%description -l pl.UTF-8
44Eeze to bibliotek do operowania urządzeniami poprzez udev z prostym i
45szybkim API. Działa bezpośrednio z libudev, bez pośrednich demonów,
46takich jak udisks, upower czy hal, aby zebrać informacje z urządzeń
47natychmiast, kiedy staną się znane w systemie. Może to służyć do
48okreś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
55Każde z tych zapytań może być wykonane przy użyciu jedynie pojedynczej
56funkcji eeze, jako że jedną z głównych idei biblioteki jest
57ograniczenie skomplikowania zarządzania urządzeniami.
58
1f22bc91 59%package devel
60Summary: Eeze header files
61Summary(pl.UTF-8): Pliki nagłówkowe Eeze
62Group: Development/Libraries
63Requires: %{name} = %{version}-%{release}
a786efc1
JB
64Requires: ecore-devel >= %{ecore_ver}
65Requires: udev-devel >= 148
1f22bc91 66
67%description devel
a786efc1 68Header files for Eeze.
1f22bc91 69
70%description devel -l pl.UTF-8
a786efc1 71Pliki nagłówkowe Eeze.
1f22bc91 72
73%package static
a786efc1
JB
74Summary: Static Eeze library
75Summary(pl.UTF-8): Statyczna biblioteka Eeze
1f22bc91 76Group: Development/Libraries
77Requires: %{name}-devel = %{version}-%{release}
78
79%description static
a786efc1 80Static Eeze library.
1f22bc91 81
82%description static -l pl.UTF-8
a786efc1 83Statyczna 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
100rm -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
108rm -rf $RPM_BUILD_ROOT
109
110%post -p /sbin/ldconfig
111%postun -p /sbin/ldconfig
112
113%files
114%defattr(644,root,root,755)
a786efc1
JB
115%doc AUTHORS COPYING README TODO
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
This page took 0.083478 seconds and 4 git commands to generate.