demexp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Demexp-dev] Mandriva package ?


From: Christophe GUILLOUX
Subject: Re: [Demexp-dev] Mandriva package ?
Date: Tue, 15 Nov 2005 17:36:18 +0100
User-agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322)

Thomas Petazzoni a écrit :
Hi,

I would like to try to update the Mandriva package for Demexp. I've seen
that Christophe Guilloux have made some work in this direction with
older versions of Demexp. However, the website indicated at
http://www.nongnu.org/demexp/ concerning the Mandrake packages returns a
404 error. Moreover, I cannot find "noweb" in the current Mandriva, and
I suspect that other dependencies will be missing (Ocaml library and
bindings, mostly) in the Mandriva distribution. Christophe, how did you
generate the package ? Did you create packages for all the other
dependencies ? Or maybe you simply installed noweb and everything else
on your system and generated the package from there ?

(By the way, http://www.nongnu.org/demexp/ is quite a bit out of date,
particularly concerning packages. The Wiki contains informations that
are more up-to-date.)

Sincerly,

Thomas

I join all .spec in attached file for a previous demexp package for mandrake. I don't know if they are good or not.

%define name demexp
%define version 0.3.8
%define release 1mdk

Summary: The democratic experience
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://www.demexp.org/demexp-%{version}.tar.bz2
Group: System/Servers
URL: http://www.demexp.org
License: GPL
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: ocaml-lablgtk2
Prefix: %{_prefix}

%description
The democratic experience is a large scale project of direct democracy. It aims 
at
 providing the tools to facilitate the expression of all citizens, to transform 
th
is expression into decisions, and to apply this decision.

In the democratic experience, each participant can submit a vote, propose 
answers,
 and vote. All winning answers to the votes are gathered into a database that 
repr
esents the common position of the group. This common position can be used to 
drive
 decisions.

Thus, the democratic experience is a complete and open tool for direct 
democracy.
It can apply to small groups of people (associations, companies) but also to 
large
r groups (countries, the planet!).

%package server
Summary: The democratic experience
Group: System/Servers

%description server
This is the server part of The democratic experience.

The democratic experience is a large scale project of direct democracy. It aims 
at
 providing the tools to facilitate the expression of all citizens, to transform 
th
is expression into decisions, and to apply this decision.

In the democratic experience, each participant can submit a vote, propose 
answers,
 and vote. All winning answers to the votes are gathered into a database that 
repr
esents the common position of the group. This common position can be used to 
drive
 decisions.

Thus, the democratic experience is a complete and open tool for direct 
democracy.
It can apply to small groups of people (associations, companies) but also to 
large
r groups (countries, the planet!).

%package client
Summary: The democratic experience
Group: Sciences/Other

%description client
This is the client part of The democratic experience.

The democratic experience is a large scale project of direct democracy. It aims 
at
 providing the tools to facilitate the expression of all citizens, to transform 
th
is expression into decisions, and to apply this decision.

In the democratic experience, each participant can submit a vote, propose 
answers,
 and vote. All winning answers to the votes are gathered into a database that 
repr
esents the common position of the group. This common position can be used to 
drive
 decisions.

Thus, the democratic experience is a complete and open tool for direct 
democracy.
It can apply to small groups of people (associations, companies) but also to 
large
r groups (countries, the planet!).

%prep
%setup -q -n demexp-%{version}

%build
make

%install
mkdir -p ${RPM_BUILD_ROOT}/usr/bin
mkdir -p ${RPM_BUILD_ROOT}/usr/sbin
cp lablgtk2-clnt/demexp-lablgtk2-client 
${RPM_BUILD_ROOT}/usr/bin/demexp-%{version}-client
cp srv/demexp-server ${RPM_BUILD_ROOT}/usr/sbin/demexp-%{version}-server

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING.GPL README known-bugs.txt

%files client
/usr/bin/demexp-%{version}-client

%files server
/usr/sbin/demexp-%{version}-server

%changelog
* Thu Mar 11 2005 Christophe Guilloux <address@hidden> 0.3.8-1mdk
- update
* Mon Nov 22 2004 Christophe Guilloux <address@hidden> 0.3-1mdk
- initial spec

# end of file
%define name    findlib
%define version 0.9
%define release 2mdk

Summary:        A module packaging tool for OCaml
Name:           findlib
Version:        %{version}
Release:        %{release}
Epoch:          0
Group:          Development/Other
License:        MIT-style
Url:            http://www.ocaml-programming.de/packages/documentation/findlib/
Source0:        
http://www.ocaml-programming.de/packages/%{name}-%{version}.tar.bz2
Patch0:         findlib-0.9-dynlibs.patch.bz2
Requires:       ocaml >= 0:3.07
BuildRequires:  camlp4 libncurses-devel ocaml >= 0:3.07 ocamltk
Buildroot:      %{_tmppath}/%{name}-%{version}-root

%package -n ocamlfind-mini
Summary:        Minimal findlib script to be distributed with user libraries
Group:          Development/Other
Requires:       %{name} = %{epoch}:%{version}-%release

%description
The findlib library provides a scheme to manage reusable software
components (packages), and includes tools that support this scheme.
Packages are collections of OCaml modules for which metainformation can
be stored. The packages are kept in the filesystem hierarchy, but with
strict directory structure. The library contains functions to look the
directory up that stores a package, to query metainformation about a
package, and to retrieve dependency information about multiple packages.
There is also a tool that allows the user to enter queries on the
command-line. In order to simplify compilation and linkage, there are
new frontends of the various OCaml compilers that can directly deal with
packages.

%description -n ocamlfind-mini
ocamlfind-mini is an OCaml script that implements a subset of the full
functionality of ocamlfind. It consists only of one file, so it is easy
to distribute it with any software.

The subset is normally sufficient to compile a library and to install
the library; but it is insufficient to link the library into an
executable. 

%prep
%setup -q
%patch0 -p1

%build
./configure -mandir %{_mandir} -config %{_libdir}/ocaml/etc/findlib.conf
%__make all opt

%install
%make PREFIX=$RPM_BUILD_ROOT install

install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlfind-mini
cp -a mini/* $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlfind-mini

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README INSTALL LICENSE doc
%{_bindir}/*
%dir %{_libdir}/ocaml
%{_libdir}/ocaml/etc
%{_libdir}/ocaml/findlib
%{_libdir}/ocaml/ocamlfind
%{_libdir}/ocaml/site-lib
%{_libdir}/ocaml/topfind
%{_mandir}/man*/*

%files -n ocamlfind-mini
%defattr(-,root,root)
%{_libdir}/ocaml/ocamlfind-mini/*

%changelog
* Sun Feb 29 2004 Olivier Thauvin <address@hidden> 0:0.9-2mdk
- Fix DIRM (distlint)

* Thu Oct 23 2003 David Walluck <address@hidden> 0:0.9-1mdk
- release
%define name    findlib
%define version 1.0.4
%define release 1mdk
%define ocamlfind_destdir `ocamlc -where`
%define stublibs /usr/lib/ocaml/stublibs

Summary:        A module packaging tool for OCaml
Name:           findlib
Version:        %{version}
Release:        %{release}
Epoch:          0
Group:          Development/Other
License:        MIT-style
Url:            http://www.ocaml-programming.de/packages/documentation/findlib/
Source0:        
http://www.ocaml-programming.de/packages/%{name}-%{version}.tar.gz
Patch0:         findlib-1.0.4.patch.gz
Requires:       ocaml >= 0:3.07
BuildRequires:  camlp4 libncurses-devel ocaml >= 0:3.07 ocamltk
Buildroot:      %{_tmppath}/%{name}-%{version}-root

%description
The findlib library provides a scheme to manage reusable software
components (packages), and includes tools that support this scheme.
Packages are collections of OCaml modules for which metainformation can
be stored. The packages are kept in the filesystem hierarchy, but with
strict directory structure. The library contains functions to look the
directory up that stores a package, to query metainformation about a
package, and to retrieve dependency information about multiple packages.
There is also a tool that allows the user to enter queries on the
command-line. In order to simplify compilation and linkage, there are
new frontends of the various OCaml compilers that can directly deal with
packages.

%prep
%setup -q
%patch -p1

%build
./configure -bindir /usr/bin -mandir /usr/share/man \
            -sitelib %{ocamlfind_destdir} \
            -config %{ocamlfind_destdir}/findlib/findlib.conf \
            -with-toolbox
make all
if [ -x /usr/bin/ocamlopt ]
then
  make opt
fi
./itest

%install
%define FINDLIB_METAS `ls site-lib-src/`
mkdir -p ${RPM_BUILD_ROOT}/%{ocamlfind_destdir}
make prefix=${RPM_BUILD_ROOT} install
ln -fs "../topfind" ${RPM_BUILD_ROOT}/%{ocamlfind_destdir}/findlib/topfind
mkdir -p ${RPM_BUILD_ROOT}/%{ocamlfind_destdir}/METAS
for p in %{FINDLIB_METAS}; do 
  mv \
    ${RPM_BUILD_ROOT}%{ocamlfind_destdir}/$p/META \
    ${RPM_BUILD_ROOT}%{ocamlfind_destdir}/METAS/META.$p;
  rmdir --ignore-fail-on-non-empty  ${RPM_BUILD_ROOT}%{ocamlfind_destdir}/$p; 
done

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README INSTALL LICENSE doc
%{_bindir}/*
%{_libdir}/ocaml
%{_mandir}/man*/*

%post
%define ocaml_stdlibs `ocamlc -where`
%define ldconf %{ocaml_stdlibs}/ld.conf
#if [ ! -e %{ldconf} ]
#then
#  echo %{ocaml_stdlibs} > %{ldconf}
#  echo %{ocaml_stdlibs}/stublibs >> %{ldconf}
#fi
#if [ -z `grep -e %{stublibs} %{ldconf}` ]
#then
#  echo %{stublibs} >> %{ldconf}
#fi

%changelog
* Wed Nov 24 2004 Christophe Guilloux <address@hidden> 0:1.0.4-1mdk
- new version

* Sun Feb 29 2004 Olivier Thauvin <address@hidden> 0:0.9-2mdk
- Fix DIRM (distlint)

* Thu Oct 23 2003 David Walluck <address@hidden> 0:0.9-1mdk
- release
Summary: The Icon-2 Programming Language
Name: Icon2
Version: 9.4.2
Release: 1mdk
Icon: daemon.gif
License: Public Domain and GPL
Group: Development/Langauges
Vendor: Drones Club
URL: http://www.drones.com/unicon/
Source0: http://www.drones.com/Icon2-9.4.2.tar.gz
BuildRoot: %{_tmppath}/build-root-Icon2
BuildRequires: libgdbm3-devel

%description
The Icon-2 Programming Language. For details: http://www.drones.com/unicon
Icon-2 is a derivative of Icon, which comes from the University of Arizona
(http://www.cs.arizona.edu/icon/docs/docs.htm), with the additions of POSIX
system-call support and Idol, the object-oriented variant. For details on
Idol, see http://www.cs.utsa.edu/research/idol/. (This URL is due to change
soon; but drones.com will always have a pointer to the latest versions of
unicon and Idol.)

This package also includes the libraries from the Icon Program Library
version 9.4.2.

Books available on Icon:

The canonical reference is, of course, "The Icon Programming Language" by
Griswold and Griswold, 3d ed. pub. Peer To Peer (1996), ISBN 1 57398 001 3.

Information on graphics is in the book "Graphics Programming in Icon" by
Griswold, Jeffery and Townsend, pub. Peer To Peer (1989) ISBN 1 57398 009 9.

The POSIX interface (Unicon) and Idol are described in a book soon to appear,
by Jeffery, Mohamed and Pereda, pub. IDG Books Intl. ISBN 0 7645 3328 2.

%package docs
Summary: Documentation for the Icon Program Language and Program Library
Group: Development/Languages
URL: http://www.cs.arizona.edu/icon/docs/docs.htm
%description docs
This package contains a subset of the documentation available from The
Icon Project.

%prep
%setup -q -n Icon2-%{version}

%build
%make X-Configure name=linux
make All

%install
mkdir -p $RPM_BUILD_ROOT/usr
make Install dest=$RPM_BUILD_ROOT/usr/tmp
mkdir -p $RPM_BUILD_ROOT/usr/share/doc
mv $RPM_BUILD_ROOT/usr/tmp/doc $RPM_BUILD_ROOT/usr/share/doc/Icon2-%{version}
mv $RPM_BUILD_ROOT/usr/tmp/man $RPM_BUILD_ROOT/usr/share/man
mkdir -p $RPM_BUILD_ROOT/usr/lib
mv $RPM_BUILD_ROOT/usr/tmp/lib $RPM_BUILD_ROOT/usr/lib/Icon2
mv $RPM_BUILD_ROOT/usr/tmp/bin $RPM_BUILD_ROOT/usr/
rm $RPM_BUILD_ROOT/usr/tmp/README
rmdir $RPM_BUILD_ROOT/usr/tmp

%clean
rm -rf $RPM_BUILD_ROOT

%files
/usr/lib
/usr/bin
%{_mandir}/man1

%files docs
/usr/share/doc

%changelog
* Wed Nov 24 2004 Christophe Guilloux <address@hidden> 9.4.2-1mdk
- Recompiled for Mandrake 10.1 and new version

* Sat Mar 29 2003 Torbjorn Turpeinen <address@hidden> 9.3.2-3mdk
- Recompiled for Mandrake 9.1

* Mon Mar 24 2003 Torbjorn Turpeinen <address@hidden> 9.3.2-2mdk
- Cleaned up spec file

* Wed Oct 16 2002 Torbjorn Turpeinen <address@hidden> 9.3.2-1mdk
- compiled for Mandrake9.0
%define version 2.10a
Summary: noweb literate programming tool
Name: noweb
Version: %{version}
Release: 1
Copyright: Freely copyable, but may not be modified
Group: Applications/Publishing/TeX
URL: http://www.cs.virginia.edu/~nr/noweb
Packager: Kayvan A. Sylvan <address@hidden>
Source: ftp://tug.ctan.org/tex-archive/web/noweb.tar.gz
Source1: http://www2.thecia.net/users/dfan/real/noweb-outline.el
Patch: noweb-makefile.patch
Requires: icon
BuildRoot: /var/tmp/noweb

%description
Noweb supports literate programming---the art of writing programs as
documents for human readers.  Noweb's primary advantages are
simplicity, extensibility, and language-independence.  noweb works
``out of the box'' with any programming language, and it supports
interleaved documentation written in TeX, LaTeX, and HTML.  noweb
comes with an efficient LaTeX->HTML converter.
  
%package examples
Summary: Examples of noweb programs in various languages.
Group: Applications/Publishing/TeX
%description examples
This set of examples is shipped with Norman Ramsey's noweb package.
All are set up to work with LaTeX. Read the included README file
and just peruse the source.

%package contrib
Summary: Contributed pieces to noweb. Includes numarkup and moddate with docs.
Group: Applications/Publishing/TeX
%description contrib
This package contains some useful stuff from the noweb contrib
directory. Includes nocond, moddate and numarkup with weaved documentation.

%clean
rm -rf ${RPM_BUILD_ROOT}

%prep
%setup
%patch -p0

%build
cd src
make "RPM_OPT_FLAGS=$RPM_OPT_FLAGS" all
cd ..

cd contrib/norman/numarkup
make
make numarkup.tex
latex numarkup; latex numarkup
dvips -o numarkup.ps numarkup

cd ..
noweb -t moddate.nw
gcc -I../../src/c -O -o moddate moddate.c 
../../src/c/{getline.o,columns.o,errors.o}
noweave -index moddate.nw > moddate.tex
latex moddate; latex moddate
dvips -o moddate.ps moddate

cd ../leew
noweb -t nocond.nw
notangle -t4 -R"sed script" nocond.nw > nocond
noweave -t4 -delay -x nocond.nw > nocond.tex
latex nocond; latex nocond
dvips -o nocond.ps nocond

%install
cd src
sh awkname awk
mkdir -p ${RPM_BUILD_ROOT}/usr/bin ${RPM_BUILD_ROOT}/usr/lib/noweb \
        ${RPM_BUILD_ROOT}/usr/man \
        ${RPM_BUILD_ROOT}/usr/share/texmf/tex/latex/misc \
        ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp

make BIN=${RPM_BUILD_ROOT}/usr/bin \
        LIB=${RPM_BUILD_ROOT}/usr/lib/noweb \
        MAN=${RPM_BUILD_ROOT}/usr/man \
        TEXINPUTS=${RPM_BUILD_ROOT}/usr/share/texmf/tex/latex/misc \
        ELISP=${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp install
cp $RPM_SOURCE_DIR/noweb-outline.el ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp

# Now fix the shell scripts again
find ${RPM_BUILD_ROOT} -type f | xargs grep -l ${RPM_BUILD_ROOT} | \
        xargs perl -pi -e address@hidden@@

cd ..
install --strip --mode=755 contrib/norman/numarkup/numarkup \
        ${RPM_BUILD_ROOT}/usr/lib/noweb
install --strip --mode=755 contrib/norman/moddate \
        ${RPM_BUILD_ROOT}/usr/lib/noweb
install --mode=755 contrib/leew/nocond ${RPM_BUILD_ROOT}/usr/lib/noweb
install --mode=644 contrib/leew/nocond.1 ${RPM_BUILD_ROOT}/usr/man/man1

%post
texhash 

%postun
texhash 

%files
%defattr(-,root,root)
%doc src/COPYRIGHT src/FAQ src/FAQ.html src/README src/VERSIONS
%doc src/INSTALL
/usr/bin/*
%dir /usr/lib/noweb
/usr/lib/noweb/[abcdefghijklopqrstuvwxyz]*
/usr/lib/noweb/markup
/usr/lib/noweb/mnt
/usr/lib/noweb/noidx
/usr/lib/noweb/nt
/usr/lib/noweb/nwmtime
/usr/share/texmf/tex/latex/misc/*
/usr/man/man1/cpif.1.gz
/usr/man/man1/htmltoc.1.gz
/usr/man/man1/nodefs.1.gz
/usr/man/man1/noindex.1.gz
/usr/man/man1/noroots.1.gz
/usr/man/man1/notangle.1.gz
/usr/man/man1/nountangle.1.gz
/usr/man/man1/noweave.1.gz
/usr/man/man1/noweb.1.gz
/usr/man/man1/nuweb2noweb.1.gz
/usr/man/man1/sl2h.1.gz
/usr/man/man7/nowebfilters.7.gz
/usr/man/man7/nowebstyle.7.gz
/usr/share/emacs/site-lisp/*

%files contrib
/usr/lib/noweb/numarkup
%doc contrib/norman/numarkup/numarkup.ps
/usr/lib/noweb/moddate
%doc contrib/norman/moddate.ps 
/usr/lib/noweb/nocond
%doc contrib/leew/nocond.ps
/usr/man/man1/nocond.1.gz

%files examples
%doc examples
%define version 2.10c
Summary: noweb literate programming tool
Name: noweb
Version: %{version}
Release: 1
Copyright: Freely copyable, but may not be modified
Group: Applications/Publishing/TeX
URL: http://www.cs.virginia.edu/~nr/noweb
Source: ftp://tug.ctan.org/tex-archive/web/noweb-%{version}.tgz
Source1: http://www2.thecia.net/users/dfan/real/noweb-outline.el
Requires: Icon2
BuildRoot: %{_tmppath}/noweb-%{version}

%description
Noweb supports literate programming---the art of writing programs as
documents for human readers.  Noweb's primary advantages are
simplicity, extensibility, and language-independence.  noweb works
``out of the box'' with any programming language, and it supports
interleaved documentation written in TeX, LaTeX, and HTML.  noweb
comes with an efficient LaTeX->HTML converter.
  
%package examples
Summary: Examples of noweb programs in various languages.
Group: Applications/Publishing/TeX
%description examples
This set of examples is shipped with Norman Ramsey's noweb package.
All are set up to work with LaTeX. Read the included README file
and just peruse the source.

#%package contrib
#Summary: Contributed pieces to noweb. Includes numarkup and moddate with docs.
#Group: Applications/Publishing/TeX
#%description contrib
#This package contains some useful stuff from the noweb contrib
#directory. Includes nocond, moddate and numarkup with weaved documentation.


%prep
%setup -q -n noweb-%{version}

%build
cd src
make all
cd ..


%install
cd src
sh awkname gawk
mkdir -p ${RPM_BUILD_ROOT}/usr/bin ${RPM_BUILD_ROOT}/usr/lib/noweb \
        ${RPM_BUILD_ROOT}/usr/man \
        ${RPM_BUILD_ROOT}/usr/share/texmf/tex/latex/misc \
        ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp

make BIN=${RPM_BUILD_ROOT}/usr/bin \
        LIB=${RPM_BUILD_ROOT}/usr/lib/noweb \
        MAN=${RPM_BUILD_ROOT}/usr/man \
        TEXINPUTS=${RPM_BUILD_ROOT}/usr/share/texmf/tex/latex/misc \
        ELISP=${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp install
cp $RPM_SOURCE_DIR/noweb-outline.el ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp

# Now fix the shell scripts again
find ${RPM_BUILD_ROOT} -type f | xargs grep -l ${RPM_BUILD_ROOT} | \
        xargs perl -pi -e address@hidden@@

cd ..
mv ${RPM_BUILD_ROOT}/usr/man ${RPM_BUILD_ROOT}/usr/share

%post
texhash 

%postun
texhash 

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%doc src/COPYRIGHT src/FAQ src/FAQ.html src/README src/VERSIONS
%doc src/INSTALL
/usr/bin/*
%dir /usr/lib/noweb
/usr/lib/noweb/[abcdefghijklopqrstuvwxyz]*
/usr/lib/noweb/markup
/usr/lib/noweb/mnt
/usr/lib/noweb/noidx
/usr/lib/noweb/nt
/usr/lib/noweb/nwmtime
/usr/share/texmf/tex/latex/misc/*
%{_mandir}/man1
%{_mandir}/man7
/usr/share/emacs/site-lisp/*

#%files contrib

%files examples
%defattr(-,root,root)
%doc examples

%changelog
* Wed Nov 24 2004 Christophe Guilloux <address@hidden> 2.10c-1mdk
- Recompiled for Mandrake 10.1 and new version

%define name ocaml-equeue
%define version 2.0.1
%define release 1mdk
%define ocamlfind_destdir `ocamlc -where`

Summary: Equeue, event queues for O'Caml
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://www.ocaml-programming.de/packages/ocaml-equeue-%{version}.tar.gz
URL: http://www.ocaml-programming.de/programming/equeue.html
License: MIT/X11
Group: Development/Other
BuildRoot: %{_tmppath}/%{name}-buildroot
#BuildRequires: findlib ocaml-lablgtk2
BuildRequires: findlib
Prefix: %{_prefix}

%description
Equeue, event queues for O'Caml

%prep
%setup -q -n ocaml-equeue-%{version}

%build
./configure
make all
if [ -f /usr/bin/ocamlopt ]; then
  make opt
fi

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p ${RPM_BUILD_ROOT}%{ocamlfind_destdir}
make install OCAMLFIND_DESTDIR=${RPM_BUILD_ROOT}%{ocamlfind_destdir} 
OCAMLFIND_LDCONF=dummy
%define FINDLIB_METAS `ls ${RPM_BUILD_ROOT}/usr/lib/ocaml/`
mkdir -p ${RPM_BUILD_ROOT}%{ocamlfind_destdir}/METAS
for p in %{FINDLIB_METAS}; do
  if [ "$p" != "METAS" ]; then
    mv \
      ${RPM_BUILD_ROOT}%{ocamlfind_destdir}/$p/META \
      ${RPM_BUILD_ROOT}%{ocamlfind_destdir}/METAS/META.$p;
    rmdir --ignore-fail-on-non-empty  ${RPM_BUILD_ROOT}%{ocamlfind_destdir}/$p;
  fi
done

mkdir -p $RPM_BUILD_ROOT/usr/share/doc/
cp -r doc $RPM_BUILD_ROOT/usr/share/doc/ocaml-equeue-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc /usr/share/doc
/usr/lib/ocaml/*

%changelog
* Mon Nov 23 2004 Christophe Guilloux <address@hidden> 2.1-1mdk
- initial spec

# end of file
%define name ocaml-equeue
%define version 2.1
%define release 1mdk

Summary: Equeue, event queues for O'Caml
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://www.ocaml-programming.de/packages/ocaml-equeue-%{version}.tar.gz
URL: http://www.ocaml-programming.de/programming/equeue.html
License: MIT/X11
Group: Development/Other
BuildRoot: %{_tmppath}/%{name}-buildroot
#BuildRequires: findlib ocaml-lablgtk2
BuildRequires: findlib
Prefix: %{_prefix}

%description
Equeue, event queues for O'Caml

%prep
%setup -q -n ocaml-equeue-%{version}

%build
#cp $RPM_SOURCE_DIR/ocaml-equeue-2.1-configure configure
#./configure -with-equeue-gtk2
#./configure -without-shell
#make all
#if [ -f /usr/bin/ocamlopt ]; then
#  make opt
#fi
./configure -with-equeue-core -with-shell -without-equeue-tcl
make all opt

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p ${RPM_BUILD_ROOT}/`ocamlc -where`
make prefix=${RPM_BUILD_ROOT} install
#mkdir -p $RPM_BUILD_ROOT/usr/lib/ocaml/site-lib/
#PKGLIST_INSTALL="equeue shell"
#for pkg in ${PKGLIST_INSTALL}; do
#  cd src/${pkg}
#  files="*.mli *.cmi *.cma *.cmxa *.a unixqueue_mt.cmo unixqueue_mt.cmx 
unixqueue_mt.o META"
#  allfiles=""
#  for f in ${files}; do
#    if [ -f $f ]; then
#      allfiles="${allfiles} $f"
#    fi
#  done
#  ocamlfind install -destdir $RPM_BUILD_ROOT/usr/lib/ocaml/site-lib/ ${pkg} 
$allfiles
#  cd ../..
#done
#mkdir -p $RPM_BUILD_ROOT/usr/share/doc/
#cp -r doc $RPM_BUILD_ROOT/usr/share/doc/ocaml-equeue-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc /usr/share/doc
/usr/lib/ocaml/site-lib/*

%changelog
* Mon Nov 23 2004 Christophe Guilloux <address@hidden> 2.1-1mdk
- initial spec

# end of file
%define name ocaml-lablgtk
%define version 1.2.6
%define release 2mdk

Summary: OCaml interface to the GIMP Tool Kit
Name: %{name}
Version: %{version}
Release: %{release}
Source0: 
http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgtk-%{version}.tar.bz2
URL: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html
License: LGPL
Group: Development/Other
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: camlp4 gtk-devel
Prefix: %{_prefix}

%description
OCaml interface to the GIMP Tool Kit

%prep
%setup -q -n lablgtk-%{version}

%build
make configure
make
make opt

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT`ocamlc -where`/stublibs
make install BINDIR=$RPM_BUILD_ROOT%{_bindir} INSTALLDIR=$RPM_BUILD_ROOT`ocamlc 
-where`/lablgtk DLLDIR=$RPM_BUILD_ROOT`ocamlc -where`/stublibs

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING CHANGES README
%{_bindir}/*
%{_libdir}/ocaml/lablgtk
%{_libdir}/ocaml/stublibs/*

%changelog
* Sun Oct 10 2004 Pascal Terjan <address@hidden> 1.2.6-2mdk
- drop patch

* Sat Jan 03 2004 Laurent Culioli <address@hidden> 1.2.6-1mdk
- 1.2.6

* Fri Apr 25 2003 Pixel <address@hidden> 1.2.5-2mdk
- add "BuildRequires: gtk-devel"

* Sun Sep 15 2002 Pixel <address@hidden> 1.2.5-1mdk
- new version
- build for new ocaml

* Wed Aug  7 2002 Pixel <address@hidden> 1.2.4-1mdk
- new version
- build for new ocaml

* Thu Jan 17 2002 Pixel <address@hidden> 1.2.3-1mdk
- new version

* Fri Oct  5 2001 Pixel <address@hidden> 1.2.1-1mdk
- initial spec

# end of file
%define name ocaml-lablgtk2
%define version 2.4.0
%define release 1mdk

Summary: OCaml interface to the GIMP Tool Kit
Name: %{name}
Version: %{version}
Release: %{release}
Source0: 
http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgtk-%{version}.tar.gz
URL: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html
License: LGPL
Group: Development/Other
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: camlp4 libgtk+2.0_0-devel libglade2.0_0-devel findlib
Prefix: %{_prefix}

%description
OCaml interface to the GIMP Tool Kit

%prep
%setup -q -n lablgtk-%{version}

%build
%configure --with-glade
make world

%install
rm -rf $RPM_BUILD_ROOT
make install BINDIR=$RPM_BUILD_ROOT%{_bindir} 
INSTALLDIR=${RPM_BUILD_ROOT}`ocamlc -where`/lablgtk2 
DLLDIR=$RPM_BUILD_ROOT`ocamlc -where`/stublibs
cp ${RPM_SOURCE_DIR}/lablgtk2-META ${RPM_BUILD_ROOT}`ocamlc 
-where`/lablgtk2/META

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING CHANGES README
%{_bindir}/*
%{_libdir}/ocaml/lablgtk2
%{_libdir}/ocaml/stublibs/*

%post
cd /usr/lib/ocaml/lablgtk2
files="*"
allfiles=""
for f in ${files}; do
  if [ -f $f ]; then
    allfiles="${allfiles} $f"
  fi
done
ocamlfind install lablgtk2 $allfiles

%postun
ocamlfind remove lablgtk2

%changelog
* Wed Nov 24 2004 Christophe Guilloux <address@hidden> 2.4.0-1mdk
- new lablgtk version

* Sun Oct 10 2004 Pascal Terjan <address@hidden> 1.2.6-2mdk
- drop patch

* Sat Jan 03 2004 Laurent Culioli <address@hidden> 1.2.6-1mdk
- 1.2.6

* Fri Apr 25 2003 Pixel <address@hidden> 1.2.5-2mdk
- add "BuildRequires: gtk-devel"

* Sun Sep 15 2002 Pixel <address@hidden> 1.2.5-1mdk
- new version
- build for new ocaml

* Wed Aug  7 2002 Pixel <address@hidden> 1.2.4-1mdk
- new version
- build for new ocaml

* Thu Jan 17 2002 Pixel <address@hidden> 1.2.3-1mdk
- new version

* Fri Oct  5 2001 Pixel <address@hidden> 1.2.1-1mdk
- initial spec

# end of file
%define name ocaml-rpc
%define version 0.4.1
%define release 1mdk

Summary: An implementation of Sun RPC
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://www.ocaml-programming.de/packages/ocaml-rpc-%{version}.tar.gz
URL: http://www.ocaml-programming.de/programming/equeue.html
License: MIT/X11
Group: Development/Other
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: findlib ocaml-equeue
Prefix: %{_prefix}

%description
An implementation of Sun RPC

%prep
%setup -q -n ocaml-rpc-%{version}

%build
./configure
make all opt

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/lib/ocaml/site-lib/
PKGLIST_INSTALL="rpc"
for pkg in ${PKGLIST_INSTALL}; do
  cd src/${pkg}
  files="*.mli *.cmi *.cma *.cmxa *.a rtypes.cmx xdr.cmx META"
  allfiles=""
  for f in ${files}; do
    if [ -f $f ]; then
      allfiles="${allfiles} $f"
    fi
  done
  ocamlfind install -destdir $RPM_BUILD_ROOT/usr/lib/ocaml/site-lib/ ${pkg} 
$allfiles
  cd ../..
done
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/
cp -r doc $RPM_BUILD_ROOT/usr/share/doc/ocaml-rpc-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc /usr/share/doc
/usr/lib/ocaml/site-lib/*

%changelog
* Mon Nov 23 2004 Christophe Guilloux <address@hidden> 0.4.1-1mdk
- initial spec

# end of file
%define name ocaml-rpc
%define version 0.4.1
%define release 1mdk

Summary: An implementation of Sun RPC
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://www.ocaml-programming.de/packages/ocaml-rpc-%{version}.tar.gz
URL: http://www.ocaml-programming.de/programming/equeue.html
License: MIT/X11
Group: Development/Other
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: findlib ocaml-equeue
Prefix: %{_prefix}

%description
An implementation of Sun RPC

%prep
%setup -q -n ocaml-rpc-%{version}

%build
./configure
make all opt

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/lib/ocaml/site-lib/
PKGLIST_INSTALL="rpc"
for pkg in ${PKGLIST_INSTALL}; do
  cd src/${pkg}
  files="*.mli *.cmi *.cma *.cmxa *.a rtypes.cmx xdr.cmx META"
  allfiles=""
  for f in ${files}; do
    if [ -f $f ]; then
      allfiles="${allfiles} $f"
    fi
  done
  ocamlfind install -destdir $RPM_BUILD_ROOT/usr/lib/ocaml/site-lib/ ${pkg} 
$allfiles
  cd ../..
done
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/
cp -r doc $RPM_BUILD_ROOT/usr/share/doc/ocaml-rpc-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc /usr/share/doc
/usr/lib/ocaml/site-lib/*

%changelog
* Mon Nov 23 2004 Christophe Guilloux <address@hidden> 0.4.1-1mdk
- initial spec

# end of file

reply via email to

[Prev in Thread] Current Thread [Next in Thread]