Bump to gettext 0.19.7
[platform/upstream/gettext.git] / packaging / gettext.spec
index ac3db2b..5d8ef32 100644 (file)
@@ -8,13 +8,13 @@
 %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:     gettext.manifest
 
@@ -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
@@ -135,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 %{name}.manifest
 %defattr(-,root,root,-)
-%doc COPYING
+%license COPYING
 %{_datadir}/%{name}/projects/*
 %{_datadir}/%{name}/config.rpath
 %{_datadir}/%{name}/*.h
@@ -157,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
@@ -189,7 +194,7 @@ cat %{name}-*.lang > %{name}.lang
 %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