From c5f71337ba3d071e2413a322519bff822e35091c Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 25 Dec 2021 21:28:22 +0100 Subject: [PATCH] - refreshed ocaml template, verbose bin/man files, GPL version, better Group --- ocamldsort.spec | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/ocamldsort.spec b/ocamldsort.spec index 3c92177..f3962fe 100644 --- a/ocamldsort.spec +++ b/ocamldsort.spec @@ -1,26 +1,26 @@ # # Conditional build: -%bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built) +%bcond_without ocaml_opt # native optimized binaries (bytecode is always built) -# not yet available on x32 (ocaml 4.02.1), remove when upstream will support it -%ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9 +# not yet available on x32 (ocaml 4.02.1), update when upstream will support it +%ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9 %undefine with_ocaml_opt %endif %define _enable_debug_packages 0 -Summary: Dependency sort tool for ocaml sources -Summary(pl.UTF-8): Program do sortowania zależności dla ocamla +Summary: Dependency sort tool for OCaml sources +Summary(pl.UTF-8): Program do sortowania zależności dla OCamla Name: ocamldsort Version: 0.16.0 Release: 1 -License: GPL -Group: Libraries +License: GPL v2+ +Group: Development/Tools Source0: %{name}-%{version}.tar.gz # Source0-md5: a435419deb26286d1994cdcbe4876df4 URL: http://www.normalesup.org/~ara/informatique.html -BuildRequires: ocaml >= 4.00 -BuildRequires: ocaml-camlp4 >= 4.00 +BuildRequires: ocaml >= 1:4.00 +BuildRequires: ocaml-camlp4 >= 1:4.00 %requires_eq ocaml-runtime BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -37,7 +37,7 @@ file for a typical makefile. %description -l pl.UTF-8 Komenda ocamldsort skanuje a następnie sortuje zbiór plików źródłowych -Ocamla (.ml i .mli). Sortowanie odbywa się z uwzględnieniem zachowania +OCamla (.ml i .mli). Sortowanie odbywa się z uwzględnieniem zachowania zależności między plikami. Posortowane nazwy plików wypisywane są w kolejności umożliwiającej ich łatwe skonsolidowanie. ocamldsort może być używane do kompilacji prostych projektów jako tak zwany @@ -61,7 +61,7 @@ install ocamldsort.opt $RPM_BUILD_ROOT%{_bindir}/ocamldsort %else install ocamldsort $RPM_BUILD_ROOT%{_bindir}/ocamldsort %endif -install ocamldsort.1 $RPM_BUILD_ROOT%{_mandir}/man1 +cp -p ocamldsort.1 $RPM_BUILD_ROOT%{_mandir}/man1 %clean rm -rf $RPM_BUILD_ROOT @@ -69,5 +69,5 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README Changes THANKS -%attr(755,root,root) %{_bindir}/* -%{_mandir}/man?/* +%attr(755,root,root) %{_bindir}/ocamldsort +%{_mandir}/man1/ocamldsort.1* -- 2.44.0