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