File: fityk.spec

package info (click to toggle)
fityk 0.4.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,472 kB
  • ctags: 2,617
  • sloc: cpp: 19,705; sh: 5,965; xml: 2,325; yacc: 356; makefile: 183; lex: 178
file content (55 lines) | stat: -rw-r--r-- 1,782 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# this .spec was not tested with last fityk versions 
# writing good spec is on my TODO list, but with low priority 
Summary:        A program for fitting and analyzing data.
Name:           fityk
Version:        0.4.4
Release:        1
Group:          Applications/Engineering
Copyright:      GPL
Vendor:         Marcin Wojdyr 
Source:         http://fityk.sf.net
BuildRoot:      /tmp/%{name}-%{version}-root
Prefix: /usr

#%define                _prefix         /usr
#%define                _sysconfdir     /etc
%define                 _datadir        %{_prefix}/share/fityk
#%define                _bindir         %{_prefix}/bin

%description
Fityk is nonlinear curve-fitting and data analysis software. It allows data
visualization, separation of overlapping peaks, and least squares fitting using
standard Levenberg-Marquardt algorithm, a genetic algorithm, or Nelder-Mead
simplex method. It only knows about common bell-shaped functions (Gaussian,
Loretzian, Pearson 7, Voigt, Pseudo-Voigt) and polynomials, but more
sophisticated formulae can be easily added if necessary. It also enables
background substracting, data calibration and task automation with a simple
script language. It is being developed to analyze powder diffraction patterns,
but it can be used to fit analytical functions to any kind of data. 


%prep
%setup -q

%build
export LDFLAGS="-s"
# export CXX="c++2"
# wx library is often not installed or too old. Link statically with it.
%configure --disable-shared-wx 
make 

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall 

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO 
# *.xml *.xsl *.html?
%attr(755,root,root) %{_bindir}/fityk 
%attr(755,root,root) %{_bindir}/cfityk 
%{_datadir}