diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2014-01-21 21:42:22 +0700 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2014-01-21 21:42:22 +0700 |
commit | fb4f31f9c0bf03ef5de92ded03d82542460efc36 (patch) | |
tree | 68af83218b3bd31942c7c144e3588469168f15ac | |
parent | 31060d1f8180b72096fd2f437df88dee9b93455a (diff) | |
download | specs-fb4f31f9c0bf03ef5de92ded03d82542460efc36.tar.gz specs-fb4f31f9c0bf03ef5de92ded03d82542460efc36.tar.xz specs-fb4f31f9c0bf03ef5de92ded03d82542460efc36.zip |
ocaml-easy-format: review feedbacks
-rw-r--r-- | ocaml/ocaml-easy-format.spec | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/ocaml/ocaml-easy-format.spec b/ocaml/ocaml-easy-format.spec index 5d61a97..67b4a49 100644 --- a/ocaml/ocaml-easy-format.spec +++ b/ocaml/ocaml-easy-format.spec @@ -1,23 +1,25 @@ %global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) +%if !%{opt} %global debug_package %{nil} -%global _use_internal_dependency_generator 0 -%global __find_requires /usr/lib/rpm/ocaml-find-requires.sh -%global __find_provides /usr/lib/rpm/ocaml-find-provides.sh -%define libname %(echo %{name} | sed -e 's/^ocaml-//') +%endif Name: ocaml-easy-format Version: 1.0.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: High-level and functional interface to the Format module License: BSD URL: http://mjambon.com/easy-format.html -Source0: http://mjambon.com/releases/easy-format/easy-format-1.0.2.tar.gz +Source0: http://mjambon.com/releases/easy-format/easy-format-%{version}.tar.gz + +ExclusiveArch: %{ocaml_arches} BuildRequires: ocaml >= 3.10.0 -BuildRequires: ocaml-findlib-devel +BuildRequires: ocaml-findlib BuildRequires: ocaml-ocamldoc +%global libname %(echo %{name} | sed -e 's/^ocaml-//') + %description This module offers a high-level and functional interface to the Format module of the OCaml standard library. It is a pretty-printing @@ -25,22 +27,22 @@ facility, i.e. it takes as input some code represented as a tree and formats this code into the most visually satisfying result, breaking and indenting lines of code where appropriate. -Input data must be first modelled and converted into a tree using 3 +Input data must be first modeled and converted into a tree using 3 kinds of nodes: atoms lists - labelled nodes + labeled nodes Atoms represent any text that is guaranteed to be printed as-is. Lists can model any sequence of items such as arrays of data or lists of -definitions that are labelled with something like "int main", "let x +definitions that are labeled with something like "int main", "let x =" or "x:". %package devel Summary: Development files for %{name} -Requires: %{name} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and signature files for @@ -49,24 +51,25 @@ developing applications that use %{name}. %prep %setup -q -n %{libname}-%{version} +sed -i.add-debuginfo 's/ocamlopt/ocamlopt -g/;s/ocamlc \(-[co]\)/ocamlc -g \1/' Makefile %build -make %if %opt -make opt +make %{?_smp_mflags} +%else +make %{?_smp_mflags} all %endif %install -rm -rf $RPM_BUILD_ROOT # These rules work if the library uses 'ocamlfind install' to install itself. export DESTDIR=$RPM_BUILD_ROOT export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR make install -strip $OCAMLFIND_DESTDIR/%{libname}/*.cmxs +#strip $OCAMLFIND_DESTDIR/%{libname}/*.cmxs %files @@ -74,20 +77,23 @@ strip $OCAMLFIND_DESTDIR/%{libname}/*.cmxs %{_libdir}/ocaml/%{libname}/ %if %opt %exclude %{_libdir}/ocaml/*/*.cmx +%exclude %{_libdir}/ocaml/*/*.o %endif %exclude %{_libdir}/ocaml/*/*.mli -%exclude %{_libdir}/ocaml/*/*.o %files devel %doc LICENSE README.md Changes %if %opt %{_libdir}/ocaml/*/*.cmx +%{_libdir}/ocaml/*/*.o %endif %{_libdir}/ocaml/*/*.mli -%{_libdir}/ocaml/*/*.o %changelog +* Tue Jan 21 2014 Michel Salim <salimma@fedoraproject.org> - 1.0.2-2 +- Incorporate review feedback + * Mon Jan 20 2014 Michel Salim <salimma@fedoraproject.org> - 1.0.2-1 - Initial package |