Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > e366ff9bc8cddcf22a74ac0062d2a18b > files > 2

siag-3.5.2-2mdk.src.rpm

Summary:	An office suite
Name:		siag
Version:	3.5.2
Release:	2mdk
License:	GPL
URL:		http://siag.nu/
Group:		Office

Source:		%name-%version.tar.bz2
Source1:	siag_icons.tar.bz2

BuildRoot:	%_tmppath/%name-%version-%release-root
Buildrequires:libMowitz0-devel >= 0.2.0 
Buildrequires: libXawM1-devel
BuildRequires: libncurses5-devel, tcl, python, libgdbm2-devel

%description
Siag Office consists of :
- the word processor Pathetic Writer,
- the spreadsheet Siag,
- the animation program Egon Animator,
- the file manager Xfiler,
- the text editor Xedplus,
- the Postscript viewer Gvu.


%package common
Summary:	Common files for Siag Office
Group:		Office
Requires:	siag-plugins = %version
#Requires:	libMowitz0 >= 0.2.0 
#requires:	libXawM1, tcl, python, libgdbm2

%description common
These are the scheme library files for siag,
and examples sheets. 

%package plugins
Summary:	Plugins for Siag Office
Group:		Office
Requires:	siag-common = %version
%description plugins
These are the standard plugins for use with Siag Office.

%package -n egon
Summary:	The animator program from Siag Office
Requires:	siag-common = %version
Group:		Office
%description -n egon
The animator part of the Siag Office suite, which also contains SIAG and PW.
Siag Office uses the Offix DND Drag-and-Drop protocol.

A WWW browser is needed to read online doc. A postscript viewer is used for
document preview.

Be warned that this probably is the least stable part of Siag Office. All
suggestions are welcomed. 

%package -n xsiag
Summary:	A spreadsheet with an X11 user-interface
Group:		Office
Requires:	siag-common = %version
Obsoletes:	siag
Provides:	siag
%description -n xsiag
The spreadsheet part of the Siag Office suite, which also contains
EGON and PW.
Siag Office uses the Offix DND Drag-and-Drop protocol.

Siag is a spreadsheet based on X and scheme. Being based on scheme
allows any user to expand the functionality of siag in just about
any way imaginable.

It can read and write 1-2-3 files for inter-operation with other
well-know spreadsheet programs.

You can enter expressions in several languages: C, guile, SIOD, Tcl.

A WWW browser is needed to read online doc. A postscript viewer
is used for document preview.

This one uses an X11 user interface based on the Athena toolkit.
You will find a text version in the `tsiag' package.


%package -n pw
Summary:	The Pathetic Writer word-processor
Group:		Office
Provides:	xpw
Requires:	xpw
Obsoletes:	xpw
Requires:	siag-common = %version
Requires:	libncurses5
%description -n pw
The word-processor part of the Siag Office suite, which also
contains SIAG and EGON.
Siag Office uses the Offix DND Drag-and-Drop protocol.

A WWW browser is needed to read online doc. A postscript viewer
is used for document preview.

It can read and write RTF and HTML files for inter-operation
with other well-known word-processors.
It should read also .doc files with help from catdoc.

%package -n tsiag
Summary:	Text version of the SIAG spreadsheet
Group:		Office
Requires:	siag-common = %version
%description -n tsiag
The spreadsheet part of the Siag Office suite.

Siag is a spreadsheet based on X and scheme. Being based on scheme
allows any user to expand the functionality of siag in just about
any way imaginable.

It can read and write 1-2-3 files for inter-operation with
other well-known spreadsheet programs.

You can enter expressions in several languages: C, guile, SIOD, Tcl.

This one uses a test-based user interface (ncurses). You will find
an X11 version in the `siag' package. 

#
# END-OF-PACKAGES
#

%prep

%setup -q

%build
#export CFLAGS="$RPM_OPT_FLAGS -I/usr/include/python2.2 -I/usr/include/Mowitz"
#export CXXFLAGS="$RPM_OPT_FLAGS -I/usr/include/python2.2 -I/usr/include/Mowitz"

./configure --prefix=%{_prefix} --mandir=$RPM_BUILD_ROOT%{_mandir} \
 --with-stocks 

make

%install
rm -fr %buildroot

make prefix=%buildroot/%_prefix install

install -d -m 0755 %buildroot/%_docdir/%name-%version
mv %buildroot/%_prefix/doc/%name/* %buildroot/%_docdir/%name-%version/


install -d -m 0755 %buildroot/%_menudir
cat > %buildroot/%_menudir/xsiag <<EOF
?package(xsiag): \
command="siag" \
title="Siag" \
longtitle="Siag Office spreadsheet" \
needs="x11" \
section="Office/Spreadsheets" \
icon="siag_spreadsheet.png"
EOF

cat > %buildroot/%_menudir/pw <<EOF
?package(pw): \
command="pw" \
title="Pathetic Writer" \
longtitle="Siag Office Pathetic writer" \
needs="x11" \
section="Office/Wordprocessors" \
icon="siag_wordprocessor.png"
EOF

cat > %buildroot/%_menudir/siag-common<<EOF
?package(siag-common): \
command="xfiler" title="Xfiler" longtitle="Siag File manager" \
needs="x11" section="Applications/File tools" icon="siag_file_tools.png"

?package(siag-common): \
command="xedplus" title="Xedplus" longtitle="Siag text editor" \
needs="x11" section="Applications/Editors" icon="siag_editors.png"

?package(siag-common): \
command="gvu" title="Gvu" longtitle="Siag Postscript viewer" \
needs="x11" section="Applications/Publishing" icon="siag_publishing.png"
EOF


cat > %buildroot/%_menudir/tsiag <<EOF
?package(tsiag): \
command="tsiag" \
title="Siag (text mode)" \
longtitle="Siag Office Scheme-in-a-Grid (text mode)" \
needs="text" \
section="Office/Spreadsheets" \
icon="siag_publishing2.png"
EOF

cat > %buildroot/%_menudir/egon <<EOF
?package(egon): \
command="egon" \
title="Egon" \
longtitle="Siag Office Egon Animator" \
needs="x11" \
section="Office/Presentations" \
icon="siag_publishing3.png"
EOF


#mdk icons
mkdir -p $RPM_BUILD_ROOT%_iconsdir
tar xjf %SOURCE1 -C $RPM_BUILD_ROOT%_iconsdir

cd $RPM_BUILD_ROOT%_iconsdir
for i in  */ ./;do cp $i/siag_publishing.png $i/siag_publishing2.png;done
for i in  */ ./;do cp $i/siag_publishing.png $i/siag_publishing3.png;done
 
%post common
%update_menus
 
%postun common
%clean_menus
 
%post -n xsiag
%update_menus
 
%postun -n xsiag
%clean_menus
 
%post -n tsiag
%update_menus
 
%postun -n tsiag
%clean_menus
 
%post -n pw
%update_menus
 
%postun -n pw
%clean_menus
 a
 
%post -n egon
%update_menus
 
%postun -n egon
%clean_menus

%clean
rm -fr %buildroot


%files common
%defattr (-,root,root)
%doc COPYING common/docs/
%dir %_libdir/siag
%_bindir/gvu
%_bindir/mgptotxt
%_bindir/runcmd
%_bindir/siaghelp
%_bindir/siagrun
%_bindir/xedplus
%_bindir/xfiler
%_datadir/%name
%_menudir/siag-common
%_iconsdir/siag_editors.png
%_miconsdir/siag_editors.png
%_liconsdir/siag_editors.png
%_iconsdir/siag_file_tools.png
%_miconsdir/siag_file_tools.png
%_liconsdir/siag_file_tools.png
%_iconsdir/siag_publishing.png
%_miconsdir/siag_publishing.png
%_liconsdir/siag_publishing.png

%files -n xsiag
%defattr (-,root,root)
%doc COPYING siag/docs/ siag/examples/
%_menudir/xsiag
%_bindir/siag
%_mandir/man1/siag.*
%_iconsdir/siag_spreadsheet.png
%_miconsdir/siag_spreadsheet.png
%_liconsdir/siag_spreadsheet.png

%files -n egon
%defattr (-,root,root)
%doc COPYING egon/docs/ egon/examples/
%_menudir/egon
%_bindir/egon
%_datadir/%name/egon/*
%_mandir/man1/egon.*
%_iconsdir/siag_publishing3.png
%_miconsdir/siag_publishing3.png
%_liconsdir/siag_publishing3.png

%files -n tsiag
%defattr (-,root,root)
%doc COPYING
%_menudir/tsiag
%_bindir/tsiag
%_iconsdir/siag_publishing2.png
%_miconsdir/siag_publishing2.png
%_liconsdir/siag_publishing2.png

%files -n pw
%defattr (-,root,root)
%doc COPYING pw/docs/ pw/examples/
%_menudir/pw
%_bindir/pw
%_mandir/man1/pw.*
%_iconsdir/siag_wordprocessor.png
%_miconsdir/siag_wordprocessor.png
%_liconsdir/siag_wordprocessor.png

%files plugins
%defattr (-,root,root)
%doc COPYING
%dir %_libdir/siag/plugins
%_libdir/siag/plugins/*
%_mandir/man1/dummy_plugin.*

%changelog
* Wed May 22 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 3.5.2-2mdk
- merge siag-common menu entries

* Mon May 06 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.5.2-1mdk
- 3.5.2

* Thu Apr 04 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 3.5.1-3mdk
- rename siag xsiag

* Fri Mar 22 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 3.5.1-2mdk
- split up package
- add man pages
- add lot of docs
- dadouize descriptions
- add missing menu entries
- add missing programs
- add missing requires
- remove libsiag rests in spec file
- quiet tar printing

* Thu Mar 21 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.5.1-1mdk
- 3.5.1
- disable python for now

* Mon Feb 11 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 3.5.0-3mdk
- fixes for lord rpmlint

* Thu Jan 10 2002 David BAUDENS <baudens@mandrakesoft.com> 3.5.0-2mdk
- Fix menu entries (add icons)
- Clean after build

* Tue Jan 08 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.5.0-1mdk
- 3.5.0
- fix build with python2.2
- filelists change to reflect new siag distribution scheme

* Mon Oct 29 2001 Ludovic Francois <lfrancois@mandrakesoft.com> 3.4.10-2mdk
- Rebuild for rpmlint 

* Thu Sep 27 2001 Lenny Cartier <lenny@mandrakesoft.com> 3.4.10-1mdk
- 3.4.10

* Tue Aug 21 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 3.4.9-3mdk
- Add missing directories

* Mon Jun 18 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 3.4.9-2mdk
- New office menu structure

* Wed May 23 2001 Lenny Cartier <lenny@mandrakesoft.com> 3.4.9-1mdk
- updated to 3.4.9

* Thu Dec 07 2000 Lenny Cartier <lenny@mandrakesoft.com> 3.4.7-1mdk
- updated to 3.4.7

* Mon Nov 29 2000 Lenny Cartier <lenny@mandrakesoft.com> 3.4.6-1mdk
- updated to 3.4.6

* Mon Nov 13 2000 Lenny Cartier <lenny@mandrakesoft.com> 3.4.4-1mdk 
- updated to 3.4.4

* Tue Nov 07 2000 Lenny Cartier <lenny@mandrakesoft.com> 3.4.3-1mdk
- updated to 3.4.3
- fix ownership of mandir :(

* Fri Oct 27 2000 Lenny Cartier <lenny@mandrakesoft.com> 3.4.2-1mdk
- updated to 3.4.2

* Fri Oct 20 2000 Lenny Cartier <lenny@mandrakesoft.com> 3.4.1-1mdk
- updated to 3.4.1

* Mon Sep 18 2000 Lenny Cartier <lenny@mandrakesoft.com> 3.4.0-1mdk
- updated to 3.4.0
- add icons for every application
- BM
- macros

* Mon Jun 19 2000 Frederic Lepied <flepied@mandrakesoft.com> 3.3.10-1mdk
- first Mandrake release.