2008-04-27 21:50:16 +00:00
|
|
|
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
Name: ocaml-gettext
|
2012-01-06 15:33:38 +00:00
|
|
|
Version: 0.3.4
|
2012-06-09 16:32:54 +00:00
|
|
|
Release: 3%{?dist}
|
2008-04-27 21:50:16 +00:00
|
|
|
Summary: OCaml library for i18n
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: LGPLv2+ with exceptions
|
2012-01-06 15:33:38 +00:00
|
|
|
URL: http://forge.ocamlcore.org/projects/ocaml-gettext
|
|
|
|
Source0: http://forge.ocamlcore.org/frs/download.php/676/ocaml-gettext-%{version}.tar.gz
|
2008-04-27 21:50:16 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2009-04-16 09:06:07 +00:00
|
|
|
ExcludeArch: sparc64 s390 s390x
|
2008-04-27 21:50:16 +00:00
|
|
|
|
2011-01-06 09:50:37 +00:00
|
|
|
BuildRequires: ocaml >= 3.12.0-3
|
2008-04-30 09:03:51 +00:00
|
|
|
BuildRequires: ocaml-findlib-devel >= 1.2.1-3
|
2008-04-27 21:50:16 +00:00
|
|
|
BuildRequires: ocaml-ocamldoc
|
|
|
|
BuildRequires: ocaml-camlp4-devel
|
2009-11-02 10:53:39 +00:00
|
|
|
BuildRequires: ocaml-fileutils-devel >= 0.4.0
|
2008-06-09 15:48:46 +00:00
|
|
|
BuildRequires: ocaml-ounit-devel
|
2008-04-27 21:50:16 +00:00
|
|
|
BuildRequires: docbook-style-xsl
|
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: libxml2
|
|
|
|
BuildRequires: chrpath
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
2011-01-06 09:50:37 +00:00
|
|
|
BuildRequires: ocaml-camomile-devel >= 0.8.1
|
2008-04-27 21:50:16 +00:00
|
|
|
BuildRequires: ocaml-camomile-data
|
|
|
|
|
2012-05-19 10:17:43 +00:00
|
|
|
# ocaml-gettext program needs camomile data files
|
2008-05-27 12:11:13 +00:00
|
|
|
Requires: ocaml-camomile-data
|
|
|
|
|
2008-04-27 21:50:16 +00:00
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh -i Asttypes -i Parsetree
|
|
|
|
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh -i Pr_gettext
|
|
|
|
|
|
|
|
|
|
|
|
%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/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
2008-05-27 12:11:13 +00:00
|
|
|
# BZ 446919.
|
2009-11-02 10:53:39 +00:00
|
|
|
Requires: ocaml-fileutils-devel >= 0.4.0
|
2008-05-27 12:11:13 +00:00
|
|
|
|
2008-04-27 21:50:16 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%package camomile
|
|
|
|
Summary: Parts of %{name} which depend on Camomile
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description camomile
|
|
|
|
The %{name}-camomile package contains the parts of %{name} which
|
|
|
|
depend on Camomile.
|
|
|
|
|
|
|
|
|
|
|
|
%package camomile-devel
|
|
|
|
Summary: Development files for %{name}-camomile
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description camomile-devel
|
|
|
|
The %{name}-camomile-devel package contains libraries and
|
|
|
|
signature files for developing applications that use
|
|
|
|
%{name}-camomile.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
./configure \
|
|
|
|
--libdir=%{_libdir} \
|
2011-12-21 15:22:06 +00:00
|
|
|
--enable-test \
|
|
|
|
--with-docbook-stylesheet=/usr/share/sgml/docbook/xsl-stylesheets
|
2011-12-21 14:49:28 +00:00
|
|
|
make all
|
2008-04-27 21:50:16 +00:00
|
|
|
|
2008-06-09 15:48:46 +00:00
|
|
|
%check
|
|
|
|
pushd test
|
|
|
|
../_build/bin/test
|
|
|
|
popd
|
|
|
|
|
2008-04-27 21:50:16 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
# make install in the package is screwed up completely. Install
|
|
|
|
# by hand instead.
|
|
|
|
export DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
|
|
|
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
|
2008-04-30 09:03:51 +00:00
|
|
|
# Remove *.o files - these shouldn't be distributed.
|
|
|
|
find _build -name '*.o' -exec rm {} \;
|
|
|
|
|
|
|
|
ocamlfind install gettext _build/lib/gettext/*
|
|
|
|
ocamlfind install gettext-stub _build/lib/gettext-stub/*
|
|
|
|
ocamlfind install gettext-camomile _build/lib/gettext-camomile/*
|
2008-06-09 15:48:46 +00:00
|
|
|
install -m 0755 _build/bin/ocaml-gettext $RPM_BUILD_ROOT%{_bindir}/
|
|
|
|
install -m 0755 _build/bin/ocaml-xgettext $RPM_BUILD_ROOT%{_bindir}/
|
2008-04-27 21:50:16 +00:00
|
|
|
|
|
|
|
strip $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
|
|
|
chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
|
|
|
strip $RPM_BUILD_ROOT%{_bindir}/ocaml-gettext
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
%{_libdir}/ocaml/gettext
|
|
|
|
%{_libdir}/ocaml/gettext-stub
|
|
|
|
%if %opt
|
|
|
|
%exclude %{_libdir}/ocaml/gettext/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/gettext/*.cmxa
|
2008-04-30 09:03:51 +00:00
|
|
|
%exclude %{_libdir}/ocaml/gettext/*.cmx
|
2008-04-27 21:50:16 +00:00
|
|
|
%exclude %{_libdir}/ocaml/gettext-stub/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/gettext-stub/*.cmxa
|
2008-04-30 09:03:51 +00:00
|
|
|
%exclude %{_libdir}/ocaml/gettext-stub/*.cmx
|
2008-04-27 21:50:16 +00:00
|
|
|
%endif
|
2009-11-02 10:53:39 +00:00
|
|
|
%exclude %{_libdir}/ocaml/gettext/*.ml
|
2008-04-30 09:03:51 +00:00
|
|
|
%exclude %{_libdir}/ocaml/gettext/*.mli
|
2009-11-02 10:53:39 +00:00
|
|
|
%exclude %{_libdir}/ocaml/gettext-stub/*.ml
|
2008-04-27 21:50:16 +00:00
|
|
|
%{_libdir}/ocaml/stublibs/*.so
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so.owner
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README CHANGELOG TODO
|
|
|
|
# %doc build/share/doc/html/*
|
|
|
|
%if %opt
|
|
|
|
%{_libdir}/ocaml/gettext/*.a
|
|
|
|
%{_libdir}/ocaml/gettext/*.cmxa
|
2008-04-30 09:03:51 +00:00
|
|
|
%{_libdir}/ocaml/gettext/*.cmx
|
2008-04-27 21:50:16 +00:00
|
|
|
%{_libdir}/ocaml/gettext-stub/*.a
|
|
|
|
%{_libdir}/ocaml/gettext-stub/*.cmxa
|
2008-04-30 09:03:51 +00:00
|
|
|
%{_libdir}/ocaml/gettext-stub/*.cmx
|
2008-04-27 21:50:16 +00:00
|
|
|
%endif
|
2009-11-02 10:53:39 +00:00
|
|
|
%{_libdir}/ocaml/gettext/*.ml
|
2008-04-30 09:03:51 +00:00
|
|
|
%{_libdir}/ocaml/gettext/*.mli
|
2009-11-02 10:53:39 +00:00
|
|
|
%{_libdir}/ocaml/gettext-stub/*.ml
|
2008-04-27 21:50:16 +00:00
|
|
|
%{_bindir}/ocaml-gettext
|
|
|
|
%{_bindir}/ocaml-xgettext
|
|
|
|
|
|
|
|
|
|
|
|
%files camomile
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
%{_libdir}/ocaml/gettext-camomile
|
|
|
|
%if %opt
|
|
|
|
%exclude %{_libdir}/ocaml/gettext-camomile/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/gettext-camomile/*.cmxa
|
2008-04-30 09:03:51 +00:00
|
|
|
%exclude %{_libdir}/ocaml/gettext-camomile/*.cmx
|
2008-04-27 21:50:16 +00:00
|
|
|
%endif
|
2008-04-30 09:03:51 +00:00
|
|
|
%exclude %{_libdir}/ocaml/gettext-camomile/*.mli
|
2008-04-27 21:50:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files camomile-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README
|
|
|
|
%if %opt
|
|
|
|
%{_libdir}/ocaml/gettext-camomile/*.a
|
|
|
|
%{_libdir}/ocaml/gettext-camomile/*.cmxa
|
2008-04-30 09:03:51 +00:00
|
|
|
%{_libdir}/ocaml/gettext-camomile/*.cmx
|
2008-04-27 21:50:16 +00:00
|
|
|
%endif
|
2008-04-30 09:03:51 +00:00
|
|
|
%{_libdir}/ocaml/gettext-camomile/*.mli
|
2008-04-27 21:50:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2012-06-09 16:32:54 +00:00
|
|
|
* Sat Jun 09 2012 Richard W.M. Jones <rjones@redhat.com> - 0.3.4-3
|
|
|
|
- Rebuild for OCaml 4.00.0.
|
|
|
|
|
2012-05-19 10:17:43 +00:00
|
|
|
* Sat May 19 2012 Richard W.M. Jones <rjones@redhat.com> - 0.3.4-2
|
|
|
|
- Bump release and rebuild for new OCaml on ARM.
|
|
|
|
- Enable ppc64 support for camomile.
|
|
|
|
|
2012-01-06 15:33:38 +00:00
|
|
|
* Fri Jan 6 2012 Richard W.M. Jones <rjones@redhat.com> - 0.3.4-1
|
|
|
|
- New upstream version 0.3.4.
|
|
|
|
- Remove patch, now upstream.
|
|
|
|
|
2011-12-21 15:22:06 +00:00
|
|
|
* Wed Dec 21 2011 Karsten Hopp <karsten@redhat.com> 0.3.3-8
|
|
|
|
- fix configure line
|
|
|
|
|
2011-12-21 14:49:28 +00:00
|
|
|
* Wed Dec 21 2011 Karsten Hopp <karsten@redhat.com> 0.3.3-7
|
|
|
|
- build with 'make all', not 'make' as that defaults to 'make test' and fails on ppc64
|
|
|
|
due to the missing gettext-camomile
|
|
|
|
|
2011-02-09 01:52:10 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-06 09:50:37 +00:00
|
|
|
* Thu Jan 6 2011 Richard W.M. Jones <rjones@redhat.com> - 0.3.3-5
|
|
|
|
- Add patch for compiling against camomile 0.8.
|
|
|
|
|
2011-01-05 15:43:29 +00:00
|
|
|
* Wed Jan 05 2011 Richard W.M. Jones <rjones@redhat.com> - 0.3.3-4
|
|
|
|
- Rebuild for OCaml 3.12 (http://fedoraproject.org/wiki/Features/OCaml3.12).
|
|
|
|
|
2010-01-11 15:11:08 +00:00
|
|
|
* Mon Jan 11 2010 Richard W.M. Jones <rjones@redhat.com> - 0.3.3-3
|
|
|
|
- Remove BR ocaml-camlidl. No longer required to build this.
|
|
|
|
|
2009-12-30 13:49:45 +00:00
|
|
|
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 0.3.3-2
|
|
|
|
- Rebuild for OCaml 3.11.2.
|
|
|
|
|
2009-11-02 10:53:39 +00:00
|
|
|
* Mon Nov 2 2009 Richard W.M. Jones <rjones@redhat.com> - 0.3.3-1
|
|
|
|
- New upstream release 0.3.3 (mainly small bugfixes).
|
|
|
|
- This requires ocaml-fileutils 0.4.0 and is incompatible with
|
|
|
|
any earlier version.
|
|
|
|
- Fixed a number of rpmlint warnings with *.ml files in the
|
|
|
|
non-devel package.
|
|
|
|
|
2009-07-25 19:57:17 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-23 11:21:21 +00:00
|
|
|
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 0.3.2-8
|
|
|
|
- Rebuild for OCaml 3.11.1
|
|
|
|
|
2009-04-16 09:06:07 +00:00
|
|
|
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
|
|
|
|
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
|
|
|
|
(added sparc64 per request from the sparc maintainer)
|
|
|
|
|
2009-02-26 07:06:48 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-05 12:30:09 +00:00
|
|
|
* Fri Dec 5 2008 Richard W.M. Jones <rjones@redhat.com> - 0.3.2-6
|
|
|
|
- Patch to temporarily fix missing dynlink.cma.
|
|
|
|
- Rebuild for OCaml 3.11.0.
|
|
|
|
|
2008-12-04 19:22:12 +00:00
|
|
|
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 0.3.2-5
|
|
|
|
- Rebuild for OCaml 3.11.0+rc1.
|
|
|
|
|
2008-11-24 11:25:59 +00:00
|
|
|
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 0.3.2-4
|
|
|
|
- Rebuild for OCaml 3.11.0
|
|
|
|
|
2008-06-09 16:01:19 +00:00
|
|
|
* Mon Jun 9 2008 Richard W.M. Jones <rjones@redhat.com> - 0.3.2-2
|
|
|
|
- Need to disable tests on ppc64 as well since the tests only work
|
|
|
|
with gettext-camomile.
|
|
|
|
|
2008-06-09 15:48:46 +00:00
|
|
|
* Mon Jun 9 2008 Richard W.M. Jones <rjones@redhat.com> - 0.3.2-1
|
|
|
|
- New upstream release 0.3.2 (fixeds rhbz 446916).
|
|
|
|
|
|
|
|
* Tue May 27 2008 Richard W.M. Jones <rjones@redhat.com> - 0.3.1-3
|
|
|
|
- Enable tests, add check section.
|
|
|
|
|
|
|
|
* Tue May 27 2008 Richard W.M. Jones <rjones@redhat.com> - 0.3.1-2
|
|
|
|
- Patch to fix BZ 446916.
|
|
|
|
|
2008-05-27 12:11:13 +00:00
|
|
|
* Tue May 27 2008 Richard W.M. Jones <rjones@redhat.com> - 0.3.1-1
|
|
|
|
- New upstream version 0.3.1.
|
|
|
|
- Extra runtime requirements (BZ 446919).
|
|
|
|
|
2008-04-30 09:03:51 +00:00
|
|
|
* Wed Apr 30 2008 Richard W.M. Jones <rjones@redhat.com> - 0.3.0-1
|
|
|
|
- New upstream version 0.3.0.
|
|
|
|
- Big patch no longer required (integrated with upstream).
|
|
|
|
- findlib < 1.2.1-3 known not to work with this.
|
|
|
|
- build/ -> _build/
|
|
|
|
- Re-enable documentation.
|
|
|
|
- Prevent *.o files from being distributed.
|
|
|
|
- Distribute *.cmx and *.mli files.
|
|
|
|
|
2008-04-27 21:50:16 +00:00
|
|
|
* Sat Apr 26 2008 Richard W.M. Jones <rjones@redhat.com> - 0.2.0-3.20080321patch
|
|
|
|
- Change the naming scheme to conform with "Snapshot packages" guideline.
|
|
|
|
- Don't duplicate all the docs in camomile-devel.
|
|
|
|
- Disable documentation. Wants 'fop', but 'fop' throws a giant Java
|
|
|
|
exception when present.
|
|
|
|
|
|
|
|
* Thu Apr 17 2008 Richard W.M. Jones <rjones@redhat.com> - 0.2.0-2rwmj20080321
|
|
|
|
- Build camomile subpackages because the camomile dependency is
|
|
|
|
rather large. However we can't build camomile on ppc64 yet so
|
|
|
|
don't build those subpackages there.
|
|
|
|
|
|
|
|
* Fri Mar 21 2008 Richard W.M. Jones <rjones@redhat.com> - 0.2.0-1rwmj20080321
|
|
|
|
- Initial RPM release.
|