commit d1c09c81b801b0bdb18d7ea15a0f8830ec90023dc00126169a62960b5bb75e64 Author: Olaf Hering Date: Sun Nov 8 09:04:44 2015 +0000 Accepting request 342893 from home:frispete:ocaml SRing a couple of packages, that google-drive-ocamlfuse relies on... OBS-URL: https://build.opensuse.org/request/show/342893 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-cppo?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..061c997 --- /dev/null +++ b/_service @@ -0,0 +1,7 @@ + + + mjambon.com + http + /releases/cppo/cppo-1.0.0.tar.gz + + diff --git a/_service:download_url:cppo-1.0.0.tar.gz b/_service:download_url:cppo-1.0.0.tar.gz new file mode 100644 index 0000000..9f2795c --- /dev/null +++ b/_service:download_url:cppo-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4cbb7d9efe028563e09f778e1a24db3effd6a0dbb620a81950402b83f1652fca +size 21469 diff --git a/ocaml-cppo.changes b/ocaml-cppo.changes new file mode 100644 index 0000000..560bd06 --- /dev/null +++ b/ocaml-cppo.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Jan 3 18:52:35 UTC 2015 - hpj@urpla.net + +- initial build: version 1.0.0 + diff --git a/ocaml-cppo.spec b/ocaml-cppo.spec new file mode 100644 index 0000000..2cf2404 --- /dev/null +++ b/ocaml-cppo.spec @@ -0,0 +1,60 @@ +# +# spec file for package ocaml-cppo +# +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 LISA GmbH, Bingen, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: ocaml-cppo +Version: 1.0.0 +Release: 1 +License: BSD-2-Clause +Summary: The C preprocessor written in OCaml +Url: http://mjambon.com/cppo.html +Group: Development/Libraries/Other +Source: http://mjambon.com/releases/cppo/cppo-%{version}.tar.gz +BuildRequires: ocaml-easy-format +BuildRequires: ocaml-findlib +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Cppo is an equivalent of the C preprocessor targeted at the OCaml language and +its variants. + +The main purpose of cppo is to provide a lightweight tool for simple macro +substitution (#define) and file inclusion (#include) for the occasional case +when this is useful in OCaml. Processing specific sections of files by calling +external programs is also possible via #ext directives. + +The implementation of cppo relies on the standard library of OCaml and on the +standard parsing tools Ocamllex and Ocamlyacc, which contribute to the +robustness of cppo across OCaml versions. + +%prep +%setup -qn cppo-%{version} + +%build +make %{?_smp_mflags} + +%install +export OCAMLFIND_DESTDIR=%{buildroot}$(ocamlfind printconf destdir) +mkdir -p %{buildroot}%{_bindir} $OCAMLFIND_DESTDIR +make install BINDIR="%{buildroot}%{_bindir}" + +%files +%defattr(-,root,root) +%doc Changes LICENSE README.md +%{_bindir}/cppo +%{_libdir}/ocaml/cppo_ocamlbuild +