]> git.pld-linux.org Git - packages/fann.git/blob - fann.spec
Update to 2.2.0 (-static subpackage and python bindings are no longer available)
[packages/fann.git] / fann.spec
1 Summary:        A fast artificial neural network library
2 Summary(pl.UTF-8):      Szybka biblioteka do tworzenia sztucznych sieci neuronowych
3 Name:           fann
4 Version:        2.2.0
5 Release:        1
6 License:        LGPL
7 Group:          Libraries
8 Source0:        http://downloads.sourceforge.net/fann/FANN-%{version}-Source.tar.gz
9 # Source0-md5:  c9d6c8da5bb70276352a1718a668562c
10 Source1:        http://downloads.sourceforge.net/fann/%{name}_doc_complete_1.0.pdf
11 # Source1-md5:  8117a677afc79dfaa31de39ca84d82da
12 Patch0:         %{name}-link.patch
13 URL:            http://leenissen.dk/fann/
14 BuildRequires:  cmake >= 2.8
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Fast Artificial Neural Network (FANN) Library is written in ANSI C.
19 The library implements multilayer feedforward ANNs, up to 150 times
20 faster than other libraries. FANN supports execution in fixed point,
21 for fast execution on systems like the iPAQ.
22
23 %description -l pl.UTF-8
24 FANN (Fast Artificial Neural Network - szybkie sztuczne sieci
25 neuronowe) to biblioteka napisana w ANSI C, implementująca
26 wielowarstwowe sztuczne sieci neuronowe, do 150 razy szybsza od innych
27 bibliotek. FANN obsługuje operacje stałoprzecinkowe w celu szybkiego
28 działania na systemach typu iPAQ.
29
30 %package devel
31 Summary:        Development libraries for FANN
32 Summary(pl.UTF-8):      Pliki nagłówkowe FANN
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35
36 %description devel
37 This package is only needed if you intend to develop and/or compile
38 programs based on the FANN library.
39
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe FANN, potrzebne do tworzenia programów napisanych w
42 oparciu o bibliotekę FANN.
43
44 %package doc
45 Summary:        FANN documentation
46 Summary(pl.UTF-8):      Dokumentacja do FANN
47 Group:          Documentation
48
49 %description doc
50 Documentation for FANN.
51
52 %description doc -l pl.UTF-8
53 Dokumentacja do FANN.
54
55 %prep
56 %setup -q -n FANN-%{version}-Source
57 cp %{SOURCE1} .
58 %patch0 -p1
59
60 %build
61 %cmake .
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post   -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
78
79 %files
80 %defattr(644,root,root,755)
81 %doc README.txt datasets/*
82 %attr(755,root,root) %{_libdir}/libdoublefann.so.*.*.*
83 %attr(755,root,root) %ghost %{_libdir}/libdoublefann.so.2
84 %attr(755,root,root) %{_libdir}/libfann.so.*.*.*
85 %attr(755,root,root) %ghost %{_libdir}/libfann.so.2
86 %attr(755,root,root) %{_libdir}/libfixedfann.so.*.*.*
87 %attr(755,root,root) %ghost %{_libdir}/libfixedfann.so.2
88 %attr(755,root,root) %{_libdir}/libfloatfann.so.*.*.*
89 %attr(755,root,root) %ghost %{_libdir}/libfloatfann.so.2
90
91 %files devel
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libdoublefann.so
94 %attr(755,root,root) %{_libdir}/libfann.so
95 %attr(755,root,root) %{_libdir}/libfixedfann.so
96 %attr(755,root,root) %{_libdir}/libfloatfann.so
97 %{_includedir}/*.h
98 %{_pkgconfigdir}/fann.pc
99 %{_examplesdir}/%{name}-%{version}
100
101 %files doc
102 %defattr(644,root,root,755)
103 %doc fann_doc_complete_1.0.pdf
This page took 0.097476 seconds and 3 git commands to generate.