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.0.1.tar.bz2
|
||||||
/release-6.1.1.tar.bz2
|
/release-6.1.1.tar.bz2
|
||||||
/release-6.2.5.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)
|
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||||
%define debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
Name: ocaml-pcre
|
Name: ocaml-pcre
|
||||||
Version: 6.2.5
|
Version: 7.0.2
|
||||||
Release: 4%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Perl compatibility regular expressions (PCRE) for OCaml
|
Summary: Perl compatibility regular expressions (PCRE) for OCaml
|
||||||
|
|
||||||
Group: Development/Libraries
|
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
URL: http://www.ocaml.info/home/ocaml_sources.html#pcre-ocaml
|
URL: https://bitbucket.org/mmottl/pcre-ocaml
|
||||||
Source0: http://hg.ocaml.info/release/pcre-ocaml/archive/release-%{version}.tar.bz2
|
Source0: https://bitbucket.org/mmottl/pcre-ocaml/downloads/pcre-ocaml-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
ExcludeArch: sparc64 s390 s390x
|
ExcludeArch: sparc64 s390 s390x
|
||||||
|
|
||||||
@ -18,9 +17,6 @@ BuildRequires: ocaml-findlib-devel
|
|||||||
BuildRequires: pcre-devel
|
BuildRequires: pcre-devel
|
||||||
BuildRequires: gawk
|
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
|
%description
|
||||||
Perl compatibility regular expressions (PCRE) for OCaml.
|
Perl compatibility regular expressions (PCRE) for OCaml.
|
||||||
@ -28,7 +24,6 @@ Perl compatibility regular expressions (PCRE) for OCaml.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
# This isn't quite right - we need to specify same architecture of pcre-devel
|
# This isn't quite right - we need to specify same architecture of pcre-devel
|
||||||
Requires: pcre-devel
|
Requires: pcre-devel
|
||||||
@ -40,7 +35,11 @@ developing applications that use %{name}.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pcre-ocaml-release-%{version}
|
%setup -q -n pcre-ocaml-%{version}
|
||||||
|
./configure \
|
||||||
|
--prefix %{_prefix} \
|
||||||
|
--docdir %{_docdir} \
|
||||||
|
--destdir $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -49,11 +48,10 @@ make all
|
|||||||
%else
|
%else
|
||||||
make -C lib byte-code-library
|
make -C lib byte-code-library
|
||||||
%endif
|
%endif
|
||||||
strip lib/dll*.so
|
strip _build/lib/dll*.so
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
export DESTDIR=$RPM_BUILD_ROOT
|
export DESTDIR=$RPM_BUILD_ROOT
|
||||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
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
|
make LIBINSTALL_FILES="pcre.mli pcre.cmi pcre.cma libpcre_stubs.a dllpcre_stubs.so" install
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Installs API docs in %{_docdir}/api. Install this using %doc instead.
|
||||||
%clean
|
mv $RPM_BUILD_ROOT%{_docdir}/api .
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%doc COPYING.txt
|
||||||
%doc LICENSE README.txt
|
|
||||||
%{_libdir}/ocaml/pcre
|
%{_libdir}/ocaml/pcre
|
||||||
%if %opt
|
%if %opt
|
||||||
%exclude %{_libdir}/ocaml/pcre/*.a
|
%exclude %{_libdir}/ocaml/pcre/*.a
|
||||||
@ -82,8 +78,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%doc COPYING.txt README.md api
|
||||||
%doc LICENSE README.txt
|
|
||||||
%if %opt
|
%if %opt
|
||||||
%{_libdir}/ocaml/pcre/*.a
|
%{_libdir}/ocaml/pcre/*.a
|
||||||
%{_libdir}/ocaml/pcre/*.cmxa
|
%{_libdir}/ocaml/pcre/*.cmxa
|
||||||
@ -92,6 +87,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user