]> git.pld-linux.org Git - packages/galib.git/blame - galib.spec
- up to 247
[packages/galib.git] / galib.spec
CommitLineData
8bb678ee 1Summary: A C++ library of genetic algorithm components
35c32385 2Summary(pl.UTF-8): Biblioteka C++ funkcji do algorytmów genetycznych
241a8a71 3Name: galib
3ca613a9 4Version: 247
575912ca 5Release: 1
180ea87b 6License: MIT (base library), GPL (GNU portions in examples)
241a8a71 7Group: Libraries
c25d0ac1 8Source0: http://lancet.mit.edu/ga/dist/%{name}%{version}.tgz
3ca613a9 9# Source0-md5: 2b6a28fd06d4c7c4d0bb39c92b2b376c
575912ca 10Patch0: %{name}246_gcc4.patch
241a8a71 11URL: http://lancet.mit.edu/ga/
180ea87b
JB
12BuildRequires: libstdc++-devel
13BuildRequires: libtool >= 2:1.4d
241a8a71 14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
180ea87b
JB
17GAlib contains a set of C++ genetic algorithm objects. The library
18includes tools for using genetic algorithms to do optimization in any
19C++ program using any representation and genetic operators. The
20documentation includes an extensive overview of how to implement a
21genetic algorithm as well as examples illustrating customizations to
22the GAlib classes.
23
fdd94847
JR
24%description -l pl.UTF-8
25GAlib zawiera zbiór obiektów C++ do algorytmów genetycznych.
26Biblioteka zawiera narzędzia do używania algorytmów genetycznych do
27wykonywania optymalizacji w dowolnym programie C++ przy użyciu
28dowolnej reprezentacji i operatorów genetycznych. Dokumentacja
180ea87b 29zawiera obszerny opis sposobu implementacji algorytmu genetycznego, a
fdd94847 30także przykłady ilustrujące dostosowanie klas GAliba do swoich
180ea87b 31potrzeb.
241a8a71 32
33%package devel
180ea87b 34Summary: Header files for GAlib
35c32385 35Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GAlib
241a8a71 36Group: Development/Libraries
180ea87b
JB
37Requires: %{name} = %{version}-%{release}
38Requires: libstdc++-devel
39
241a8a71 40%description devel
180ea87b
JB
41This package contains header files for GAlib.
42
fdd94847
JR
43%description devel -l pl.UTF-8
44Ten pakiet zawiera pliki nagłówkowe biblioteki GAlib.
180ea87b
JB
45
46%package static
47Summary: Static version of GAlib
35c32385 48Summary(pl.UTF-8): Statyczna wersja biblioteki GAlib
180ea87b
JB
49Group: Development/Libraries
50Requires: %{name}-devel = %{version}-%{release}
51
52%description static
53Static version of GAlib.
54
fdd94847 55%description static -l pl.UTF-8
180ea87b 56Statyczna 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
70rm -rf $RPM_BUILD_ROOT
180ea87b 71install -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 80rm -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
This page took 0.066989 seconds and 4 git commands to generate.