rpms/ocaml-deriving/devel ocaml-deriving-no-link-libs.patch, NONE, 1.1 ocaml-deriving.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 May 14 20:20:59 UTC 2008
- Previous message (by thread): rpms/ocaml-deriving/F-9 ocaml-deriving-no-link-libs.patch, NONE, 1.1 ocaml-deriving.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/ocaml-deriving/F-8 ocaml-deriving.spec,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: rjones
Update of /cvs/pkgs/rpms/ocaml-deriving/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv377/devel
Modified Files:
.cvsignore sources
Added Files:
ocaml-deriving-no-link-libs.patch ocaml-deriving.spec
Log Message:
Initial import.
ocaml-deriving-no-link-libs.patch:
--- NEW FILE ocaml-deriving-no-link-libs.patch ---
--- OCamlMakefile.old 2008-02-29 10:05:41.000000000 +0000
+++ OCamlMakefile 2008-02-29 10:07:39.000000000 +0000
@@ -904,7 +904,7 @@
ifndef LIB_PACK_NAME
$(RESULT).cma: $(REAL_IMPL_INTF) $(MAKEDLL) $(EXTRADEPS) $(RESULTDEPS)
- $(REAL_OCAMLFIND) $(REAL_OCAMLC) -a $(ALL_LDFLAGS) \
+ $(REAL_OCAMLFIND) $(REAL_OCAMLC) -a \
$(OBJS_LIBS) -o $@ $(OCAMLBLDFLAGS) $(REAL_IMPL)
$(RESULT).cmxa $(RESULT).$(EXT_LIB): $(REAL_IMPL_INTF) $(EXTRADEPS) $(RESULTDEPS)
@@ -920,7 +920,7 @@
endif
$(RESULT).cma: $(LIB_PACK_NAME).cmi $(LIB_PACK_NAME).cmo $(MAKEDLL) $(EXTRADEPS) $(RESULTDEPS)
- $(REAL_OCAMLFIND) $(REAL_OCAMLC) -a $(ALL_LDFLAGS) \
+ $(REAL_OCAMLFIND) $(REAL_OCAMLC) -a \
$(OBJS_LIBS) -o $@ $(OCAMLBLDFLAGS) $(LIB_PACK_NAME).cmo
$(RESULT).cmxa $(RESULT).$(EXT_LIB): $(LIB_PACK_NAME).cmi $(LIB_PACK_NAME).cmx $(EXTRADEPS) $(RESULTDEPS)
--- NEW FILE ocaml-deriving.spec ---
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%define debug_package %{nil}
Name: ocaml-deriving
Version: 0.1.1a
Release: 3%{?dist}
Summary: Extension to OCaml for deriving functions from types
Group: Development/Libraries
License: MIT
URL: http://code.google.com/p/deriving/
Source0: http://deriving.googlecode.com/files/deriving-%{version}.tar.gz
Patch0: ocaml-deriving-no-link-libs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ocaml >= 3.10.0
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-camlp4-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
Extension to OCaml for deriving functions from type declarations.
Includes derivers for pretty-printing, type-safe marshalling with
structure-sharing, dynamic typing, equality, and more.
%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 deriving-0.1.1
%patch0
%build
make
cat >META <<EOF
name="deriving"
version="%{version}"
requires="%{camlp4}"
description="%{description}"
# need a syntax here XXX
EOF
%check
cd tests
make
./tests
%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
mkdir -p $RPM_BUILD_ROOT%{_bindir}
ocamlfind install deriving \
META lib/*.cma lib/*.cmxa lib/*.a lib/*.mli lib/*.cmi lib/*.cmx
install -m 0755 syntax/deriving $RPM_BUILD_ROOT%{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/ocaml/deriving
%if %opt
%exclude %{_libdir}/ocaml/deriving/*.a
%exclude %{_libdir}/ocaml/deriving/*.cmxa
%exclude %{_libdir}/ocaml/deriving/*.cmx
%endif
%exclude %{_libdir}/ocaml/deriving/*.mli
%{_bindir}/*
%files devel
%defattr(-,root,root,-)
%doc COPYING README CHANGES
%if %opt
%{_libdir}/ocaml/deriving/*.a
%{_libdir}/ocaml/deriving/*.cmxa
%{_libdir}/ocaml/deriving/*.cmx
%endif
%{_libdir}/ocaml/deriving/*.mli
%changelog
* Mon May 10 2008 Richard W.M. Jones <rjones at redhat.com> - 0.1.1a-3
- Fix the License tag (MIT not BSD).
* Wed Mar 5 2008 Richard W.M. Jones <rjones at redhat.com> - 0.1.1a-2
- Remove ExcludeArch ppc64.
* Fri Feb 29 2008 Richard W.M. Jones <rjones at redhat.com> - 0.1.1a-1
- New upstream release which includes the license file.
- Patch OCamlMakefile so it doesn't statically link system libs with
the library.
* Thu Feb 28 2008 Richard W.M. Jones <rjones at redhat.com> - 0.1.1-1
- Initial RPM release.
- Lacks a license file so we cannot release it for review yet.
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ocaml-deriving/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 14 May 2008 15:44:54 -0000 1.1
+++ .cvsignore 14 May 2008 20:20:17 -0000 1.2
@@ -0,0 +1 @@
+deriving-0.1.1a.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ocaml-deriving/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 14 May 2008 15:44:54 -0000 1.1
+++ sources 14 May 2008 20:20:17 -0000 1.2
@@ -0,0 +1 @@
+e02ea89e27002c2690094cb5b7744d34 deriving-0.1.1a.tar.gz
- Previous message (by thread): rpms/ocaml-deriving/F-9 ocaml-deriving-no-link-libs.patch, NONE, 1.1 ocaml-deriving.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/ocaml-deriving/F-8 ocaml-deriving.spec,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list