Bump to gettext 0.19.7
[platform/upstream/gettext.git] / packaging / gettext.spec
index a668c29..5d8ef32 100644 (file)
@@ -8,15 +8,15 @@
 %define enable_testing 0
 
 Name:           gettext
-Version:        0.18.1.1
-Release:        2
-License:        GPLv3+ and LGPLv2+
+Version:        0.19.7
+Release:        1
+License:        GPL-3.0+ and LGPL-2.0+
 Summary:        GNU libraries and utilities for producing multi-lingual messages
 Url:            http://www.gnu.org/software/gettext/
 Group:          Development/Tools
-Source:         ftp://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.bz2
+Source:         ftp://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz
 Source2:        msghack.py
-Source1001:     packaging/gettext.manifest
+Source1001:     gettext.manifest
 
 BuildRequires:  autoconf >= 2.5
 BuildRequires:  bison
@@ -26,6 +26,7 @@ BuildRequires:  gcc-c++
 BuildRequires:  libtool
 #needed for ANSI to UTF8 conversion using msgconn
 BuildRequires:  libunistring
+BuildRequires:  glibc-locale
 
 %description
 The GNU gettext package provides a set of tools and documentation for
@@ -85,6 +86,8 @@ cp %{SOURCE1001} .
 %else
 %endif
 
+mkdir -p gettext-tools/intl
+
 %reconfigure --without-included-gettext --enable-nls --disable-static \
     --enable-shared --with-pic-=yes --disable-csharp --without-libpth-prefix --disable-openmp
 make %{?_smp_mflags} GCJFLAGS="-findirect-dispatch"
@@ -133,11 +136,14 @@ cat %{name}-*.lang > %{name}.lang
 
 %postun runtime -p /sbin/ldconfig
 
+%post tools -p /sbin/ldconfig
+
+%postun tools -p /sbin/ldconfig
 
 %files tools -f %{name}.lang
-%manifest gettext.manifest
+%manifest %{name}.manifest
 %defattr(-,root,root,-)
-%doc COPYING
+%license COPYING
 %{_datadir}/%{name}/projects/*
 %{_datadir}/%{name}/config.rpath
 %{_datadir}/%{name}/*.h
@@ -155,9 +161,10 @@ cat %{name}-*.lang > %{name}.lang
 %{_libdir}/gettext/project-id
 %{_libdir}/gettext/urlget
 %{_libdir}/gettext/user-email
+%{_libdir}/gettext/cldr-plurals
 %{_libdir}/libgettextpo.so.*
 %{_datadir}/%{name}/javaversion.class
-%{_datadir}/%{name}/archive*.tar.gz
+%{_datadir}/%{name}/archive*.tar.xz
 %{_datadir}/%{name}/styles
 %{_bindir}/autopoint
 %{_bindir}/gettextize
@@ -183,11 +190,11 @@ cat %{name}-*.lang > %{name}.lang
 # involve unneeded files. If you need to include a file in -libs, list
 # it here explicitly
 %files runtime
-%manifest gettext.manifest
+%manifest %{name}.manifest
 %defattr(-,root,root,-)
 # Files listed here should be of LGPL license only, refer to upstream
 # statement in PACKAGING file
-%doc gettext-runtime/intl/COPYING*
+%license gettext-runtime/intl/COPYING*
 %doc %{_datadir}/gettext/ABOUT-NLS
 %{_bindir}/gettext
 %{_bindir}/ngettext