1 Summary: A C++ library of genetic algorithm components
2 Summary(pl): Biblioteka C++ funkcji do algorytmów genetycznych
7 License: MIT (base library), GPL (GNU portions in examples)
9 Source0: http://lancet.mit.edu/ga/dist/%{name}%{version}.tgz
10 Patch0: %{name}%{version}_gcc4.patch
11 # Source0-md5: e61efce22161907449b07f8472eb7c7c
12 URL: http://lancet.mit.edu/ga/
13 BuildRequires: libstdc++-devel
14 BuildRequires: libtool >= 2:1.4d
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 GAlib contains a set of C++ genetic algorithm objects. The library
19 includes tools for using genetic algorithms to do optimization in any
20 C++ program using any representation and genetic operators. The
21 documentation includes an extensive overview of how to implement a
22 genetic algorithm as well as examples illustrating customizations to
26 GAlib zawiera zbiór obiektów C++ do algorytmów genetycznych.
27 Biblioteka zawiera narzêdzia do u¿ywania algorytmów genetycznych do
28 wykonywania optymalizacji w dowolnym programie C++ przy u¿yciu
29 dowolnej reprezentacji i operatorów genetycznych. Dokumentacja
30 zawiera obszerny opis sposobu implementacji algorytmu genetycznego, a
31 tak¿e przyk³ady ilustruj±ce dostosowanie klas GAliba do swoich
35 Summary: Header files for GAlib
36 Summary(pl): Pliki nag³ówkowe biblioteki GAlib
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
39 Requires: libstdc++-devel
42 This package contains header files for GAlib.
44 %description devel -l pl
45 Ten pakiet zawiera pliki nag³ówkowe biblioteki GAlib.
48 Summary: Static version of GAlib
49 Summary(pl): Statyczna wersja biblioteki GAlib
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
54 Static version of GAlib.
56 %description static -l pl
57 Statyczna wersja biblioteki GAlib.
60 %setup -q -n %{name}%{version}
65 CXX="libtool --mode=compile --tag CXX %{__cxx}" \
66 CXXFLAGS="%{rpmcflags}" \
68 AR="libtool --mode=link %{__cxx} %{rpmldflags} -rpath %{_libdir} -o libga.la \$(OBJS:.o=.lo) #"
71 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT%{_libdir}
74 %{__make} install -C ga \
76 INSTALL="libtool --mode=install install" \
77 DESTDIR=$RPM_BUILD_ROOT%{_prefix}
80 rm -rf $RPM_BUILD_ROOT
82 %post -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
86 %defattr(644,root,root,755)
87 %doc README RELEASE-NOTES LICENSE
88 %attr(755,root,root) %{_libdir}/libga.so.*.*.*
91 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libga.so
98 %defattr(644,root,root,755)