diff --git a/.cvsignore b/.cvsignore index e69de29..75912aa 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +grace-5.1.18.tar.gz diff --git a/LICENSE.cephes b/LICENSE.cephes new file mode 100644 index 0000000..c018993 --- /dev/null +++ b/LICENSE.cephes @@ -0,0 +1,4 @@ + + This software is derived from the Cephes Math Library. It is + incorporated herein, and licensed in accordance with the Gnu + General Public License, Version 2, by permission of the author. diff --git a/cephes-license.email b/cephes-license.email new file mode 100644 index 0000000..c9db81f --- /dev/null +++ b/cephes-license.email @@ -0,0 +1,47 @@ +Copyright for the cephes library (details): + + This email from Steve Moshier, the copyright owner of cephes, to Helen + Faulkner (Debian maintainer of labplot), and other interested parties + (labplot and grace authors, grace maintainer and labplot sponsor), confirms + that we may release labplot with cephes licensed under the GPL. + + + -------- Original Message -------- + Subject: Re: licensing of cephes + Date: Sun, 2 Jan 2005 21:48:02 -0500 (EST) + From: Steve Moshier + To: Helen Faulkner + CC: twerner@debian.org, Ben Burton , evgeny@stambulchik.net, + Stefan Gerlach + References: <41D14354.4040506@yahoo.co.uk> + + <41D17BE3.3020708@yahoo.co.uk> + + <41D1FB8D.6030002@yahoo.co.uk> + + <41D2D8EF.9010702@yahoo.co.uk> + + <41D41B2E.80508@yahoo.co.uk> + + + + On Thu, 30 Dec 2004, Helen Faulkner wrote: + + > http://www.debian.org/social_contract#guidelines + + This is fine with me. To acknowedge your terms explicily, + how about augmenting the permission to read something like + the following -- + + This software is derived from the Cephes Math Library. It is + incorporated herein, and licensed in accordance with DFSG, + by permission of the author. + + + If you are trying to get me to suggest a specific form for your + license, then from looking at Debian programs such as dpkg it seems to + me that you would find the GPL to be appropriate and the permission + statement could reference one of the GPL documents instead of DFSG. + Alternatively, the packages you have been talking about distributing + with Debian presumably come with some sort of licenses and it would + make sense to propose those licenses. diff --git a/grace-gracerc-no_auxiliary.diff b/grace-gracerc-no_auxiliary.diff new file mode 100644 index 0000000..cfa4ea9 --- /dev/null +++ b/grace-gracerc-no_auxiliary.diff @@ -0,0 +1,11 @@ +--- gracerc.old 2005-09-03 20:18:51.000000000 +0200 ++++ gracerc 2005-09-03 20:19:04.000000000 +0200 +@@ -7,7 +7,7 @@ + DEFINE IFILTER "bin/grconvert %s -" MAGIC "00000031" + # + # This one is for automatic import of Origin-4 fit description files +-DEFINE IFILTER "auxiliary/fdf2fit %s -" PATTERN "*.fdf" ++DEFINE IFILTER "bin/fdf2fit %s -" PATTERN "*.fdf" + # + # Save disk space by keeping files gzip'ed + DEFINE IFILTER "gzip -dc %s" PATTERN "*.gz" diff --git a/grace.csh b/grace.csh new file mode 100644 index 0000000..6d7d778 --- /dev/null +++ b/grace.csh @@ -0,0 +1,2 @@ +#!/bin/tcsh +setenv GRACE_HOME "/usr/share/grace" diff --git a/grace.desktop b/grace.desktop new file mode 100644 index 0000000..4ea92cf --- /dev/null +++ b/grace.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Grace +Comment=Numerical Data Processing and Visualization Tool +Exec=/usr/bin/xmgrace +Icon=grace.png +Terminal=false +Type=Application +Categories=Application;Graphics; diff --git a/grace.png b/grace.png new file mode 100644 index 0000000..cefe64f Binary files /dev/null and b/grace.png differ diff --git a/grace.sh b/grace.sh new file mode 100644 index 0000000..579e4b4 --- /dev/null +++ b/grace.sh @@ -0,0 +1,2 @@ +#!/bin/bash +export GRACE_HOME="/usr/share/grace" diff --git a/grace.spec b/grace.spec new file mode 100644 index 0000000..01573c9 --- /dev/null +++ b/grace.spec @@ -0,0 +1,192 @@ +Name: grace +Version: 5.1.18 +Release: 7%{?dist} +Summary: Numerical Data Processing and Visualization Tool (grace) + +License: GPL +# Xbae is BSD and cephes is LGPL, see also Source5 and Source6 +URL: http://plasma-gate.weizmann.ac.il/Grace/ +Source0: ftp://plasma-gate.weizmann.ac.il/pub/grace/src/grace5/%{name}-%{version}.tar.gz +Source1: %{name}.desktop +Source2: %{name}.png +Source3: %{name}.sh +Source4: %{name}.csh +Source5: cephes-license.email +Source6: LICENSE.cephes +Patch: %{name}-gracerc-no_auxiliary.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Group: Applications/Engineering + +BuildRequires: libjpeg-devel, libpng-devel, netcdf-devel +BuildRequires: zlib-devel, xorg-x11-devel, fftw-devel, t1lib-devel +BuildRequires: openmotif-devel, gcc-gfortran +BuildRequires: desktop-file-utils, font-utils +Requires: nedit +Requires(post): chkfontpath +Requires(postun): chkfontpath + +%description +Grace is a Motif application for two-dimensional data visualization. +Grace can transform the data using free equations, FFT, cross- and +auto-correlation, differences, integrals, histograms, and much more. The +generated figures are of high quality. Grace is a very convenient tool +for data inspection, data transformation, and and for making figures for +publications. + + +%package devel +Summary: Files needed for grace development +Group: Development/Libraries +License: LGPL +Requires: %{name} = %{version}-%{release} + +%description devel +Install these files if you need to compile software that requires grace. + + +%prep +%setup -q +%patch + +%build +cp %{SOURCE5} %{SOURCE6} . +%configure \ + --enable-editres \ + --with-editor=nedit \ + --with-printcmd="lpr" \ + --enable-grace-home=%{_datadir}/%{name} \ + --disable-pdfdrv \ + --with-x \ + --with-f77=gfortran \ + --with-extra-incpath=%{_includedir}/netcdf-3 \ + --with-extra-ldpath=%{_libdir}/netcdf-3 + +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} + +cp Xbae/LICENSE LICENSE.Xbae +rm -f doc/*.1 + +mkdir -pm 755 \ + %{buildroot}%{_bindir} \ + %{buildroot}%{_includedir} \ + %{buildroot}%{_libdir} \ + %{buildroot}%{_datadir}/pixmaps \ + %{buildroot}%{_datadir}/applications \ + %{buildroot}%{_mandir}/man1 \ + %{buildroot}%{_sysconfdir}/profile.d \ + %{buildroot}%{_sysconfdir}/%{name} +## +# Let's have some sanity +# +pushd %{buildroot}%{_datadir}/%{name} +install -pm 755 bin/* %{buildroot}%{_bindir}/ +rm -rf bin +ln -s %{_bindir} bin +install -pm 755 lib/* %{buildroot}%{_libdir}/ +rm -rf lib +ln -s %{_libdir} lib +install -pm 644 include/* %{buildroot}%{_includedir}/ +rm -rf include +ln -s %{_includedir} include +install -pm 644 doc/*.1 %{buildroot}%{_mandir}/man1/ +# doc and example directories are removed from GRACE_HOME and put in %doc +rm -rf doc +rm -rf examples +# the convcal source file shouldn't appear in %doc, it is removed here +rm -f auxiliary/convcal.c +# move config files to %{_sysconfdir} and do symlinks +for conf in gracerc templates gracerc.user; do + mv $conf %{buildroot}%{_sysconfdir}/%{name} + ln -s %{_sysconfdir}/%{name}/$conf $conf +done +mv fonts/FontDataBase %{buildroot}%{_sysconfdir}/%{name} +ln -s %{_sysconfdir}/%{name}/FontDataBase fonts/FontDataBase +popd +mkfontdir %{buildroot}%{_datadir}/%{name}/fonts/type1 +## +# Desktop stuff +# +install -pm 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png +install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop +desktop-file-install --vendor fedora --delete-original \ + --dir %{buildroot}%{_datadir}/applications \ + --add-category Application \ + --add-category Graphics \ + %{buildroot}%{_datadir}/applications/%{name}.desktop +## +# Profile scripts +# +install -pm 755 %{SOURCE3} %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh +install -pm 755 %{SOURCE4} %{buildroot}%{_sysconfdir}/profile.d/%{name}.csh + + +%clean +rm -rf %{buildroot} + + +%post +%{_sbindir}/chkfontpath -q -a %{_datadir}/%{name}/fonts/type1 + + +%postun +%{_sbindir}/chkfontpath -q -r %{_datadir}/%{name}/fonts/type1 + + +%files +%defattr(-,root,root,-) +%doc ChangeLog CHANGES COPYRIGHT DEVELOPERS LICENSE README LICENSE.Xbae +%doc cephes-license.email LICENSE.cephes +%doc examples/ doc/ +%{_sysconfdir}/profile.d/* +%config(noreplace) %{_sysconfdir}/%{name}/ +%{_bindir}/* +%{_datadir}/%{name} +%exclude %{_datadir}/%{name}/include +%exclude %{_datadir}/%{name}/lib +%{_datadir}/applications/* +%{_datadir}/pixmaps/* +%{_mandir}/man*/* + + +%files devel +%defattr(-,root,root,-) +%doc grace_np/LICENSE +%{_includedir}/* +%{_datadir}/%{name}/include +%{_libdir}/* +%{_datadir}/%{name}/lib + + +%changelog +* Mon Jan 9 2006 Patrice Dumas - 5.1.18-7 +- put config files in /etc +- licence is GPL and not BSD/GPL, as it is not dual licensed + +* Wed Sep 14 2005 José Matos - 5.1.18-6 +- Require nedit as an explicit Require. + +* Tue Sep 13 2005 José Matos - 5.1.18-5 +- Normalize buildroot and change default editor to nedit. + +* Fri Sep 9 2005 José Matos - 5.1.18-4 +- Add license to cephes library as well as the original mail where permission is given. +- Move permission of profile.d files from 644 to 755. + +* Sat Sep 3 2005 Patrice Dumas - 5.1.18-3 +- cleanup licences +- put examples/ and doc/ in %doc +- remove duplicate manpages +- add patch to change fdf2fit path in graderc + +* Sun Aug 21 2005 José Matos - 5.1.18-2 +- Add post and postun requires. + +* Sat Aug 20 2005 José Matos - 5.1.18-1 + +- Prepare for Fedora Extras submission, based on a previous spec file + from Konstantin Ryabitsev (icon) and Seth Vidal from duke.edu diff --git a/sources b/sources index e69de29..52f8629 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9f27cc76563d6fa1746333044a7c2a94 grace-5.1.18.tar.gz