]>
Commit | Line | Data |
---|---|---|
2fb44219 KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
146ac757 | 5 | Summary: Library for speedy data storage, retrieval, and compression |
9dd89ee4 | 6 | Summary(pl.UTF-8): Biblioteka do szybkiego zapisywania, odtwarzania i kompresji danych |
146ac757 | 7 | Name: eet |
2e9463f3 | 8 | %define subver beta2 |
9 | Version: 1.4.0 | |
10 | Release: 0.%{subver}.1 | |
146ac757 | 11 | License: BSD |
12 | Group: Libraries | |
2e9463f3 | 13 | Source0: http://download.enlightenment.org/releases/%{name}-%{version}.%{subver}.tar.bz2 |
14 | # Source0-md5: ebf2a65bd46df797e8dd0256913d22b7 | |
00074f92 | 15 | URL: http://enlightenment.org/p.php?p=about/efl/eet |
98181c2d JB |
16 | BuildRequires: autoconf >= 2.52 |
17 | BuildRequires: automake >= 1.6 | |
0c57ecba JB |
18 | BuildRequires: eina-devel >= 1.0.0 |
19 | BuildRequires: gnutls-devel >= 1.7.6 | |
a6e34d2e | 20 | BuildRequires: libgcrypt-devel |
146ac757 | 21 | BuildRequires: libjpeg-devel |
22 | BuildRequires: libtool | |
0c57ecba JB |
23 | BuildRequires: pkgconfig >= 1:0.22 |
24 | BuildRequires: sed >= 4.0 | |
146ac757 | 25 | BuildRequires: zlib-devel |
0c57ecba | 26 | Requires: gnutls >= 1.7.6 |
146ac757 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | Eet is a tiny library designed to write an arbitary set of chunks of | |
31 | data to a file and optionally compress each chunk (very much like a | |
32 | zip file) and allow fast random-access reading of the file later on. | |
33 | It does not do zip as a zip itself has more complexity than is needed, | |
34 | and it was much simpler to implement this once here. | |
35 | ||
36 | It also can encode and decode data structures in memory, as well as | |
37 | image data for saving to eet files or sending across the network to | |
38 | other machines, or just writing to arbitary files on the system. All | |
39 | data is encoded in a platform independant way and can be written and | |
40 | read by any architecture. | |
41 | ||
347bfef3 JR |
42 | %description -l pl.UTF-8 |
43 | Eet to mała biblioteka zaprojektowana do zapisu dowolnego zbioru | |
44 | porcji danych do pliku i opcjonalnej kompresji każdej porcji (podobnie | |
45 | do pliku zip) oraz umożliwienia później szybkiego odczytu pliku ze | |
46 | swobodnym dostępem. Nie jest to zip, jako że sam zip jest bardziej | |
47 | złożony niż trzeba, a było dużo prościej zaimplementować to tak, jak | |
2760e594 JB |
48 | jest. |
49 | ||
347bfef3 JR |
50 | Biblioteka może także kodować i dekodować struktury danych w pamięci, |
51 | a także dane obrazów do zapisu do plików eet lub wysyłania po sieci na | |
52 | inne maszyny, lub po prostu zapisywania do dowolnych plików w | |
53 | systemie. Wszystkie dane są kodowane w sposób niezależny od platformy | |
54 | i mogą być zapisywane i odczytywane na dowolnej architekturze. | |
2760e594 | 55 | |
146ac757 | 56 | %package devel |
2760e594 | 57 | Summary: Header files for Eet library |
9dd89ee4 | 58 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Eet |
146ac757 | 59 | Group: Development/Libraries |
2760e594 | 60 | Requires: %{name} = %{version}-%{release} |
0c57ecba JB |
61 | Requires: eina-devel >= 1.0.0 |
62 | Requires: gnutls-devel >= 1.7.6 | |
63 | Requires: libgcrypt-devel | |
f6dec708 KK |
64 | Requires: libjpeg-devel |
65 | Requires: zlib-devel | |
146ac757 | 66 | |
67 | %description devel | |
2760e594 JB |
68 | Header files for Eet library. |
69 | ||
347bfef3 JR |
70 | %description devel -l pl.UTF-8 |
71 | Pliki nagłówkowe biblioteki Eet. | |
146ac757 | 72 | |
73 | %package static | |
2760e594 | 74 | Summary: Static Eet library |
9dd89ee4 | 75 | Summary(pl.UTF-8): Statyczna biblioteka Eet |
146ac757 | 76 | Group: Development/Libraries |
2760e594 | 77 | Requires: %{name}-devel = %{version}-%{release} |
146ac757 | 78 | |
79 | %description static | |
2760e594 JB |
80 | Static Eet library. |
81 | ||
347bfef3 | 82 | %description static -l pl.UTF-8 |
2760e594 | 83 | Statyczna biblioteka Eet. |
146ac757 | 84 | |
85 | %prep | |
2e9463f3 | 86 | %setup -q -n %{name}-%{version}.%{subver} |
146ac757 | 87 | |
0c57ecba JB |
88 | %{__sed} -i -e 's/eina-0/eina/' configure.ac |
89 | ||
146ac757 | 90 | %build |
f2726464 | 91 | %{__libtoolize} |
a6e34d2e | 92 | %{__aclocal} -I m4 |
f2726464 | 93 | %{__autoconf} |
94 | %{__autoheader} | |
95 | %{__automake} | |
2fb44219 | 96 | %configure \ |
0c57ecba | 97 | --disable-silent-rules \ |
2fb44219 | 98 | %{!?with_static_libs:--disable-static} |
0c57ecba | 99 | %{__make} |
146ac757 | 100 | |
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
2760e594 | 103 | |
146ac757 | 104 | %{__make} install \ |
105 | DESTDIR=$RPM_BUILD_ROOT | |
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) | |
2e9463f3 | 115 | %doc AUTHORS COPYING NEWS README |
c3e75f65 | 116 | %attr(755,root,root) %{_bindir}/eet |
4a540096 JB |
117 | %attr(755,root,root) %{_libdir}/libeet.so.*.*.* |
118 | %attr(755,root,root) %ghost %{_libdir}/libeet.so.1 | |
146ac757 | 119 | |
120 | %files devel | |
121 | %defattr(644,root,root,755) | |
146ac757 | 122 | %attr(755,root,root) %{_libdir}/libeet.so |
123 | %{_libdir}/libeet.la | |
124 | %{_pkgconfigdir}/eet.pc | |
2e9463f3 | 125 | %{_includedir}/eet-1/Eet.h |
146ac757 | 126 | |
2fb44219 | 127 | %if %{with static_libs} |
146ac757 | 128 | %files static |
129 | %defattr(644,root,root,755) | |
130 | %{_libdir}/libeet.a | |
2fb44219 | 131 | %endif |