Репозитории ALT
5.1: | 1.2.1-alt4 |
4.1: | 1.2.1-alt4 |
4.0: | 1.1.2pl1-alt3 |
3.0: | 1.0.4-alt1 |
Другие репозитории
Upstream: | 1.2.1 |
Группа :: Разработка/ML
Пакет: findlib
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: findlib
Version: 1.1.2pl1
Release: alt3
Packager: Grigory Batalov <bga at altlinux.ru>
Summary: A module packaging tool for OCaml
License: Distributable
Group: Development/ML
Url: http://www.ocaml-programming.de/packages/documentation/findlib/
Source: http://www.ocaml-programming.de/packages/%name-%version.tar.gz
#Patch: findlib-0.7-alt.patch
#Patch1: findlib-0.9-dynlibs1.patch
Patch2: findlib-1.1.2pl1-alt-prefix.patch
Patch3: findlib-1.1.2pl1-alt-native.patch
Patch4: findlib-1.1.2pl1-alt-wizard.patch
Requires: ocaml = %{get_SVR ocaml}
BuildRequires(pre): ocaml
# Automatically added by buildreq on Sun Dec 24 2006
BuildRequires: XFree86-devel camlp4 labltk libncurses-devel ocaml-graphics ocaml-runtime
%package -n ocamlfind-mini
Summary: Minimal findlib script to be distributed with user libraries
Group: Development/ML
%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 O'Caml 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
%patch2 -p1
%patch3 -p2
%patch4 -p2
sed -i -e 's, at LIBDIR at ,%_libdir,g' src/findlib-toolbox/make_wizard.ml
%build
./configure -mandir %_mandir -config %_libdir/ocaml/etc/findlib.conf -with-toolbox
%make
%make opt
%install
%make_install install prefix=%buildroot
mkdir -p $RPM_BUILD_ROOT%_docdir/%name-%version
cp README INSTALL LICENSE $RPM_BUILD_ROOT%_docdir/%name-%version/
cp mini/ocamlfind-mini %buildroot%_bindir/ocamlfind-mini
# remove default byte-coded wizard and install native one
rm -f %buildroot%_libdir/ocaml/site-lib/findlib/make_wizard
install -m755 src/findlib-toolbox/make_wizard.opt %buildroot%_bindir/findlib-make-wizard
%files -n ocamlfind-mini
%doc mini/README
%_bindir/ocamlfind-mini
%files
%exclude %_bindir/ocamlfind-mini
%_bindir/*
%_libdir/ocaml/etc/*
%_libdir/ocaml/topfind
%_libdir/ocaml/site-lib/*
%_mandir/man?/*
%doc doc/* INSTALL LICENSE
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.1.2pl1
Release: alt3
Packager: Grigory Batalov <bga at altlinux.ru>
Summary: A module packaging tool for OCaml
License: Distributable
Group: Development/ML
Url: http://www.ocaml-programming.de/packages/documentation/findlib/
Source: http://www.ocaml-programming.de/packages/%name-%version.tar.gz
#Patch: findlib-0.7-alt.patch
#Patch1: findlib-0.9-dynlibs1.patch
Patch2: findlib-1.1.2pl1-alt-prefix.patch
Patch3: findlib-1.1.2pl1-alt-native.patch
Patch4: findlib-1.1.2pl1-alt-wizard.patch
Requires: ocaml = %{get_SVR ocaml}
BuildRequires(pre): ocaml
# Automatically added by buildreq on Sun Dec 24 2006
BuildRequires: XFree86-devel camlp4 labltk libncurses-devel ocaml-graphics ocaml-runtime
%package -n ocamlfind-mini
Summary: Minimal findlib script to be distributed with user libraries
Group: Development/ML
%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 O'Caml 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
%patch2 -p1
%patch3 -p2
%patch4 -p2
sed -i -e 's, at LIBDIR at ,%_libdir,g' src/findlib-toolbox/make_wizard.ml
%build
./configure -mandir %_mandir -config %_libdir/ocaml/etc/findlib.conf -with-toolbox
%make
%make opt
%install
%make_install install prefix=%buildroot
mkdir -p $RPM_BUILD_ROOT%_docdir/%name-%version
cp README INSTALL LICENSE $RPM_BUILD_ROOT%_docdir/%name-%version/
cp mini/ocamlfind-mini %buildroot%_bindir/ocamlfind-mini
# remove default byte-coded wizard and install native one
rm -f %buildroot%_libdir/ocaml/site-lib/findlib/make_wizard
install -m755 src/findlib-toolbox/make_wizard.opt %buildroot%_bindir/findlib-make-wizard
%files -n ocamlfind-mini
%doc mini/README
%_bindir/ocamlfind-mini
%files
%exclude %_bindir/ocamlfind-mini
%_bindir/*
%_libdir/ocaml/etc/*
%_libdir/ocaml/topfind
%_libdir/ocaml/site-lib/*
%_mandir/man?/*
%doc doc/* INSTALL LICENSE
%changelog
…
Полный changelog можно просмотреть здесь