Sync from SUSE:SLFO:Main ocaml-gettext revision febe9ee3bb1dcbe0697f3a3d6fe69259
This commit is contained in:
commit
0044253869
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>testsuite</package>
|
||||
</multibuild>
|
18
_service
Normal file
18
_service
Normal file
@ -0,0 +1,18 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="exclude">patches</param>
|
||||
<param name="filename">ocaml-gettext</param>
|
||||
<param name="revision">9b7afc702bccace9a544b8efa2a28bc2b13371ed</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="submodules">disable</param>
|
||||
<param name="url">https://github.com/gildor478/ocaml-gettext.git</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionrewrite-pattern">[v]?([^+]+)(.*)</param>
|
||||
<param name="versionrewrite-replacement">\1</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled"/>
|
||||
</services>
|
BIN
ocaml-gettext-0.4.2.tar.xz
(Stored with Git LFS)
Normal file
BIN
ocaml-gettext-0.4.2.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
86
ocaml-gettext.changes
Normal file
86
ocaml-gettext.changes
Normal file
@ -0,0 +1,86 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 8 08:08:08 UTC 2023 - ohering@suse.de
|
||||
|
||||
- Remove dependency to Camomile
|
||||
The only consumer of this pkg (virt-top) does not need it
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 4 04:04:04 UTC 2022 - ohering@suse.de
|
||||
|
||||
- add bcond ocaml_gettext_testsuite to disable failing testsuite
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 21 21:21:21 UTC 2021 - ohering@suse.de
|
||||
|
||||
- remove dependency to ounit via _multibuild
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 20 20:20:20 UTC 2020 - ohering@suse.de
|
||||
|
||||
- Update to version 0.4.2
|
||||
Compatibility with OCaml 4.11
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 1 12:34:56 UTC 2019 - ohering@suse.de
|
||||
|
||||
- Require current dune macros
|
||||
- Update to version 0.4.1, via _service file
|
||||
Improve documentation layout.
|
||||
Migrate build system to dune.
|
||||
Move ocaml-xgettext from Camlp4 to ppx.
|
||||
- Remove sub packages
|
||||
- Remove ocaml-gettext-unix.patch
|
||||
- Remove ocaml-gettext-0.3.5-use-ocamlopt-g.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 25 13:04:54 UTC 2017 - ohering@suse.de
|
||||
|
||||
- Use Group: Development/Languages/OCaml
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 17 12:48:58 UTC 2017 - ohering@suse.de
|
||||
|
||||
- Wrap specfile conditionals to fix quilt setup
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 17 10:48:58 UTC 2017 - ohering@suse.de
|
||||
|
||||
- Remove autodeps for pre openSUSE 12.1 releases
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 10 08:23:44 UTC 2017 - olaf@aepfle.de
|
||||
|
||||
- stub-devel requires stub (bsc#1031359)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 20 13:36:28 UTC 2016 - ohering@suse.de
|
||||
|
||||
- Fix compile error with ocaml-4.03 (fate#320836)
|
||||
ocaml-gettext-unix.patch
|
||||
reenable all archs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 10 10:18:47 UTC 2015 - ohering@suse.de
|
||||
|
||||
- Add hardcoded Provides for pre 12.1 repos
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 16 22:27:56 UTC 2015 - mlatimer@suse.com
|
||||
|
||||
- Exclude s390x architecture
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 24 06:56:58 UTC 2015 - olaf@aepfle.de
|
||||
|
||||
- Update License to SUSE-LGPL-2.0-with-linking-exception
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 8 20:46:30 UTC 2014 - mlatimer@suse.com
|
||||
|
||||
- Update spec file to use ocaml-rpm-macros, remove
|
||||
ExclusiveArch, and ensure bytecode is built
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 5 18:14:52 UTC 2014 - mlatimer@suse.com
|
||||
|
||||
- Initial commit using upstream version 3.5
|
121
ocaml-gettext.spec
Normal file
121
ocaml-gettext.spec
Normal file
@ -0,0 +1,121 @@
|
||||
#
|
||||
# spec file for package ocaml-gettext
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%bcond_with ocaml_gettext_testsuite
|
||||
%define build_flavor @BUILD_FLAVOR@%nil
|
||||
%if "%build_flavor" == "testsuite"
|
||||
%if %{without ocaml_gettext_testsuite}
|
||||
ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%define nsuffix -testsuite
|
||||
%else
|
||||
%define nsuffix %nil
|
||||
%endif
|
||||
|
||||
%define pkg ocaml-gettext
|
||||
Name: %pkg%nsuffix
|
||||
Version: 0.4.2
|
||||
Release: 0
|
||||
%{?ocaml_preserve_bytecode}
|
||||
Summary: OCaml library for i18n
|
||||
License: SUSE-LGPL-2.0-with-linking-exception
|
||||
Group: Development/Languages/OCaml
|
||||
URL: https://opam.ocaml.org/packages/gettext
|
||||
Source0: %pkg-%version.tar.xz
|
||||
BuildRequires: ocaml
|
||||
BuildRequires: ocaml-dune
|
||||
BuildRequires: ocaml-rpm-macros >= 20230101
|
||||
%if 1
|
||||
BuildRequires: ocamlfind(compiler-libs.common)
|
||||
BuildRequires: ocamlfind(cppo)
|
||||
BuildRequires: ocamlfind(dune.configurator)
|
||||
BuildRequires: ocamlfind(fileutils)
|
||||
%endif
|
||||
|
||||
%if "%build_flavor" == "testsuite"
|
||||
BuildRequires: ocamlfind(fileutils)
|
||||
BuildRequires: ocamlfind(gettext)
|
||||
BuildRequires: ocamlfind(oUnit)
|
||||
BuildRequires: ocamlfind(str)
|
||||
%endif
|
||||
|
||||
#
|
||||
# camomile was used in old versions of this pkg.
|
||||
Obsoletes: ocaml-gettext-camomile < %version-%release
|
||||
Obsoletes: ocaml-gettext-stub < %version-%release
|
||||
Obsoletes: ocaml-gettext-stub-debuginfo < %version-%release
|
||||
Obsoletes: ocaml-gettext-stub-devel < %version-%release
|
||||
Provides: ocaml-gettext-camomile = %version-%release
|
||||
Provides: ocaml-gettext-stub = %version-%release
|
||||
Provides: ocaml-gettext-stub-debuginfo = %version-%release
|
||||
Provides: ocaml-gettext-stub-devel = %version-%release
|
||||
|
||||
%description
|
||||
Ocaml-gettext provides support for internationalization of Ocaml
|
||||
programs.
|
||||
|
||||
Constraints :
|
||||
|
||||
* provides a pure Ocaml implementation,
|
||||
* the API should be as close as possible to GNU gettext,
|
||||
* provides a way to automatically extract translatable
|
||||
strings from Ocaml source code.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %name
|
||||
Group: Development/Languages/OCaml
|
||||
Requires: %name = %version
|
||||
Obsoletes: ocaml-gettext-camomile-devel < %version-%release
|
||||
Provides: ocaml-gettext-camomile-devel = %version-%release
|
||||
|
||||
%description devel
|
||||
The %name-devel package contains libraries and signature files for
|
||||
developing applications that use %name.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %pkg-%version
|
||||
|
||||
%build
|
||||
dune_release_pkgs='gettext,gettext-stub'
|
||||
%ocaml_dune_setup
|
||||
%if "%build_flavor" == ""
|
||||
%ocaml_dune_build
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if "%build_flavor" == ""
|
||||
%ocaml_dune_install
|
||||
%ocaml_create_file_list
|
||||
grep -m1 '%%dir' %name.files.devel | tee %name.files.stub-devel
|
||||
%endif
|
||||
|
||||
%if "%build_flavor" == "testsuite"
|
||||
%check
|
||||
%ocaml_dune_test
|
||||
%endif
|
||||
|
||||
%if "%build_flavor" == ""
|
||||
%files -f %name.files
|
||||
%_bindir/*
|
||||
%_mandir/*/*
|
||||
|
||||
%files devel -f %name.files.devel
|
||||
|
||||
%endif
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user