Package ocaml-curl: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | %{?optflags_lto:%global optflags_lto %optflags_lto -ffat-lto-objects} %global pkgname curl %define ocamlsitelib %_libdir/ocaml %define pkgsitelib %ocamlsitelib/%pkgname %define ocamlstublib %_libdir/ocaml/stublibs/ Name: ocaml-%pkgname Version: 0.9.2 Release: alt2 Summary: OCaml Curl library (ocurl) License: MIT Group: Development/ML Url: https://ygrek.org/p/ocurl/ VCS: https://github.com/ygrek/ocurl Source0: %name-%version.tar BuildRequires: ocaml ocaml-findlib libcurl-devel %description The Ocaml Curl Library (Ocurl) is an interface library for the programming language Ocaml to the networking library libcurl. %package devel Summary: Development files for %name Group: Development/ML Requires: %name = %version-%release %description devel The %name-devel package contains libraries and signature files for developing applications that use %name. %prep %setup %ifnarch %ocaml_native_arch sed -i 's/ curl_lwt\$(EXT_OBJ)//;s/ curl\$(EXT_LIB)//' Makefile.in %endif %build # Parallel builds don't work. unset MAKEFLAGS # Add -fPIC to avoid: # /usr/bin/ld: /usr/lib64/ocaml/curl/libcurl-helper.a(curl-helper.o): # relocation R_X86_64_32S against `.rodata' can not be used when # making a shared object; recompile with -fPIC CFLAGS="%optflags -fPIC" \ %configure --libdir=%_libdir --with-findlib make %install export DESTDIR=%buildroot export OCAMLFIND_DESTDIR=%buildroot%_libdir/ocaml mkdir -p %buildroot%ocamlsitelib %buildroot%ocamlstublib make install # Make clean in the examples dir so our docs don't contain binaries. make -C examples clean %ocaml_find_files %files -f ocaml-files.runtime %doc COPYING %ocamlstublib/*.so.owner %files devel -f ocaml-files.devel %doc examples/* %changelog * Thu Nov 16 2023 Anton Farygin <rider@altlinux.ru> 0.9.2-alt2 - added support for bytecode-only version of the ocaml package - fixed URL and VCS tags * Mon Nov 06 2023 Anton Farygin <rider@altlinux.ru> 0.9.2-alt1 - 0.9.2 * Sat Sep 18 2021 Anton Farygin <rider@altlinux.ru> 0.9.1-alt2 - fixed build with enabled LTO * Tue Feb 25 2020 Anton Farygin <rider@altlinux.ru> 0.9.1-alt1 - 0.9.1 * Fri Jan 24 2020 Anton Farygin <rider@altlinux.ru> 0.9.0-alt1 - 0.9.0 * Thu Aug 01 2019 Anton Farygin <rider@altlinux.ru> 0.8.2-alt3 - rebuilt with ocaml-4.08 * Thu Oct 18 2018 Anton Farygin <rider@altlinux.ru> 0.8.2-alt2 - rebuilt with ocaml-4.07.1 * Wed Sep 05 2018 Anton Farygin <rider@altlinux.ru> 0.8.2-alt1 - 0.8.2 * Thu May 17 2018 Anton Farygin <rider@altlinux.ru> 0.8.1-alt1 - 0.8.1 * Mon Jul 10 2017 Anton Farygin <rider@altlinux.ru> 0.7.9-alt3 - rebuild with ocaml 4.04.2 * Wed May 03 2017 Anton Farygin <rider@altlinux.ru> 0.7.9-alt2 - rebuild with ocaml 4.04.1 * Sun Apr 16 2017 Anton Farygin <rider@altlinux.ru> 0.7.9-alt1 - first build for ALT |