rpms/ocaml-json-wheel/F-8 ocaml-json-wheel.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
Fri Mar 7 19:24:58 UTC 2008
Author: rjones
Update of /cvs/pkgs/rpms/ocaml-json-wheel/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27385/F-8
Modified Files:
.cvsignore sources
Added Files:
ocaml-json-wheel.spec
Log Message:
Initial CVS import.
--- NEW FILE ocaml-json-wheel.spec ---
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%define debug_package %{nil}
Name: ocaml-json-wheel
Version: 1.0.4
Release: 4%{?dist}
Summary: OCaml library for parsing JSON
Group: Development/Libraries
License: BSD
URL: http://martin.jambon.free.fr/json-wheel.html
Source0: http://martin.jambon.free.fr/json-wheel-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ocaml >= 3.10.0
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-ocamlnet-devel
BuildRequires: ocaml-pcre-devel
BuildRequires: 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
JSON library for OCaml following RFC 4627.
If you use this library, consider installing ocaml-json-static, the
syntax extension to the language which makes using JSON much easier.
%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 json-wheel-%{version}
%build
make
strip jsoncat
%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}
make BINDIR=$RPM_BUILD_ROOT%{_bindir} install
# Remove *.cmo and *.o files. These aren't needed for
# anything because they are included in the *.cma/*.a.
rm $RPM_BUILD_ROOT%{_libdir}/ocaml/json-wheel/*.cmo
rm $RPM_BUILD_ROOT%{_libdir}/ocaml/json-wheel/*.o
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_libdir}/ocaml/json-wheel
%if %opt
%exclude %{_libdir}/ocaml/json-wheel/*.a
%exclude %{_libdir}/ocaml/json-wheel/*.cmxa
%exclude %{_libdir}/ocaml/json-wheel/*.cmx
%endif
%exclude %{_libdir}/ocaml/json-wheel/*.mli
%exclude %{_libdir}/ocaml/json-wheel/*.ml
%{_bindir}/jsoncat
%files devel
%defattr(-,root,root,-)
%doc LICENSE Changes README html
%if %opt
%{_libdir}/ocaml/json-wheel/*.a
%{_libdir}/ocaml/json-wheel/*.cmxa
%{_libdir}/ocaml/json-wheel/*.cmx
%endif
%{_libdir}/ocaml/json-wheel/*.mli
%{_libdir}/ocaml/json-wheel/*.ml
%changelog
* Wed Mar 5 2008 Richard W.M. Jones <rjones at redhat.com> - 1.0.4-4
- Remove ExcludeArch ppc64.
* Wed Mar 5 2008 Richard W.M. Jones <rjones at redhat.com> - 1.0.4-3
- Don't distribute the *.cmo and *.o files.
- Better way to install jsoncat in the right directory.
* Sat Mar 1 2008 Richard W.M. Jones <rjones at redhat.com> - 1.0.4-2
- Missing BR ocaml-pcre-devel.
- Missing BR pcre-devel.
* Thu Feb 28 2008 Richard W.M. Jones <rjones at redhat.com> - 1.0.4-1
- Initial RPM release.
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ocaml-json-wheel/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 7 Mar 2008 17:48:53 -0000 1.1
+++ .cvsignore 7 Mar 2008 19:24:25 -0000 1.2
@@ -0,0 +1 @@
+json-wheel-1.0.4.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ocaml-json-wheel/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 7 Mar 2008 17:48:53 -0000 1.1
+++ sources 7 Mar 2008 19:24:25 -0000 1.2
@@ -0,0 +1 @@
+667e42357cc7e1719292c6a3342a6489 json-wheel-1.0.4.tar.bz2
More information about the fedora-extras-commits
mailing list