SPECS: maxima.spec - subpackages for sources and documentation

draenog draenog at pld-linux.org
Fri Jun 13 04:15:05 CEST 2008


Author: draenog                      Date: Fri Jun 13 02:15:05 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- subpackages for sources and documentation

---- Files affected:
SPECS:
   maxima.spec (1.37 -> 1.38) 

---- Diffs:

================================================================
Index: SPECS/maxima.spec
diff -u SPECS/maxima.spec:1.37 SPECS/maxima.spec:1.38
--- SPECS/maxima.spec:1.37	Mon May 26 21:26:39 2008
+++ SPECS/maxima.spec	Fri Jun 13 04:14:59 2008
@@ -1,12 +1,12 @@
 # $Revision$, $Date$
 #
 # TODO:
-#	- separate subpackages with: doc, src, (emacs?)
+#	- separate subpackages with:  emacs?
 Summary:	Maxima Symbolic Computation Program
 Summary(pl.UTF-8):	Program do obliczeń symbolicznych Maxima
 Name:		maxima
 Version:	5.15.0
-Release:	0.3
+Release:	0.4
 Epoch:		1
 License:	GPL
 Group:		Applications/Math
@@ -16,6 +16,8 @@
 Patch0:		%{name}-info.patch
 Patch1:		%{name}-missed-files.patch
 Patch2:		%{name}-posix.patch
+Patch3:		x%{name}-doc.patch
+Patch4:		%{name}-install.patch
 URL:		http://maxima.sourceforge.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -66,6 +68,28 @@
 %description xmaxima -l pl.UTF-8
 Graficzny interfejs Tcl/Tk dla Maximy.
 
+%package src
+Summary:	Maxima lisp source code
+Summary(pl.UTF-8):	Pliki źródłowe Maximy
+Group:		Development
+
+%description src
+Maxima lisp source code.
+
+%description src -l pl.UTF-8
+Pliki źródłowe Maximy.
+
+%package doc
+Summary:	Maxima documentation
+Summary(pl.UTF-8):	Dokumentacja dla Maximy
+Group:		Documentation
+
+%description doc
+Maxima documentation.
+
+%description doc -l pl.UTF-8
+Dokumentacja dla Maximy.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -73,6 +97,8 @@
 touch doc/info/{maximahtml.mk,category-macros.texi} src/{clisp,cmucl,gcl}-depends.mk
 
 %patch2 -p1
+%patch3 -p1
+%patch4
 
 %build
 %{__aclocal}
@@ -104,6 +130,20 @@
 %postun	-p /sbin/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
 
+%triggerin doc -- %{name} = %{epoch}:%{version}
+if [ -d %{_docdir}/%{name}-doc-%{version} ]; then
+	ln -snf %{_docdir}/%{name}-doc-%{version}  %{_datadir}/%{name}/%{version}/doc
+fi
+
+%triggerun doc -- %{name} = %{epoch}:%{version}
+rm %{_datadir}/%{name}/%{version}/doc || :
+
+%triggerpostun doc -- %{name} = %{epoch}:%{version}
+if [ -d %{_docdir}/%{name}-doc-%{version} -a \
+  -d %{_datadir}/%{name}/%{version} ];  then
+	ln -snf %{_docdir}/%{name}-doc-%{version}  %{_datadir}/%{name}/%{version}/doc
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog README
@@ -112,7 +152,10 @@
 %attr(755,root,root) %{_libdir}/%{name}
 %dir %{_datadir}/%{name}
 %dir %{_datadir}/%{name}/%{version}
-%{_datadir}/%{name}/%{version}/[!x]*
+%{_datadir}/%{name}/%{version}/demo
+%{_datadir}/%{name}/%{version}/emacs
+%{_datadir}/%{name}/%{version}/share
+%{_datadir}/%{name}/%{version}/tests
 %{_mandir}/man?/*
 %{_infodir}/maxima.info*
 
@@ -123,12 +166,23 @@
 %{_desktopdir}/*.desktop
 %{_pixmapsdir}/*
 
+%files doc
+%defattr(644,root,root,755)
+%{_docdir}/%{name}-doc-%{version}
+
+%files src
+%defattr(644,root,root,755)
+%{_usrsrc}/maxima-%{version}
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.38  2008-06-13 02:14:59  draenog
+- subpackages for sources and documentation
+
 Revision 1.37  2008-05-26 19:26:39  qboosh
 - pl for -xmaxima
 - fixed shellglob
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/maxima.spec?r1=1.37&r2=1.38&f=u



More information about the pld-cvs-commit mailing list