|
|
f275b85 |
%ifarch %{ocaml_native_compiler}
|
|
|
f275b85 |
%global native_compiler 1
|
|
|
f275b85 |
%else
|
|
|
f275b85 |
%global native_compiler 0
|
|
|
f275b85 |
%endif
|
|
|
f275b85 |
|
|
|
f275b85 |
Name: ocaml-re
|
|
|
f275b85 |
Version: 1.7.1
|
|
|
defff7f |
Release: 3%{?dist}
|
|
|
f275b85 |
Summary: A regular expression library for OCaml
|
|
|
f275b85 |
|
|
|
f275b85 |
License: LGPLv2 with exceptions
|
|
|
f275b85 |
URL: https://github.com/ocaml/ocaml-re
|
|
|
f275b85 |
Source0: https://github.com/ocaml/%{name}/archive/%{version}/ocaml-re-%{version}.tar.gz
|
|
|
f275b85 |
|
|
|
f275b85 |
BuildRequires: ocaml
|
|
|
f275b85 |
BuildRequires: ocaml-findlib
|
|
|
f275b85 |
BuildRequires: ocaml-ocamldoc
|
|
|
f275b85 |
BuildRequires: ocaml-ocamlbuild
|
|
|
f275b85 |
|
|
|
f275b85 |
%description
|
|
|
f275b85 |
A pure OCaml regular expression library. Supports Perl-style regular
|
|
|
f275b85 |
expressions, Posix extended regular expressions, Emacs-style regular
|
|
|
f275b85 |
expressions, and shell-style file globbing. It is also possible to
|
|
|
f275b85 |
build regular expressions by combining simpler regular expressions.
|
|
|
f275b85 |
There is also a subset of the PCRE interface available in the Re.pcre
|
|
|
f275b85 |
library.
|
|
|
f275b85 |
|
|
|
f275b85 |
%package devel
|
|
|
f275b85 |
Summary: Development files for %{name}
|
|
|
f275b85 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
f275b85 |
|
|
|
f275b85 |
%description devel
|
|
|
f275b85 |
The %{name}-devel package contains libraries and signature files for
|
|
|
f275b85 |
developing applications that use %{name}.
|
|
|
f275b85 |
|
|
|
f275b85 |
%prep
|
|
|
f275b85 |
%setup -q -n ocaml-re-%{version}
|
|
|
f275b85 |
|
|
|
f275b85 |
%build
|
|
|
f275b85 |
./configure --prefix %{prefix}
|
|
|
f275b85 |
make %{?_smp_mflags}
|
|
|
f275b85 |
make doc
|
|
|
f275b85 |
|
|
|
f275b85 |
%install
|
|
|
f275b85 |
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
|
|
f275b85 |
mkdir -p $OCAMLFIND_DESTDIR
|
|
|
f275b85 |
make install
|
|
|
f275b85 |
|
|
|
f275b85 |
# We want to manually get the documentation anyway especially
|
|
|
f275b85 |
# since documentation gets put in _docdir/re by buildsystem.
|
|
|
f275b85 |
rm -rf %{buildroot}%{_docdir}/re/
|
|
|
f275b85 |
|
|
|
f275b85 |
%files
|
|
|
f275b85 |
%doc CHANGES
|
|
|
f275b85 |
%doc README.md
|
|
|
f275b85 |
%license LICENSE
|
|
|
f275b85 |
%{_libdir}/ocaml/re
|
|
|
f275b85 |
%if %{native_compiler}
|
|
|
f275b85 |
%exclude %{_libdir}/ocaml/re/*.a
|
|
|
f275b85 |
%exclude %{_libdir}/ocaml/re/*.cmxa
|
|
|
f275b85 |
%exclude %{_libdir}/ocaml/re/*.cmx
|
|
|
f275b85 |
%endif
|
|
|
f275b85 |
%exclude %{_libdir}/ocaml/re/*.mli
|
|
|
f275b85 |
|
|
|
f275b85 |
%files devel
|
|
|
f275b85 |
%doc re-api.docdir/*
|
|
|
f275b85 |
%if %{native_compiler}
|
|
|
f275b85 |
%{_libdir}/ocaml/re/*.a
|
|
|
f275b85 |
%{_libdir}/ocaml/re/*.cmx
|
|
|
f275b85 |
%{_libdir}/ocaml/re/*.cmxa
|
|
|
f275b85 |
%endif
|
|
|
f275b85 |
%{_libdir}/ocaml/re/*.mli
|
|
|
f275b85 |
|
|
|
f275b85 |
%changelog
|
|
|
defff7f |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-3
|
|
|
defff7f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
defff7f |
|
|
|
93778da |
* Sat Dec 02 2017 Richard W.M. Jones <rjones@redhat.com> - 1.7.1-2
|
|
|
93778da |
- OCaml 4.06.0 rebuild.
|
|
|
93778da |
|
|
|
f275b85 |
* Tue Aug 15 2017 Ben Rosser <rosser.bjr@gmail.com> - 1.7.1-1
|
|
|
f275b85 |
- Update to latest ocaml-re release.
|
|
|
f275b85 |
- Use configure script directly in build section.
|
|
|
f275b85 |
- Do parallel build using smp_flags macro.
|
|
|
f275b85 |
|
|
|
f275b85 |
* Thu Sep 3 2015 Jon Ludlam <jonathan.ludlam@citrix.com> - 1.4.1-1
|
|
|
f275b85 |
- New upstream release
|
|
|
f275b85 |
- Remove upstreamed patch
|
|
|
f275b85 |
|
|
|
f275b85 |
* Tue Feb 24 2015 Jon Ludlam <jonathan.ludlam@citrix.com> - 1.2.2-4
|
|
|
f275b85 |
- Fix missing 'isa' macro in devel depends
|
|
|
f275b85 |
|
|
|
f275b85 |
* Sat Jan 24 2015 Jon Ludlam <jonathan.ludlam@citrix.com> - 1.2.2-3
|
|
|
f275b85 |
- Change patch filename to have .patch suffix
|
|
|
f275b85 |
- Remove whitespace
|
|
|
f275b85 |
|
|
|
f275b85 |
* Fri Dec 12 2014 Jon Ludlam <jonathan.ludlam@citrix.com> - 1.2.2-2
|
|
|
f275b85 |
- Minor updates to the SPEC file. Now rpmlint gives no errors.
|
|
|
f275b85 |
|
|
|
f275b85 |
* Sat Jun 7 2014 David Scott <dave.scott@citrix.com> - 1.2.2-1
|
|
|
f275b85 |
- Update to 1.2.2
|
|
|
f275b85 |
|
|
|
f275b85 |
* Fri May 30 2014 Euan Harris <euan.harris@citrix.com> - 1.2.1-2
|
|
|
f275b85 |
- Split files correctly between base and devel packages
|
|
|
f275b85 |
|
|
|
f275b85 |
* Thu May 30 2013 David Scott <dave.scott@eu.citrix.com> - 1.2.1-1
|
|
|
f275b85 |
- Initial package
|
|
|
f275b85 |
|