]> git.pld-linux.org Git - packages/gettext.git/blobdiff - gettext.spec
- updated to 0.22.5
[packages/gettext.git] / gettext.spec
index 8664ca75b29041630cd2d6627ca679fc555ae180..0e9ac26dbe5f6f5c133d6525a204b550c602dc36 100644 (file)
@@ -1,21 +1,14 @@
-# TODO
-# - unpackaged:
-#   /usr/share/emacs/site-lisp/po-compat.el
-#   /usr/share/emacs/site-lisp/po-compat.elc
-#   /usr/share/emacs/site-lisp/po-mode.el
-#   /usr/share/emacs/site-lisp/po-mode.elc
-#   /usr/share/emacs/site-lisp/start-po.el
-#   /usr/share/emacs/site-lisp/start-po.elc
 #
 # Conditional build:
-%bcond_without asprintf        # without libasprintf C++ library
-%bcond_with    xemacs          # without po-mode for xemacs
-%bcond_without gcj             # with Java support by gcj (preferred over javac)
-%bcond_with    javac           # with Java support by some javac
-%bcond_without dotnet          # without .NET support
-%bcond_with    bootstrap       # use system GLib and libcroco
-
-%ifnarch %{ix86} %{x8664} arm hppa ppc s390 s390x
+%bcond_without asprintf        # libasprintf C++ library
+%bcond_with    xemacs          # po-mode for xemacs
+%bcond_without java            # convenience bcond to disable Java (any)
+%bcond_with    gcj             # Java support by gcj (preferred over javac)
+%bcond_without javac           # Java support by some javac
+%bcond_without dotnet          # .NET support package
+%bcond_with    bootstrap       # no system GLib, libcroco, libxml2 (for bootstrap)
+
+%ifnarch %{ix86} %{x8664} %{arm} hppa ppc s390 s390x
 %undefine with_dotnet
 %endif
 %ifarch i386
 %endif
 %if %{with javac}
 %undefine with_gcj
+%{?use_default_jdk}
+%endif
+%if %{without java}
+%undefine with_gcj
+%undefine with_javac
 %endif
-%{?with_dotnet:%include        /usr/lib/rpm/macros.mono}
 
 %define build_java     %{?with_gcj:1}%{!?with_gcj:%{?with_javac:1}%{!?with_javac:0}}
+%define        build_javaexe   %{?with_gcj:1}%{!?with_gcj:0}
 Summary:       Utilties for program national language support
 Summary(de.UTF-8):     Utilities zum Programmieren von nationaler Sprachunterstützung
 Summary(es.UTF-8):     Utilitarios para el programa de soporte a lenguas locales
@@ -39,45 +37,48 @@ Summary(ru.UTF-8):  Библиотеки и утилиты для поддерж
 Summary(tr.UTF-8):     Desteği için kitaplık ve araçlar
 Summary(uk.UTF-8):     Бібліотеки та утиліти для підтримки національних мов
 Name:          gettext
-Version:       0.19.3
-Release:       4
-License:       LGPL v2+ (libintl), GPL v3+ (tools)
+Version:       0.22.5
+Release:       1
+License:       LGPL v2.1+ (libintl), GPL v3+ (tools)
 Group:         Development/Tools
-Source0:       http://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.xz
-# Source0-md5: 092c3f460553ceb4a638ff81d36434c4
+Source0:       https://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.lz
+# Source0-md5: d82550b0c72b2bf175b682d27c7565fc
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-killkillkill.patch
-Patch2:                %{name}-libintl_by_gcj.patch
+Patch3:                %{name}-libdir.patch
 URL:           http://www.gnu.org/software/gettext/
 BuildRequires: acl-devel
-BuildRequires: autoconf >= 2.62
+BuildRequires: autoconf >= 2.64
 BuildRequires: automake >= 1:1.13
-%{?with_gcj:BuildRequires:     gcj >= 3.0}
+%{?with_gcj:BuildRequires:     gcc-java >= 3.0}
 %{!?with_bootstrap:BuildRequires:      glib2-devel >= 2.0}
-%if %{build_java}
-BuildRequires: jar
-%endif
-%{?with_javac:BuildRequires:   jdk >= 1.3}
+%{?with_gcj:BuildRequires:     jar}
+%{?with_javac:%buildrequires_jdk}
 %{!?with_bootstrap:BuildRequires:      libcroco-devel >= 0.6.1}
-%if "%(echo %{cc_version} | grep -q '^4.[2-9]'; echo $?)" == "0"
+%if "%{cc_version}" >= "4.2"
 BuildRequires: libgomp-devel
 %endif
 %{?with_asprintf:BuildRequires:        libstdc++-devel}
 BuildRequires: libtool >= 2:2
 BuildRequires: libunistring-devel
-BuildRequires: libxml2-devel
+%{!?with_bootstrap:BuildRequires:      libxml2-devel}
+BuildRequires: lzip
 %{?with_dotnet:BuildRequires:  mono-csharp}
-BuildRequires: rpmbuild(macros) >= 1.453
+BuildRequires: ncurses-devel
+%{?with_java:BuildRequires:    rpm-javaprov}
+BuildRequires: rpmbuild(macros) >= 2.021
 BuildRequires: sed >= 4.0
 BuildRequires: tar >= 1:1.22
 BuildRequires: texinfo
-BuildRequires: xz
 %{?with_xemacs:BuildRequires:  xemacs}
 Obsoletes:     gettext-base
 Conflicts:     intltool < 0.28
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# adjust -f when needed (e.g. 0.18.3.x used ABI 0.18.3, 0.19.5.x uses full version)
 %define                intabi  %(echo %{version} | cut -d. -f1-3)
+# similarly for its data
+%define                dataver %(echo %{version} | cut -d. -f1-3)
 
 %description
 The GNU gettext package provides a set of tools and documentation for
@@ -161,6 +162,7 @@ Requires(post,postun):      /sbin/ldconfig
 Requires:      %{name}-libs = %{version}-%{release}
 Requires:      iconv
 Conflicts:     autoconf < 2.52
+Conflicts:     rpm-build-macros < 1.744
 
 %description tools
 This package contains tools for creating and modifying natural
@@ -187,6 +189,8 @@ Summary:    Shared gettext utility libraries
 Summary(pl.UTF-8):     Współdzielone biblioteki narzędziowe gettexta
 License:       GPL v3+
 Group:         Development/Libraries
+# relaxed to allow newer package from libtextstyle.spec
+Requires:      libtextstyle >= %{version}-%{release}
 
 %description libs
 This package contains shared versions of gettext utility libraries
@@ -202,8 +206,8 @@ Summary(pl.UTF-8):  Pliki programistyczne bibliotek gettexta
 License:       GPL v3+
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
-# for transition period (until BR =~ s/gettext-devel/gettext-tools/ in *.spec)
-Requires:      %{name}-tools = %{version}-%{release}
+# relaxed to allow newer package from libtextstyle.spec
+Requires:      libtextstyle-devel >= %{version}-%{release}
 
 %description devel
 Development files for gettext libraries.
@@ -229,7 +233,7 @@ Ten pakiet zawiera statyczne wersje bibliotek narzędziowych gettext
 %package -n libasprintf
 Summary:       GNU libasprintf - automatic formatted output to strings in C++
 Summary(pl.UTF-8):     GNU libasprintf - automatyczne formatowanie wyjścia do łańcuchów w C++
-License:       LGPL v2+
+License:       LGPL v2.1+
 Group:         Libraries
 
 %description -n libasprintf
@@ -245,7 +249,7 @@ używalnymi w programach w C++, z łańcuchami <string> i strumieniami
 %package -n libasprintf-devel
 Summary:       Header file and documentation for libasprintf
 Summary(pl.UTF-8):     Plik nagłówkowy i dokumentacja dla libasprintf
-License:       LGPL v2+
+License:       LGPL v2.1+
 Group:         Development/Libraries
 Requires:      libasprintf = %{version}-%{release}
 
@@ -258,7 +262,7 @@ Plik nagłówkowy i dokumentacja dla libasprintf.
 %package -n libasprintf-static
 Summary:       Static libasprintf library
 Summary(pl.UTF-8):     Statyczna biblioteka libasprintf
-License:       LGPL v2+
+License:       LGPL v2.1+
 Group:         Development/Libraries
 Requires:      libasprintf-devel = %{version}-%{release}
 
@@ -268,10 +272,59 @@ Static libasprintf library.
 %description -n libasprintf-static -l pl.UTF-8
 Statyczna biblioteka libasprintf.
 
+%package -n libtextstyle
+Summary:       GNU libtextstyle - Text styling library
+Summary(pl.UTF-8):     GNU libtextstyle - biblioteka do obsługi stylu tekstu
+License:       GPL v3+
+
+%description -n libtextstyle
+This library provides an easy way to add styling to programs that
+produce output to a console or terminal emulator window.
+
+libtextstyle is for you if your application produces text that is more
+readable when it is accompanied with styling information, such as
+color, font attributes (weight, posture), or underlining.
+
+%description -n libtextstyle -l pl.UTF-8
+Ta biblioteka zapewnia łatwy sposób dodawania styli do programów
+produkujących wyjście na konsoli lub w oknie emulatora terminala.
+
+libtextstyle ma zastosowanie tam, gdzie aplikacja produkuje tekst,
+który jest bardziej czytelny, jeśli jest wzbogacony o informacje o
+stylu, takie jak kolor, atrybuty czcionek (grubość, nachylenie) lub
+podkreślenie.
+
+%package -n libtextstyle-devel
+Summary:       Header files for libtextstyle library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki libtextstyle
+License:       GPL v3+
+Group:         Development/Libraries
+Requires:      libtextstyle = %{version}-%{release}
+Requires:      ncurses-devel
+
+%description -n libtextstyle-devel
+Header files for libtextstyle library.
+
+%description -n libtextstyle-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libtextstyle.
+
+%package -n libtextstyle-static
+Summary:       Static libtextstyle library
+Summary(pl.UTF-8):     Statyczna biblioteka libtextstyle
+License:       GPL v3+
+Group:         Development/Libraries
+Requires:      libtextstyle-devel = %{version}-%{release}
+
+%description -n libtextstyle-static
+Static libtextstyle library.
+
+%description -n libtextstyle-static -l pl.UTF-8
+Statyczna biblioteka libtextstyle.
+
 %package java
 Summary:       Runtime classes for Java programs internationalization
 Summary(pl.UTF-8):     Klasy do uruchamiania umiędzynarodowionych programów w Javie
-License:       LGPL v2+
+License:       LGPL v2.1+
 Group:         Development/Languages/Java
 Requires:      %{name} = %{version}-%{release}
 
@@ -346,7 +399,7 @@ wersji.
 %package -n dotnet-gettext
 Summary:       GNU gettext for C#
 Summary(pl.UTF-8):     GNU gettext dla C#
-License:       LGPL v2+ (GNU.Gettext library), GPL v3+ (tools)
+License:       LGPL v2.1+ (GNU.Gettext library), GPL v3+ (tools)
 Group:         Development/Tools
 
 %description -n dotnet-gettext
@@ -359,7 +412,7 @@ GNU gettext dla C#.
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
+%patch3 -p1
 
 %{__sed} -i \
        -e 's@m4_esyscmd(\[build-aux/git-version-gen \.tarball-version\])@[%{version}]@' \
@@ -369,8 +422,11 @@ GNU gettext dla C#.
        gettext-runtime/configure.ac \
        gettext-tools/configure.ac
 
+%if %{without bootstrap}
+%{__sed} -i -e '/gl_LIBCROCO\|gl_LIBGLIB\|gl_LIBXML/s/(\[yes\])//' libtextstyle/gnulib-m4/gnulib-comp.m4
+%endif
+
 %build
-%{__libtoolize}
 cd gettext-runtime
 %{__libtoolize}
 %{__aclocal} -I m4 -I ../m4 -I gnulib-m4
@@ -382,25 +438,39 @@ cd libasprintf
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-cd ../../gettext-tools
+cd ../../libtextstyle
+%{__libtoolize}
+%{__aclocal} -I m4 -I gnulib-m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+cd ../gettext-tools
 %{__aclocal} -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-cd ..
+cd examples
+%{__aclocal} -I ../../gettext-runtime/m4 -I ../../m4
+%{__autoconf}
+%{__automake}
+cd ../..
 %{__aclocal} -I m4
 %{__autoconf}
 %{__automake}
 %configure \
+       %{!?with_gcj:GCJ=none} \
+        %{?with_javac:JAVA="%{java_home}/bin/java" JAVAC="%{java_home}/bin/javac" JAR="%{java_home}/bin/jar"} \
        %{?with_xemacs:--with-lispdir=%{_datadir}/xemacs-packages/lisp/po-mode} \
+       %{!?with_xemacs:--without-emacs} \
+       --enable-csharp=%{?with_dotnet:mono}%{!?with_dotnet:no} \
+%if !%{build_java}
+       --disable-java \
+%endif
        --enable-nls \
-       %{!?with_dotnet:--disable-csharp} \
-       %{?with_dotnet:--enable-csharp=mono} \
+       --disable-silent-rules \
        --without-bzip2 \
        --without-git \
        --without-included-gettext \
-       %{?with_bootstrap:--with-included-glib} \
-       %{?with_bootstrap:--with-included-libcroco} \
        --with-xz
 %{__make} \
        GMSGFMT=`pwd`/gettext-tools/src/msgfmt
@@ -418,14 +488,14 @@ EMACS=%{_bindir}/xemacs ./elisp-comp ./po-mode.el
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/bin
+install -d $RPM_BUILD_ROOT{/bin,%{_datadir}/gettext/its}
 
 %{__make} install \
        examplesdir=%{_examplesdir}/%{name}-%{version} \
        examplesbuildauxdir=%{_examplesdir}/%{name}-%{version}/build-aux \
        DESTDIR=$RPM_BUILD_ROOT
 
-mv -f $RPM_BUILD_ROOT%{_bindir}/{,n}gettext $RPM_BUILD_ROOT/bin
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/{,n}gettext $RPM_BUILD_ROOT/bin
 
 # these static libs are removed in install-exec-clean
 cp -a gettext-tools/gnulib-lib/.libs/libgettextlib.a \
@@ -433,6 +503,7 @@ cp -a gettext-tools/gnulib-lib/.libs/libgettextlib.a \
 
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gettext
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libasprintf
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libtextstyle
 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
 
 %find_lang %{name}-runtime
@@ -441,15 +512,21 @@ cp -a gettext-tools/gnulib-lib/.libs/libgettextlib.a \
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post devel
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%post  tools -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun devel
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%postun        tools -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
 %post  libs -p /sbin/ldconfig
 %postun        libs -p /sbin/ldconfig
 
+%post  devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun        devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
 %post  -n libasprintf -p /sbin/ldconfig
 %postun        -n libasprintf -p /sbin/ldconfig
 
@@ -459,6 +536,15 @@ rm -rf $RPM_BUILD_ROOT
 %postun        -n libasprintf-devel -p /sbin/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
 
+%post  -n libtextstyle -p /sbin/ldconfig
+%postun        -n libtextstyle -p /sbin/ldconfig
+
+%post  -n libtextstyle-devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun        -n libtextstyle-devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
 %files -f %{name}-runtime.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) /bin/gettext
@@ -479,43 +565,23 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/recode-sr-latin
 %attr(755,root,root) %{_bindir}/xgettext
 %attr(755,root,root) %{_libdir}/preloadable_libintl.so
+%attr(755,root,root) %{_libdir}/gettext/cldr-plurals
 %attr(755,root,root) %{_libdir}/gettext/hostname
 %attr(755,root,root) %{_libdir}/gettext/project-id
 %attr(755,root,root) %{_libdir}/gettext/urlget
 %attr(755,root,root) %{_libdir}/gettext/user-email
-%{_aclocaldir}/codeset.m4
-%{_aclocaldir}/extern-inline.m4
-%{_aclocaldir}/fcntl-o.m4
+%{_aclocaldir}/build-to-host.m4
 %{_aclocaldir}/gettext.m4
-%{_aclocaldir}/glibc2.m4
-%{_aclocaldir}/glibc21.m4
+%{_aclocaldir}/host-cpu-c-abi.m4
 %{_aclocaldir}/iconv.m4
-%{_aclocaldir}/intdiv0.m4
-%{_aclocaldir}/intl.m4
-%{_aclocaldir}/intldir.m4
 %{_aclocaldir}/intlmacosx.m4
-%{_aclocaldir}/intmax.m4
-%{_aclocaldir}/inttypes-pri.m4
-%{_aclocaldir}/inttypes_h.m4
-%{_aclocaldir}/lcmessage.m4
 %{_aclocaldir}/lib-ld.m4
 %{_aclocaldir}/lib-link.m4
 %{_aclocaldir}/lib-prefix.m4
-%{_aclocaldir}/lock.m4
-%{_aclocaldir}/longlong.m4
 %{_aclocaldir}/nls.m4
 %{_aclocaldir}/po.m4
-%{_aclocaldir}/printf-posix.m4
 %{_aclocaldir}/progtest.m4
-%{_aclocaldir}/size_max.m4
-%{_aclocaldir}/stdint_h.m4
-%{_aclocaldir}/threadlib.m4
-%{_aclocaldir}/uintmax_t.m4
-%{_aclocaldir}/visibility.m4
-%{_aclocaldir}/wchar_t.m4
-%{_aclocaldir}/wint_t.m4
-%{_aclocaldir}/xsize.m4
-%{_infodir}/gettext*.info*
+%{_infodir}/gettext.info*
 %{_mandir}/man1/gettextize.1*
 %{_mandir}/man1/msg*.1*
 %{_mandir}/man1/recode-sr-latin.1*
@@ -532,9 +598,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/gettext/ABOUT-NLS
 %attr(755,root,root) %{_datadir}/gettext/config.rpath
 %{_datadir}/gettext/gettext.h
-%dir %{_datadir}/gettext/intl
-%{_datadir}/gettext/intl/[!c]*
-%attr(755,root,root) %{_datadir}/gettext/intl/config.charset
+%dir %{_datadir}/gettext/its
 %{_datadir}/gettext/msgunfmt.tcl
 %{_datadir}/gettext/po
 %dir %{_datadir}/gettext/projects
@@ -553,6 +617,8 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_datadir}/gettext/projects/TP/team-address
 %attr(755,root,root) %{_datadir}/gettext/projects/TP/trigger
 %{_datadir}/gettext/styles
+%dir %{_datadir}/gettext-%{dataver}
+%{_datadir}/gettext-%{dataver}/its
 
 %files demo
 %defattr(644,root,root,755)
@@ -600,6 +666,24 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libasprintf.a
 %endif
 
+%files -n libtextstyle
+%defattr(644,root,root,755)
+%doc libtextstyle/{AUTHORS,NEWS,README}
+%attr(755,root,root) %{_libdir}/libtextstyle.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libtextstyle.so.0
+
+%files -n libtextstyle-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libtextstyle.so
+%{_libdir}/libtextstyle.la
+%{_includedir}/textstyle.h
+%{_includedir}/textstyle
+%{_infodir}/libtextstyle.info*
+
+%files -n libtextstyle-static
+%defattr(644,root,root,755)
+%{_libdir}/libtextstyle.a
+
 %if %{build_java}
 %files java
 %defattr(644,root,root,755)
@@ -608,7 +692,7 @@ rm -rf $RPM_BUILD_ROOT
 %files java-devel
 %defattr(644,root,root,755)
 %doc gettext-runtime/intl-java/javadoc2
-%if %{with gcj}
+%if %{build_javaexe}
 %attr(755,root,root) %{_libdir}/gettext/gnu.gettext.DumpResource
 %attr(755,root,root) %{_libdir}/gettext/gnu.gettext.GetURL
 %else
This page took 0.358338 seconds and 4 git commands to generate.