]>
Commit | Line | Data |
---|---|---|
774e5c30 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: Enlightenment Input Output Library | |
6 | Summary(pl.UTF-8): Enlightenment Input Output - biblioteka wejścia/wyjścia z projektu Enlightenment | |
7 | Name: eio | |
8 | Version: 0.1.0.65643 | |
9 | Release: 1 | |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries | |
12 | Source0: http://download.enlightenment.org/snapshots/LATEST/%{name}-%{version}.tar.bz2 | |
13 | # Source0-md5: 244d07702020c919a6f99b2b1856da9a | |
14 | URL: http://trac.enlightenment.org/e/wiki/Eio | |
15 | BuildRequires: eina-devel >= 1.0.0 | |
16 | BuildRequires: ecore-devel >= 1.0.0 | |
17 | BuildRequires: pkgconfig >= 1:0.22 | |
18 | Requires: eina >= 1.0.0 | |
19 | Requires: ecore >= 1.0.0 | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | This library is intended to provide non blocking I/O by using thread | |
24 | for all operation that may block. It depends only on eina and ecore | |
25 | right now. It should integrate all the features/functions of | |
26 | Ecore_File that could block. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Ta biblioteka na za zadanie zapewniać nieblokujące operacje we/wy | |
30 | poprzez użycie wątków dla wszystkich operacji, które mogę być | |
31 | blokujące. Na razie wymaga tylko bibliotek eina i ecore. Powinna | |
32 | zawierać wszystkie funkcje Ecore_File, które mogą być blokujące. | |
33 | ||
34 | %package devel | |
35 | Summary: Header files for Eio library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Eio | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | Requires: eina-devel >= 1.0.0 | |
40 | Requires: ecore-devel >= 1.0.0 | |
41 | ||
42 | %description devel | |
43 | Header files for Eio library. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe biblioteki Eio. | |
47 | ||
48 | %package static | |
49 | Summary: Static Eio library | |
50 | Summary(pl.UTF-8): Statyczna biblioteka Eio | |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static Eio library. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczna biblioteka Eio. | |
59 | ||
60 | %prep | |
61 | %setup -q | |
62 | ||
63 | %build | |
64 | %configure \ | |
65 | --disable-silent-rules \ | |
66 | %{!?with_static_libs:--disable-static} | |
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %post -p /sbin/ldconfig | |
79 | %postun -p /sbin/ldconfig | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | %doc AUTHORS README | |
84 | %attr(755,root,root) %{_libdir}/libeio-ver-pre-svn-09.so.*.*.* | |
85 | %attr(755,root,root) %ghost %{_libdir}/libeio-ver-pre-svn-09.so.0 | |
86 | ||
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %attr(755,root,root) %{_libdir}/libeio.so | |
90 | %{_libdir}/libeio.la | |
91 | %{_includedir}/eio-0 | |
92 | %{_pkgconfigdir}/eio.pc | |
93 | ||
94 | %if %{with static_libs} | |
95 | %files static | |
96 | %defattr(644,root,root,755) | |
97 | %{_libdir}/libeio.a | |
98 | %endif |