]>
Commit | Line | Data |
---|---|---|
8bb678ee | 1 | Summary: A C++ library of genetic algorithm components |
35c32385 | 2 | Summary(pl.UTF-8): Biblioteka C++ funkcji do algorytmów genetycznych |
241a8a71 | 3 | Name: galib |
3ca613a9 | 4 | Version: 247 |
575912ca | 5 | Release: 1 |
180ea87b | 6 | License: MIT (base library), GPL (GNU portions in examples) |
241a8a71 | 7 | Group: Libraries |
c25d0ac1 | 8 | Source0: http://lancet.mit.edu/ga/dist/%{name}%{version}.tgz |
3ca613a9 | 9 | # Source0-md5: 2b6a28fd06d4c7c4d0bb39c92b2b376c |
575912ca | 10 | Patch0: %{name}246_gcc4.patch |
241a8a71 | 11 | URL: http://lancet.mit.edu/ga/ |
180ea87b JB |
12 | BuildRequires: libstdc++-devel |
13 | BuildRequires: libtool >= 2:1.4d | |
241a8a71 | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
180ea87b JB |
17 | GAlib contains a set of C++ genetic algorithm objects. The library |
18 | includes tools for using genetic algorithms to do optimization in any | |
19 | C++ program using any representation and genetic operators. The | |
20 | documentation includes an extensive overview of how to implement a | |
21 | genetic algorithm as well as examples illustrating customizations to | |
22 | the GAlib classes. | |
23 | ||
fdd94847 JR |
24 | %description -l pl.UTF-8 |
25 | GAlib zawiera zbiór obiektów C++ do algorytmów genetycznych. | |
26 | Biblioteka zawiera narzędzia do używania algorytmów genetycznych do | |
27 | wykonywania optymalizacji w dowolnym programie C++ przy użyciu | |
28 | dowolnej reprezentacji i operatorów genetycznych. Dokumentacja | |
180ea87b | 29 | zawiera obszerny opis sposobu implementacji algorytmu genetycznego, a |
fdd94847 | 30 | także przykłady ilustrujące dostosowanie klas GAliba do swoich |
180ea87b | 31 | potrzeb. |
241a8a71 | 32 | |
33 | %package devel | |
180ea87b | 34 | Summary: Header files for GAlib |
35c32385 | 35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GAlib |
241a8a71 | 36 | Group: Development/Libraries |
180ea87b JB |
37 | Requires: %{name} = %{version}-%{release} |
38 | Requires: libstdc++-devel | |
39 | ||
241a8a71 | 40 | %description devel |
180ea87b JB |
41 | This package contains header files for GAlib. |
42 | ||
fdd94847 JR |
43 | %description devel -l pl.UTF-8 |
44 | Ten pakiet zawiera pliki nagłówkowe biblioteki GAlib. | |
180ea87b JB |
45 | |
46 | %package static | |
47 | Summary: Static version of GAlib | |
35c32385 | 48 | Summary(pl.UTF-8): Statyczna wersja biblioteki GAlib |
180ea87b JB |
49 | Group: Development/Libraries |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
53 | Static version of GAlib. | |
54 | ||
fdd94847 | 55 | %description static -l pl.UTF-8 |
180ea87b | 56 | Statyczna wersja biblioteki GAlib. |
241a8a71 | 57 | |
58 | %prep | |
c25d0ac1 | 59 | %setup -q -n %{name}%{version} |
d82c9c62 | 60 | %patch0 -p1 |
241a8a71 | 61 | |
62 | %build | |
180ea87b JB |
63 | %{__make} -C ga \ |
64 | CXX="libtool --mode=compile --tag CXX %{__cxx}" \ | |
65 | CXXFLAGS="%{rpmcflags}" \ | |
66 | LIB="libga.la" \ | |
67 | AR="libtool --mode=link %{__cxx} %{rpmldflags} -rpath %{_libdir} -o libga.la \$(OBJS:.o=.lo) #" | |
241a8a71 | 68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
180ea87b | 71 | install -d $RPM_BUILD_ROOT%{_libdir} |
241a8a71 | 72 | |
180ea87b JB |
73 | %{__make} install -C ga \ |
74 | LIB="libga.la" \ | |
75 | INSTALL="libtool --mode=install install" \ | |
3ca613a9 | 76 | DESTDIR=$RPM_BUILD_ROOT%{_prefix} \ |
77 | LIB_DEST_DIR=$RPM_BUILD_ROOT%{_libdir} | |
241a8a71 | 78 | |
79 | %clean | |
180ea87b | 80 | rm -rf $RPM_BUILD_ROOT |
241a8a71 | 81 | |
180ea87b JB |
82 | %post -p /sbin/ldconfig |
83 | %postun -p /sbin/ldconfig | |
241a8a71 | 84 | |
85 | %files | |
86 | %defattr(644,root,root,755) | |
87 | %doc README RELEASE-NOTES LICENSE | |
180ea87b | 88 | %attr(755,root,root) %{_libdir}/libga.so.*.*.* |
241a8a71 | 89 | |
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
92 | %doc doc/* | |
180ea87b JB |
93 | %attr(755,root,root) %{_libdir}/libga.so |
94 | %{_libdir}/libga.la | |
95 | %{_includedir}/ga | |
96 | ||
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libga.a |