Two more and lets get some sleep

Lukasz Dobrek dobrek at dobrek.de
Mon Dec 6 00:04:06 CET 2004


As in subject, lets get some sleep, sorry for second email but I forgot 
the context in the first :))

Dear dear,

This email encloses two spec files for two ocaml libraries which I would
be very gratefully if you could to add to cvs. It is
- ocaml-gregoriandate, and
- ocaml-dbi.

I had to introduce special macro %_vendor_name in both of them in order
to be able to follow the convention I guess initiated by Michal Moskal
(malekith) to call all ocaml related packages with "ocaml-" prefix. I
find this convention cool, so I did it that way. In case of objections,
comments, and so on. I will be very happy to here, follow and obey if
necessary :))

Sweet dreams,
Lukasz Dobrek.

-------------- next part --------------
# $Revision: 1.2 $, $Date: 2003/08/18 08:09:35 $
%define         _vendor_name ocamldbi
Summary:	database independent layer 
Summary(pl):	Niezalezne od bazydanych api dla ocamla.
Name:		ocaml-dbi
Version:        0.9.10
Release:	1
License:        GPL
Group:		Libraries
Source0:	http://savannah.nongnu.org/download/modcaml/%{_vendor_name}-%{version}.tar.gz
BuildRequires:	ocaml >= 3.04-7
%requires_eq	ocaml-runtime
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
ocamldbi is a database independent layer for Objective CAML (OCaml)
patterned upon Perl DBI.

Currently there are drivers for PostgreSQL and MySQL, and you can use
Perl DBD (database drivers) if you have Perl4Caml installed.

%package devel
Summary:	TEMPLATE binding for OCaml - development part
Summary(pl):	Wi±zania TEMPLATE dla OCamla - cze¶æ programistyczna
Group:		Development/Libraries
%requires_eq	ocaml

%description devel
ocamldbi is a database independent layer for Objective CAML (OCaml)
patterned upon Perl DBI.

Currently there are drivers for PostgreSQL and MySQL, and you can use
Perl DBD (database drivers) if you have Perl4Caml installed.
This package contains files needed to develop OCaml programs using
this library.

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

%build
%{__make} CC="%{__cc} %{rpmcflags} -fPIC" all opt

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/dbi
install *.cm[ixa]* *.a $RPM_BUILD_ROOT%{_libdir}/ocaml/dbi

install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -r examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}

install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/dbi
cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/dbi/META <<EOF
requires = ""
version = "%{version}"
directory = "+dbi"
archive(byte) = "dbi.cma"
archive(native) = "dbi.cmxa"
linkopts = ""
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%files devel
%defattr(644,root,root,755)
%doc COPYING.LIB *.mli
%dir %{_libdir}/ocaml/dbi
%{_libdir}/ocaml/dbi/*.cm[ixa]*
%{_libdir}/ocaml/dbi/*.a
%{_examplesdir}/%{name}-%{version}
%{_libdir}/ocaml/site-lib/dbi

%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: dbi-ocaml.spec,v $

-------------- next part --------------
# $Revision: 1.2 $, $Date: 2003/08/18 08:09:35 $
%define         _verndor_name gregoriandate
Summary:	Gregoriandate for Ocaml
Summary(pl):	Data w kalendazu gregorianskim dla Ocamla
Name:		ocaml-%{_verndor_name}
Version:        1.0.1
Release:	1
License:        GPL
Group:		Libraries
Source0:	http://merjis.com/_file/%{_verndor_name}-%{version}.tar.gz
BuildRequires:	ocaml >= 3.04-7
%requires_eq	ocaml-runtime
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Gregorian Date is a pure OCaml library for performing calculations based on the Gregorian calendar.

This is a library of useful date calculations using the Gregorian calendar, 
as used in most Western countries, and increasingly in the East. 
Although the Gregorian calendar was adopted in 1582, this library extends it back through to 1 AD.

It is inspired and derived from Perl's Date::Calc

%description -l pl


%package devel
Summary:	Gregoriandate for Ocaml - development part
Summary(pl):	Data w kalendazu gregorianskim dla Ocamla - cze¶æ programistyczna
Group:		Development/Libraries
%requires_eq	ocaml

%description devel
Gregorian Date is a pure OCaml library for performing calculations based on the Gregorian calendar.

This is a library of useful date calculations using the Gregorian calendar, 
as used in most Western countries, and increasingly in the East. 
Although the Gregorian calendar was adopted in 1582, this library extends it back through to 1 AD.

It is inspired and derived from Perl's Date::Calc
This package contains files needed to develop OCaml programs using
this library.

%description devel -l pl
Gregorian Date jest napisana w ocamlu biblioteka dla ocamla wykonujaca podstawowe obliczenia 
w kalendarzu Gregorianskim.

To biblioteka czesto uzywanych obliczen przy uzyciu kalendarza Gregorianskiego, uzywanego na Zahodniej 
polkuli, a i coraz czesciej na wschodniej. Mimo ze kaledaz Gregorianski zostal przyjety do uzycia w 1582 roku, 
ta biblioteka potrafi wykonywac obliczenia do 1 roku naszej ery.
Pakiet ten zawiera pliki niezbêdne do tworzenia programów u¿ywaj±cych
tej biblioteki.

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

%build
%{__make} CC="%{__cc} %{rpmcflags} -fPIC" all

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/gregoriandate
install *.cm[ixa]* *.a  $RPM_BUILD_ROOT%{_libdir}/ocaml/gregoriandate

install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}

install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/gregoriandate
cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/gregoriandate/META <<EOF
requires = ""
version = "%{version}"
directory = "+gregoriandate"
archive(byte) = "gregoriandate.cma"
archive(native) = "gregoriandate.cmxa"
linkopts = ""
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%files devel
%defattr(644,root,root,755)
%doc COPYING.LIB *.mli
%dir %{_libdir}/ocaml/gregoriandate
%{_libdir}/ocaml/gregoriandate/*.cm[ixa]*
%{_libdir}/ocaml/gregoriandate/*.a
%{_examplesdir}/%{name}-%{version}
%{_libdir}/ocaml/site-lib/gregoriandate

%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: gregoriandate-ocaml.spec,v $



More information about the pld-devel-en mailing list