]>
Commit | Line | Data |
---|---|---|
948dc92c | 1 | Summary: Flux is a survival-through-structure library |
28f685e8 | 2 | Summary(pl.UTF-8): Flux - biblioteka struktur danych i operacji na nich |
948dc92c | 3 | Name: flux |
a73f5e4c | 4 | Version: 0.4.1 |
caf1574a | 5 | Release: 6 |
fbf38d7c | 6 | License: GPL |
948dc92c | 7 | Group: Libraries |
caf1574a | 8 | Source0: ftp://ftp.copyleft.no/projects/fluxlib/%{name}-%{version}.tar.gz |
fe389089 | 9 | # Source0-md5: 959cf209acfed3af40baf6a3bcd9c26b |
f7e5fed7 | 10 | Patch0: %{name}-gethostbyname_is_in_libc_aka_no_libnsl.patch |
5a71deb0 | 11 | Patch1: %{name}-acinclude_fix.patch |
12 | Patch2: %{name}-am15.patch | |
6ff6d10c | 13 | Patch3: %{name}-AC_C_BIGENDIAN.patch |
caf1574a JB |
14 | Patch4: %{name}-gcc33.patch |
15 | Patch5: %{name}-ltfix.patch | |
16 | Patch6: %{name}-errno.patch | |
17 | URL: http://www.fluxlib.org/ | |
fbf38d7c | 18 | BuildRequires: autoconf |
5a71deb0 | 19 | BuildRequires: automake |
20 | BuildRequires: libtool | |
51a39181 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
948dc92c | 22 | |
23 | %description | |
e2e87d8f | 24 | Flux is a survival-through-structure library, whose goal is to reduce |
25 | the complexity of C programming. To this end, it supplies high-level | |
26 | functions for manipulating data and communication with specialized | |
27 | handles, masking typically tedious programming tasks. Common | |
28 | instruction blocks are wrapped in higher-level calls with intuitive | |
29 | names. In short: Do it once, do it right, then forget about it. | |
948dc92c | 30 | |
31 | Abstracting things this way involves speed compromises. In Flux, these | |
32 | should be minimal, and sometimes, when superiour algorithms are easily | |
33 | accessible, efficiency is actually gained. | |
34 | ||
35 | Another important goal is bridging gaps between typical tasks - like | |
e2e87d8f | 36 | parsing, storage, retrieval, buffering and transfer, data structures - |
37 | like generic tree structures, generic network structures, XML and | |
38 | presentation formats, and protocols - like FluxComm, Unix protocols | |
39 | and IRC. (Note: IRC protocols are hairy and ill-defined. Unification | |
40 | and masking is particularly useful here). | |
948dc92c | 41 | |
e51e5cad JR |
42 | %description -l pl.UTF-8 |
43 | Flux jest biblioteką typu "survival-through-structure", której celem | |
44 | jest redukcja złożoności programowania w C. W tym celu zaprojektowano | |
45 | funkcje wysokiego poziomu służące manipulacji danymi i komunikacji z | |
46 | wyspecjalizowanymi uchwytami, ukrywając nużące zazwyczaj zadania | |
47 | programistyczne. Popularne bloki instrukcji są zawinięte w wywołaniach | |
48 | wyższego poziomu o intuicyjnych nazwach. Mówiąc krótko: Zrób to raz, | |
49 | zrób to dobrze i zapomnij o tym. Takie wyabstrahowywanie wymaga wielu | |
50 | kompromisów. We Fluksie powinny być one ograniczone do minimum, czasem | |
51 | zaś, kiedy łatwo jest użyć lepszych algorytmów, zyskuje się na | |
52 | wydajności. Inną ważną rzeczą jest stworzenie pomostu między typowymi | |
fbf38d7c JB |
53 | zadaniami (parsowanie, przechowywanie, wydobywanie, buforowanie i |
54 | transfer), strukturami danych (generyczne struktury drzew, generyczne | |
e51e5cad JR |
55 | struktury sieci XML i formaty prezentacyjne) a protokołami (FluxComm, |
56 | protokoły uniksowe i IRC. Uwaga: protokoły ircowe są niezgrabne i źle | |
57 | zdefiniowane. Szczególnie w tym wypadku unifikacja i maskowanie | |
58 | ukazują swoja wartość). | |
7467fed3 | 59 | |
948dc92c | 60 | %package devel |
61 | Summary: Header files and development documentation for flux | |
28f685e8 | 62 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do flux |
948dc92c | 63 | Group: Development/Libraries |
caf1574a | 64 | Requires: %{name} = %{version}-%{release} |
948dc92c | 65 | |
66 | %description devel | |
67 | Header files and development documentation for flux. | |
68 | ||
e51e5cad JR |
69 | %description devel -l pl.UTF-8 |
70 | Pliki nagłówkowe i dokumentacja do biblioteki flux. | |
948dc92c | 71 | |
72 | %package static | |
73 | Summary: Static flux libraries | |
28f685e8 | 74 | Summary(pl.UTF-8): Biblioteki statyczne flux |
948dc92c | 75 | Group: Development/Libraries |
caf1574a | 76 | Requires: %{name}-devel = %{version}-%{release} |
948dc92c | 77 | |
78 | %description static | |
79 | Static flux libraries. | |
80 | ||
e51e5cad | 81 | %description static -l pl.UTF-8 |
948dc92c | 82 | Biblioteki statyczne flux. |
83 | ||
84 | %prep | |
85 | %setup -q | |
5a71deb0 | 86 | %patch0 -p1 |
87 | %patch1 -p1 | |
88 | %patch2 -p1 | |
6ff6d10c | 89 | %patch3 -p1 |
caf1574a JB |
90 | %patch4 -p1 |
91 | %patch5 -p1 | |
92 | %patch6 -p1 | |
948dc92c | 93 | |
94 | %build | |
45afc30d | 95 | %{__libtoolize} |
cbd6f610 | 96 | %{__aclocal} |
a086df22 | 97 | %{__autoconf} |
98 | %{__automake} | |
5a71deb0 | 99 | %configure |
100 | echo n | %{__make} | |
948dc92c | 101 | |
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
7cb46ca6 PG |
105 | %{__make} install \ |
106 | DESTDIR=$RPM_BUILD_ROOT | |
948dc92c | 107 | |
948dc92c | 108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %post -p /sbin/ldconfig | |
112 | %postun -p /sbin/ldconfig | |
113 | ||
114 | %files | |
115 | %defattr(644,root,root,755) | |
116 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
117 | ||
118 | %files devel | |
119 | %defattr(644,root,root,755) | |
218f3fb3 | 120 | %doc AUTHORS README NEWS TODO doc/* |
948dc92c | 121 | %attr(755,root,root) %{_libdir}/lib*.so |
3112292d | 122 | %{_libdir}/lib*.la |
948dc92c | 123 | %{_includedir}/* |
124 | ||
125 | %files static | |
e2e87d8f | 126 | %defattr(644,root,root,755) |
127 | %{_libdir}/lib*.a |