Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
ocaml-csv
ocaml-csv.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ocaml-csv.spec of Package ocaml-csv
# # spec file for package ocaml-csv # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, 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-csv Version: 1.4.1 %{ocaml_preserve_bytecode} Release: 0 Summary: OCaml library for reading and writing CSV files License: LGPL-2.0+ Group: Development/Libraries/Other Url: https://github.com/Chris00/ocaml-csv Source0: csv-%{version}.tar.xz BuildRequires: gawk BuildRequires: ocaml >= 4.00.1 BuildRequires: ocaml-rpm-macros >= 4.02.1 BuildRequires: ocaml-extlib-devel >= 1.5.3-2 BuildRequires: ocaml-findlib-devel >= 1.3.3-3 BuildRequires: ocaml-ocamldoc BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This OCaml library can read and write CSV files, including all extensions used by Excel - eg. quotes, newlines, 8 bit characters in fields, quote-0 etc. The library comes with a handy command line tool called csvtool for handling CSV files from shell scripts. %package devel Summary: Development files for %{name} Group: Development/Libraries/Other 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 csv-%{version} %build ocaml setup.ml \ -configure \ --prefix %{_prefix} \ --destdir %{buildroot} make %{?_smp_mflags} %install export DESTDIR=%{buildroot} export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR make DESTDIR=%{buildroot} install %{?_smp_mflags} %if %{ocaml_native_compiler} mkdir -p $DESTDIR%{_bindir} install -m 0755 csvtool.native $DESTDIR%{_bindir}/csvtool strip $OCAMLFIND_DESTDIR/csv/csv.cmxs strip $DESTDIR%{_bindir}/csvtool %endif %check make %{?_smp_mflags} test %files %defattr(-,root,root,-) %doc LICENSE.txt %{_libdir}/ocaml/csv %if %{ocaml_native_compiler} %exclude %{_libdir}/ocaml/csv/*.a %exclude %{_libdir}/ocaml/csv/*.cmxa %exclude %{_libdir}/ocaml/csv/*.cmx %endif %exclude %{_libdir}/ocaml/csv/*.mli %{_bindir}/csvtool %files devel %defattr(-,root,root,-) %doc AUTHORS.txt LICENSE.txt README.txt %if %{ocaml_native_compiler} %{_libdir}/ocaml/csv/*.a %{_libdir}/ocaml/csv/*.cmxa %{_libdir}/ocaml/csv/*.cmx %endif %{_libdir}/ocaml/csv/*.mli %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor