-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathf03gl.spec
73 lines (54 loc) · 1.81 KB
/
f03gl.spec
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
Summary: Fortran 2003 bindings for OpenGL
Name: f03gl
Version: 2.1
Release: 9
License: GPLv3
Group: System Environment/Libraries
URL: http://www-stone.ch.cam.ac.uk/pub/f03gl/index.xhtml
Source0: https://github.com/dcesari/f03gl/archive/refs/tags/%{version}-%{release}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gcc-gfortran, mesa-libGL-devel, mesa-libGLU-devel, freeglut-devel, libtool
%package devel
Group: Deelopment/Libraries
Summary: Static libraries and modules for f03gl.
%description
A Fortran 2003 interface to the OpenGL library,
along with the GLU and GLUT toolkits.
%description devel
A Fortran 2003 interface to the OpenGL library,
along with the GLU and GLUT toolkits, devel package.
%prep
%setup -q -n %{name}-%{version}-%{release}
%build
autoreconf -ifv
%configure --disable-examples --disable-static
make
%install
make DESTDIR=%{buildroot} install
mkdir -p ${RPM_BUILD_ROOT}%{_fmoddir}/GL
/bin/mv ${RPM_BUILD_ROOT}%{_includedir}/GL/*.mod \
${RPM_BUILD_ROOT}%{_fmoddir}/GL
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_libdir}/*.so.*
#doc COPYING README.md
%{_docdir}/%{name}-%{version}/*
%files devel
%{_fmoddir}/GL/*.mod
%{_libdir}/*.so*
%changelog
* Wed Feb 22 2017 dcesari <[email protected]> 2.1-4
- add dep on libtool ([email protected])
* Wed Feb 22 2017 Davide Cesari <[email protected]> 2.1-3
- tito update release ([email protected])
* Wed Feb 22 2017 Davide Cesari <[email protected]> 2.1-2
- update version by hand for tito build ([email protected])
- add autoreconf for git/tito build ([email protected])
* Wed Feb 22 2017 Davide Cesari <[email protected]>
- new package built with tito
* Fri Mar 11 2016 Davide Cesari <[email protected]> - 2.0-1
- New version with clear license
* Fri Sep 18 2009 root <[email protected]> - 1.0-1
- First rpm build