[epix] Initial import (#1043305).

Antonio Trande sagitter at fedoraproject.org
Wed Dec 18 20:54:22 UTC 2013


commit d3d65f96e2429d591bfbf8f65fec197b1de9363c
Author: sagitter <anto.trande at gmail.com>
Date:   Wed Dec 18 21:54:19 2013 +0100

    Initial import (#1043305).

 .gitignore |    1 +
 epix.spec  |  168 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources    |    1 +
 3 files changed, 170 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b04fc8b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/epix-1.2.13.tar.bz2
diff --git a/epix.spec b/epix.spec
new file mode 100644
index 0000000..f6bc10b
--- /dev/null
+++ b/epix.spec
@@ -0,0 +1,168 @@
+## This package has not architecture dependent files, 
+## except for the -static library that uses.
+%global debug_package %{nil}
+
+Name:    epix
+Summary: Utilities for mathematically accurate figures
+Version: 1.2.13
+Release: 2%{?dist}
+License: GPLv2+
+Group:   Applications/Engineering
+URL:     http://mathcs.holycross.edu/~ahwang/current/ePiX.html
+Source0: http://mathcs.holycross.edu/~ahwang/epix/epix-%{version}.tar.bz2
+
+BuildRequires: ghostscript
+BuildRequires: texinfo
+BuildRequires: texlive 
+BuildRequires: texlive-comment
+BuildRequires: texlive-eepic
+BuildRequires: texlive-kpathsea-bin
+BuildRequires: texlive-latex-bin-bin
+BuildRequires: texlive-pst-tools
+BuildRequires: texlive-texconfig 
+
+## ePiX needs a static library to work; it's packaged in the -devel subpackage
+Requires: %{name}-devel = %{version}-%{release}
+
+Requires: ghostscript
+Requires: ImageMagick
+Requires: texlive-comment
+Requires: texlive-epstopdf-bin
+Requires: texlive-eepic 
+Requires: texlive-pst-tools
+Requires: texlive-tetex
+
+
+Requires(post): info
+Requires(preun): info
+
+
+%description
+ePiX (pronounced like "epic" with a soft "k", playing on "TeX"), a
+collection of command line utilities for *nix, creates mathematically
+accurate figures, plots, and movies using easy-to-learn syntax. The
+output is expressly designed for use with LaTeX.
+
+%package devel
+Summary: Header and static files for %{name}
+Group: Applications/Engineering
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Provides: %{name}-static = %{version}-%{release}
+%description devel
+Header and static files for %{name}
+
+%package doc
+Summary: Manuals for %{name}
+Group: Applications/Engineering
+BuildArch: noarch
+%description doc
+The %{name}'s manuals
+
+%package bash-completion
+Summary: Bash completion support for %{name} 
+Group: Applications/Engineering
+BuildArch: noarch
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: bash
+%description bash-completion
+Bash completion support for the %{name}'s utilities
+
+%package emacs
+Summary: Emacs support for %{name} 
+Group: Applications/Engineering
+BuildArch: noarch
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: emacs-common
+%description emacs
+Emacs support for the %{name}
+
+%prep
+%setup -q -n %{name}-%{version}
+
+## UTF-8 validating and timestamps preserving
+for f in THANKS; do
+ iconv -f iso8859-1 -t utf8 $f > $f.new && \
+ touch -r $f $f.new && \
+ mv $f.new $f
+done
+
+
+%build
+%configure --enable-epix-el
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+## These directories are not useful
+rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/notes
+
+## Unzip all manuals and 'samples'
+## Remove *tar.gz archives 
+gzip -d  $RPM_BUILD_ROOT%{_docdir}/%{name}/manual.pdf.gz
+gzip -d  $RPM_BUILD_ROOT%{_docdir}/%{name}/manual.ps.gz
+mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/samples
+tar -xf $RPM_BUILD_ROOT%{_docdir}/%{name}/sample_src.tar.gz -C $RPM_BUILD_ROOT%{_docdir}/%{name}/samples
+rm -f  $RPM_BUILD_ROOT%{_docdir}/%{name}/*.tar.gz
+
+## Make bash completion file
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
+cp -p  $RPM_BUILD_ROOT%{_docdir}/%{name}/config/bash_completions  $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/%{name}
+
+## Make emacs plugin
+mkdir -p  $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{name}
+cp -p  $RPM_BUILD_ROOT%{_docdir}/%{name}/config/%{name}.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{name}
+
+## Remove config dir
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/config
+
+
+%post
+/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
+
+%preun
+if [ $1 = 0 ] ; then
+  /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
+fi
+
+
+%files
+%doc README THANKS ChangeLog COPYING NEWS POST-INSTALL
+%{_bindir}/elaps
+%{_bindir}/epix
+%{_bindir}/flix
+%{_bindir}/laps
+%{_datadir}/%{name}/
+%{_infodir}/%{name}*
+%{_mandir}/man1/epix.1*
+%{_mandir}/man1/elaps.1*
+%{_mandir}/man1/laps.1*
+%{_mandir}/man1/flix.1*
+
+%files devel
+%{_includedir}/%{name}/
+%{_includedir}/%{name}.h
+%{_libdir}/%{name}/
+
+%files doc
+%doc COPYING
+%{_docdir}/%{name}/
+
+%files bash-completion
+%config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}
+
+%files emacs
+%{_datadir}/emacs/site-lisp/%{name}/
+
+
+%changelog
+* Wed Dec 18 2013 Antonio Trande <sagitterATfedoraproject.org> 1.2.13-2
+- BR lines rearranged
+- Unzip all manuals and 'sample_src' archive
+- Added bash-completion subpackage
+- Added -emacs subpackage
+- Added bash Requires
+
+* Sun Dec 15 2013 Antonio Trande <sagitterATfedoraproject.org> 1.2.13-1
+- First package
diff --git a/sources b/sources
index e69de29..49a623a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+55b1dda2bb8fb194b2139c90bee6e33e  epix-1.2.13.tar.bz2


More information about the scm-commits mailing list