Group :: Desenvolvimento/Outros
RPM: ocaml-bdb
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%set_verify_elf_method textrel=relaxed
%define oname ocamlbdb
Name: ocaml-bdb
Version: 4.3.21
Release: alt9
Summary: OCaml interface to Berkeley-DB
Packager: Boris Savelev <boris at altlinux.org>
Source: http://www.eecs.harvard.edu/~stein/%oname-%version.tar.gz
#Url: http://www.eecs.harvard.edu/~stein/ is not valid anymore!
License: GPL
Group: Development/Other
# Automatically added by buildreq on Sat Aug 23 2008
BuildRequires: libdb4-devel ocaml
Requires: %name-runtime = %version-%release
Obsoletes: %name-devel
Provides: %name-devel = %version-%release
%description
OCaml interface to Berkeley-DB.
This package contains the development files needed to build applications
using %name-runtime.
%package runtime
Summary: OCaml interface to Berkeley-DB
Group: Development/Other
%description runtime
OCaml interface to Berkeley-DB.
%prep
%setup -n %oname-%version
%build
%__subst 's:BDB_DIR=/usr/local/BerkeleyDB.4.3/:BDB_DIR=%prefix:g' Makefile
%__subst 's:/usr/local/lib:%_libdir:g' Makefile
%__subst 's:-ldb-4.1:-ldb:g' Makefile
%make
%install
mkdir -p %buildroot%_libdir/ocaml/bdb
install -m 644 bdb.cma bdb.cmi libcamlbdb.a %buildroot%_libdir/ocaml/bdb/
%files runtime
%doc CREDITS README
%dir %_libdir/ocaml/bdb
%_libdir/ocaml/bdb/*.cmi
%files
%_libdir/ocaml/bdb/*
%exclude %_libdir/ocaml/bdb/*.cmi
%changelog
…
Todas as alterações você pod ver aqui
%define oname ocamlbdb
Name: ocaml-bdb
Version: 4.3.21
Release: alt9
Summary: OCaml interface to Berkeley-DB
Packager: Boris Savelev <boris at altlinux.org>
Source: http://www.eecs.harvard.edu/~stein/%oname-%version.tar.gz
#Url: http://www.eecs.harvard.edu/~stein/ is not valid anymore!
License: GPL
Group: Development/Other
# Automatically added by buildreq on Sat Aug 23 2008
BuildRequires: libdb4-devel ocaml
Requires: %name-runtime = %version-%release
Obsoletes: %name-devel
Provides: %name-devel = %version-%release
%description
OCaml interface to Berkeley-DB.
This package contains the development files needed to build applications
using %name-runtime.
%package runtime
Summary: OCaml interface to Berkeley-DB
Group: Development/Other
%description runtime
OCaml interface to Berkeley-DB.
%prep
%setup -n %oname-%version
%build
%__subst 's:BDB_DIR=/usr/local/BerkeleyDB.4.3/:BDB_DIR=%prefix:g' Makefile
%__subst 's:/usr/local/lib:%_libdir:g' Makefile
%__subst 's:-ldb-4.1:-ldb:g' Makefile
%make
%install
mkdir -p %buildroot%_libdir/ocaml/bdb
install -m 644 bdb.cma bdb.cmi libcamlbdb.a %buildroot%_libdir/ocaml/bdb/
%files runtime
%doc CREDITS README
%dir %_libdir/ocaml/bdb
%_libdir/ocaml/bdb/*.cmi
%files
%_libdir/ocaml/bdb/*
%exclude %_libdir/ocaml/bdb/*.cmi
%changelog
…
Todas as alterações você pod ver aqui