Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release-src > by-pkgid > 28a4c09fc6d2a47628f9cf63408614ec > files > 1

ocaml-ocamlagrep-1.0-7.mga5.src.rpm

Name:           ocaml-ocamlagrep
Version:        1.0
Release:        %mkrel 7
Summary:        String searching with errors
License:        LGPL
Group:          Development/OCaml
URL:            http://pauillac.inria.fr/~xleroy/software.html#agrep
Source0:        http://forge.ocamlcore.org/frs/download.php/330/ocamlagrep-%{version}.tar.gz
BuildRequires:  ocaml

%description
This OCaml library implements the Wu-Manber algorithm for string searching
with errors, popularized by the "agrep" Unix command and the "glimpse" file
indexing tool.

%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name} = %{version}-%{release}

%description devel
This package contains the development files needed to build applications
using %{name}.

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

%build
%make

mkdir html
ocamldoc -d html -html agrep.mli

cat > META <<EOF
name = "agrep"
description = "string searching with errors"
version = "%{version}"
archive(byte) = "agrep.cma"
archive(native) = "agrep.cmxa"
EOF

%install
%define destdir %{buildroot}/%{_libdir}/ocaml/agrep
%define stubdest %{buildroot}/%{_libdir}/ocaml/stublibs
install -d -m 755 %{destdir}
install -d -m 755 %{stubdest}
install -m 644 META %{destdir}
install -m 644 agrep.cmi agrep.cma agrep.cmxa agrep.a agrep.mli %{destdir}
install -m 644 libagrep.a %{destdir}
install -m 755 dllagrep.so %{stubdest}

%files
%doc README
%dir %{_libdir}/ocaml/agrep
%{_libdir}/ocaml/agrep/META
%{_libdir}/ocaml/agrep/*.cmi
%{_libdir}/ocaml/agrep/*.cma
%{_libdir}/ocaml/stublibs/*.so

%files devel
%doc html/
%doc testagrep.ml
%{_libdir}/ocaml/agrep/*.cmxa
%{_libdir}/ocaml/agrep/*.a
%{_libdir}/ocaml/agrep/*.mli


%changelog
* Wed Oct 15 2014 umeabot <umeabot> 1.0-7.mga5
+ Revision: 746406
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 1.0-6.mga5
+ Revision: 683073
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 1.0-5.mga4
+ Revision: 508506
- Mageia 4 Mass Rebuild

* Sun Jan 13 2013 umeabot <umeabot> 1.0-4.mga3
+ Revision: 361503
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Mon Oct 01 2012 blue_prawn <blue_prawn> 1.0-3.mga3
+ Revision: 301675
- new rpm group for ocaml

* Wed Jan 18 2012 blue_prawn <blue_prawn> 1.0-2.mga2
+ Revision: 198005
- increm %%mkrel
- .a file missing

* Wed Jan 18 2012 blue_prawn <blue_prawn> 1.0-1.mga2
+ Revision: 197977
- imported package ocaml-ocamlagrep