diff --git a/Makefile b/Makefile index 0ada5b5..8321796 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ HELP=help/*.html # Use Gnu compiler #CC= gcc # Use c99 to compile according to newer ISO C standards (IEEE Std 1003.1-2001) -CC= gcc -std=c99 -pedantic -D_XOPEN_SOURCE=600 -Wall +CC= gcc -std=c99 -pedantic -D_XOPEN_SOURCE=600 -Wall -fcommon #AUTLIBS= -lsundials_cvode -lX11 -lm #These are the 32bit compat libraries. #AUTLIBS= -lf2c -lsundials_cvode -lX11 -lm diff --git a/xppaut.spec b/xppaut.spec new file mode 100644 index 0000000..e24f396 --- /dev/null +++ b/xppaut.spec @@ -0,0 +1,35 @@ +Name: xppaut +Version: 8.0 +Release: 1%{?dist} +Summary: X-windows Phase Plane Plus Auto + +Group: Applications/Engineering +License: GPL +URL: http://www.math.pitt.edu/~bard/xpp/xpp.html +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Source0: %{name}-%{version}.tar.gz +BuildRequires: gcc libX11-devel + +%define debug_package %{nil} + +%description +XPPAUT is a tool for solving differential equations, difference equations, delay equations, +functional equations, boundary value problems, and stochastic equations. + +%prep +%setup -q +%build +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +rm -f ode/*.so +make BINDIR=%{_bindir} MANDIR=%{_mandir}/man1 DESTDIR=%{buildroot} install +%clean +rm -rf %{buildroot} +%files +%defattr(-,root,root,-) +/usr/bin/xppaut +%doc %attr(0444,root,root) /usr/share/man/man1/xppaut.1.gz +%doc %attr(0444,root,root) /usr/share/doc/xppaut/* +%changelog