-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlsqrsolve.spec.in
50 lines (39 loc) · 1.11 KB
/
lsqrsolve.spec.in
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
# Note that this is NOT a relocatable package
# defaults for redhat
%define prefix /usr
%define sysconfdir /etc
%define release 1
Summary: solve large equations system using sparse matrix
Name: @PACKAGE@
Version: @VERSION@
Release: %release
Copyright: GPL
Group: Applications/Sciences
URL: http://guenievre.u-strasbg.fr/nightly/
Source: %{name}-%{version}.tar.gz
Packager: Marc Grunberg <marc@renass.u-strasbg.fr>
BuildRoot: /var/tmp/%{name}-%{version}-root
%description
solve large equations system using sparse matrix
%prep
%setup -q
ARGUMTS="$ARCH_FLAGS --prefix=%{prefix} --sysconfdir=%{sysconfdir} --datadir=%{prefix}/share --mandir=%{prefix}/share/man"
if [ ! -f configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $ARGUMTS
else
CFLAGS="$RPM_OPT_FLAGS" ./configure $ARGUMTS
fi
%build
#./configure $ARCH_FLAGS --prefix=%{prefix}
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
%config
%{prefix}/bin/lsqrsolve
###################################################################
%changelog