Fix RPMLINT
[platform/upstream/gettext.git] / packaging / gettext.spec
index c85c08e..4445ea7 100644 (file)
 Name:           gettext
 Version:        0.18.1.1
 Release:        2
-License:        GPLv3+ and LGPLv2+
+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.gz
+Source:         ftp://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.bz2
 Source2:        msghack.py
-Source1001:     packaging/gettext.manifest
+Source1001:     gettext.manifest
 
 BuildRequires:  autoconf >= 2.5
 BuildRequires:  bison
@@ -85,6 +85,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 +135,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
@@ -183,11 +188,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