rpms/ocaml-pcre/devel ocaml-pcre.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Richard W.M. Jones (rjones) fedora-extras-commits at redhat.com
Wed Aug 1 17:40:41 UTC 2007


Author: rjones

Update of /cvs/pkgs/rpms/ocaml-pcre/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28639/devel

Modified Files:
	.cvsignore sources 
Added Files:
	ocaml-pcre.spec 
Log Message:
Initial import.



--- NEW FILE ocaml-pcre.spec ---
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%define debug_package %{nil}

Name:           ocaml-pcre
Version:        5.11.4
Release:        5%{?dist}
Summary:        Perl compatibility regular expressions (PCRE) for OCaml

Group:          Development/Libraries
License:        LGPL
URL:            http://www.ocaml.info/home/ocaml_sources.html
Source0:        http://www.ocaml.info/ocaml_sources/pcre-ocaml-5.11.4.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  ocaml, ocaml-findlib-devel, pcre-devel

%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.


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


%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.


%prep
%setup -q -n pcre-ocaml-%{version}


%build
%if %opt
make all
%else
make -C lib byte-code-library
%endif


%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
%if %opt
make NATIVE=true install
%else
make LIBINSTALL_FILES="pcre.mli pcre.cmi pcre.cma libpcre_stubs.a dllpcre_stubs.so" install
%endif


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc LICENSE README
%{_libdir}/ocaml/pcre
%if %opt
%exclude %{_libdir}/ocaml/pcre/*.a
%exclude %{_libdir}/ocaml/pcre/*.cmxa
%endif
%exclude %{_libdir}/ocaml/pcre/*.mli
%{_libdir}/ocaml/stublibs/*.so
%{_libdir}/ocaml/stublibs/*.so.owner


%files devel
%defattr(-,root,root,-)
%doc LICENSE README
%if %opt
%{_libdir}/ocaml/pcre/*.a
%{_libdir}/ocaml/pcre/*.cmxa
%endif
%{_libdir}/ocaml/pcre/*.mli


%changelog
* Mon Jun 11 2007 Richard W.M. Jones <rjones at redhat.com> - 5.11.4-5
- Updated to latest packaging guidelines.

* Sat Jun  2 2007 Richard W.M. Jones <rjones at redhat.com> - 5.11.4-4
- Handle bytecode-only architectures.

* Sat May 26 2007 Richard W.M. Jones <rjones at redhat.com> - 5.11.4-3
- Put the stubs in stublibs subdirectory.

* Fri May 25 2007 Richard W.M. Jones <rjones at redhat.com> - 5.11.4-2
- Use ocaml find-requires, find-provides

* Sat May 19 2007 Richard W.M. Jones <rjones at redhat.com> - 5.11.4-1
- Initial RPM release.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ocaml-pcre/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	1 Aug 2007 16:26:34 -0000	1.1
+++ .cvsignore	1 Aug 2007 17:40:11 -0000	1.2
@@ -0,0 +1 @@
+pcre-ocaml-5.11.4.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ocaml-pcre/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	1 Aug 2007 16:26:34 -0000	1.1
+++ sources	1 Aug 2007 17:40:11 -0000	1.2
@@ -0,0 +1 @@
+6d5b1f4073b8a8b08cb323112df542d2  pcre-ocaml-5.11.4.tar.gz




More information about the fedora-extras-commits mailing list