-
Notifications
You must be signed in to change notification settings - Fork 23
/
fgsl.spec.in
94 lines (61 loc) · 1.78 KB
/
fgsl.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Name: fgsl
Version: @VERSION@
Release: 1%{?dist}
Summary: Fortran 2003 bindings for the GNU Scientific Library
Group: Applications/Engineering and Scientific
License: GPL
URL: http://www.lrz.de/services/software/mathematik/gsl/fortran/index.html
Source0: fgsl-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: gsl-devel >= @GSL_VERSION@ gcc gcc-gfortran glibc-headers glibc-devel
Requires: gsl >= @GSL_VERSION@ libgfortran
%description
Fortran bindings for the GNU Scientific Library
%package devel
Summary: Development files for FGSL
Requires: gsl-devel >= @GSL_VERSION@ pkgconfig fgsl
%description devel
Development files for FGSL
%package doc
Summary: Documentation for FGSL
Requires: fgsl-devel
%description doc
Documentation and examples for FGSL
%prep
%setup -q
%build
%configure FC=gfortran CC=gcc
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
libtool --finish $RPM_BUILD_ROOT%{_libdir}
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libfgsl.so.*
%files devel
%defattr(-,root,root,-)
%{_libdir}/libfgsl.so
%{_libdir}/libfgsl.a
%{_includedir}/fgsl/fgsl.mod
%{_libdir}/pkgconfig/fgsl.pc
%files doc
%defattr(-,root,root,-)
%{_datadir}/doc/fgsl/*
%{_datadir}/examples/fgsl/*
%changelog
* Sat Mar 23 2024 R Bader
- Remove specific 2003 standard level ref
* Tue Feb 11 2014 Tom Schoonjans
- added doc package
* Fri Nov 4 2011 Tom Schoonjans
- gsl version requirement
* Mon Apr 18 2011 Tom Schoonjans
- File creation