New upstream version 7.0.2.
- Rebuild for OCaml 4.00.1. - Fix homepage and source. - Clean up the spec file.
This commit is contained in:
parent
3c5fb56d57
commit
e6d874badf
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
release-6.0.1.tar.bz2
|
||||
/release-6.1.1.tar.bz2
|
||||
/release-6.2.5.tar.bz2
|
||||
/pcre-ocaml-7.0.2.tar.gz
|
||||
|
@ -1,15 +1,14 @@
|
||||
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||
%define debug_package %{nil}
|
||||
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||
%global debug_package %{nil}
|
||||
|
||||
Name: ocaml-pcre
|
||||
Version: 6.2.5
|
||||
Release: 4%{?dist}
|
||||
Version: 7.0.2
|
||||
Release: 1%{?dist}
|
||||
Summary: Perl compatibility regular expressions (PCRE) for OCaml
|
||||
|
||||
Group: Development/Libraries
|
||||
License: LGPLv2
|
||||
URL: http://www.ocaml.info/home/ocaml_sources.html#pcre-ocaml
|
||||
Source0: http://hg.ocaml.info/release/pcre-ocaml/archive/release-%{version}.tar.bz2
|
||||
URL: https://bitbucket.org/mmottl/pcre-ocaml
|
||||
Source0: https://bitbucket.org/mmottl/pcre-ocaml/downloads/pcre-ocaml-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
ExcludeArch: sparc64 s390 s390x
|
||||
|
||||
@ -18,9 +17,6 @@ BuildRequires: ocaml-findlib-devel
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: gawk
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
|
||||
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
|
||||
|
||||
%description
|
||||
Perl compatibility regular expressions (PCRE) for OCaml.
|
||||
@ -28,7 +24,6 @@ Perl compatibility regular expressions (PCRE) for OCaml.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
# This isn't quite right - we need to specify same architecture of pcre-devel
|
||||
Requires: pcre-devel
|
||||
@ -40,7 +35,11 @@ developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n pcre-ocaml-release-%{version}
|
||||
%setup -q -n pcre-ocaml-%{version}
|
||||
./configure \
|
||||
--prefix %{_prefix} \
|
||||
--docdir %{_docdir} \
|
||||
--destdir $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%build
|
||||
@ -49,11 +48,10 @@ make all
|
||||
%else
|
||||
make -C lib byte-code-library
|
||||
%endif
|
||||
strip lib/dll*.so
|
||||
strip _build/lib/dll*.so
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
export DESTDIR=$RPM_BUILD_ROOT
|
||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||
@ -63,14 +61,12 @@ make NATIVE=true install
|
||||
make LIBINSTALL_FILES="pcre.mli pcre.cmi pcre.cma libpcre_stubs.a dllpcre_stubs.so" install
|
||||
%endif
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
# Installs API docs in %{_docdir}/api. Install this using %doc instead.
|
||||
mv $RPM_BUILD_ROOT%{_docdir}/api .
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.txt
|
||||
%doc COPYING.txt
|
||||
%{_libdir}/ocaml/pcre
|
||||
%if %opt
|
||||
%exclude %{_libdir}/ocaml/pcre/*.a
|
||||
@ -82,8 +78,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.txt
|
||||
%doc COPYING.txt README.md api
|
||||
%if %opt
|
||||
%{_libdir}/ocaml/pcre/*.a
|
||||
%{_libdir}/ocaml/pcre/*.cmxa
|
||||
@ -92,6 +87,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Oct 29 2012 Richard W.M. Jones <rjones@redhat.com> - 7.0.2-1
|
||||
- New upstream version 7.0.2.
|
||||
- Rebuild for OCaml 4.00.1.
|
||||
- Fix homepage and source.
|
||||
- Clean up the spec file.
|
||||
|
||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2.5-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user