1 Summary: A C++ Library of Genetic Algorithm Components
2 Summary(pl): Biblioteka C++ funkcji do algorytmów genetycznych
6 License: MIT (base library), GPL (GNU portions in examples)
8 Source0: http://lancet.mit.edu/ga/dist/%{name}%{version}.tgz
9 # Source0-md5: 5a19b7692c3c18741cc0a120d36de165
10 URL: http://lancet.mit.edu/ga/
11 BuildRequires: libstdc++-devel
12 BuildRequires: libtool >= 2:1.4d
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 GAlib contains a set of C++ genetic algorithm objects. The library
17 includes tools for using genetic algorithms to do optimization in any
18 C++ program using any representation and genetic operators. The
19 documentation includes an extensive overview of how to implement a
20 genetic algorithm as well as examples illustrating customizations to
24 GAlib zawiera zbiór obiektów C++ do algorytmów genetycznych.
25 Biblioteka zawiera narzêdzia do u¿ywania algorytmów genetycznych do
26 wykonywania optymalizacji w dowolnym programie C++ przy u¿yciu
27 dowolnej reprezentacji i operatorów genetycznych. Dokumentacja
28 zawiera obszerny opis sposobu implementacji algorytmu genetycznego, a
29 tak¿e przyk³ady ilustruj±ce dostosowanie klas GAliba do swoich
33 Summary: Header files for GAlib
34 Summary(pl): Pliki nag³ówkowe biblioteki GAlib
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
37 Requires: libstdc++-devel
40 This package contains header files for GAlib.
42 %description devel -l pl
43 Ten pakiet zawiera pliki nag³ówkowe biblioteki GAlib.
46 Summary: Static version of GAlib
47 Summary(pl): Statyczna wersja biblioteki GAlib
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
52 Static version of GAlib.
54 %description static -l pl
55 Statyczna wersja biblioteki GAlib.
58 %setup -q -n %{name}%{version}
62 CXX="libtool --mode=compile --tag CXX %{__cxx}" \
63 CXXFLAGS="%{rpmcflags}" \
65 AR="libtool --mode=link %{__cxx} %{rpmldflags} -rpath %{_libdir} -o libga.la \$(OBJS:.o=.lo) #"
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT%{_libdir}
71 %{__make} install -C ga \
73 INSTALL="libtool --mode=install install" \
74 DESTDIR=$RPM_BUILD_ROOT%{_prefix}
77 rm -rf $RPM_BUILD_ROOT
79 %post -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
83 %defattr(644,root,root,755)
84 %doc README RELEASE-NOTES LICENSE
85 %attr(755,root,root) %{_libdir}/libga.so.*.*.*
88 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_libdir}/libga.so
95 %defattr(644,root,root,755)