Group :: Sistema/Base
RPM: gettext
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: gettext
Version: 0.14.4
Release: alt1
%define libintl libintl3
Summary: GNU libraries and utilities for producing multi-lingual messages
License: LGPL
Group: System/Base
Url: http://www.gnu.org/software/%name/
Source: ftp://ftp.gnu.org/gnu/%name/%name-%version.tar.bz2
Source1: msghack.py
Source2: %name-po-mode-start.el
Patch1: %name-0.14.1-alt-gettextize-quiet.patch
Patch2: %name-0.14.1-alt-autopoint-cvs.patch
Patch3: %name-0.14.1-alt-m4.patch
Patch4: %name-0.14.2-alt-tmp-autopoint.patch
Patch5: %name-0.14.2-alt-gcc.patch
Provides: %name-base = %version-%release
Obsoletes: %name-base
%def_disable static
%def_without included_gettext
%{?_with_included_gettext:Requires: %libintl = %version-%release}
BuildPreReq: emacs-nox gcc-c++ gcc-g77 gcc-java jdkgcj tetex-dvips
%package -n %libintl
Summary: The dynamic %libintl library for the %name package
Group: System/Libraries
Provides: libintl = %version-%release
Obsoletes: libintl
%package -n %libintl-devel
Summary: Development library for %libintl
Group: Development/C
Requires: %libintl = %version-%release
Provides: libintl-devel = %version-%release
Obsoletes: libintl-devel
%package -n %libintl-devel-static
Summary: Development static library for %libintl
Group: Development/C
Requires: %libintl-devel = %version-%release
Provides: libintl-devel-static = %version-%release
Obsoletes: libintl-devel-static
%package tools
Summary: Tools and documentation for developers and translators
Group: Development/Other
Provides: %name-devel = %version-%release
Obsoletes: %name-devel
Requires: %name = %version-%release
Requires(post): %install_info
Requires(preun): %uninstall_info
Requires: mktemp >= 1:1.3.1
%{!?_with_included_gettext:Provides: preloadable_libintl.so}
%package tools-java
Summary: Tools for java developers and translators
Group: Development/Other
Requires: %name-tools = %version-%release
%package tools-python
Summary: Python tools for developers and translators
Group: Development/Other
Requires: %name-tools = %version-%release
%package doc
Summary: The GNU gettext manual
Group: Development/Other
Requires: %name = %version-%release
%description
The GNU %name provides a set of tools and documentation for producing
multi-lingual messages in programs. Tools include a set of conventions about
how programs should be written to support message catalogs, a directory and
file naming organization for the message catalogs, a runtime library which
supports the retrieval of translated messages, and stand-alone programs for
handling the translatable and the already translated strings. Gettext provides
an easy to use library and tools for creating, using, and modifying natural
language catalogs and is a powerful and simple method for internationalizing
programs.
This package contains gettext and ngettext utilities.
If you would like to internationalize or incorporate multi-lingual messages
into programs that you're developing, you should install %name-tools.
%description -n %libintl
This package contains the dynamic %libintl library.
%description -n %libintl-devel
This package contains development %libintl library.
%description -n %libintl-devel-static
This package contains static %libintl library.
%description tools
The GNU %name provides a set of tools and documentation for producing
multi-lingual messages in programs. Tools include a set of conventions about
how programs should be written to support message catalogs, a directory and
file naming organization for the message catalogs, a runtime library which
supports the retrieval of translated messages, and stand-alone programs for
handling the translatable and the already translated strings. Gettext provides
an easy to use library and tools for creating, using, and modifying natural
language catalogs and is a powerful and simple method for internationalizing
programs.
If you would like to internationalize or incorporate multi-lingual messages
into programs that you're developing, you should install this package.
%description tools-java
This package adds java support to %name-tools.
%description tools-python
This package contains msghack utility.
%description doc
GNU gettext offers to programmers, translators and even users, a well
integrated set of tools and documentation that provides a framework within
which other free packages may produce multi-lingual messages.
This manual documents GNU gettext.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
%configure --enable-shared %{subst_enable static} \
%{?_with_included_gettext:--with-included-gettext}
%make_build
%install
%makeinstall \
lispdir=$RPM_BUILD_ROOT%_datadir/emacs/site-lisp \
aclocaldir=$RPM_BUILD_ROOT%_datadir/aclocal \
gettextsrcdir=$RPM_BUILD_ROOT%_datadir/%name/intl \
#
%__mv $RPM_BUILD_ROOT%_datadir/%name/intl/{ABOUT-NLS,archive.tar.gz} $RPM_BUILD_ROOT%_datadir/%name/
%__mkdir_p $RPM_BUILD_ROOT%_datadir/%name/po
%__install -p -m644 %name-runtime/po/Makefile.in.in $RPM_BUILD_ROOT%_datadir/%name/po/
%__install -pD -m755 %SOURCE1 $RPM_BUILD_ROOT%_bindir/msghack
%__install -pD -m644 %SOURCE2 $RPM_BUILD_ROOT%_sysconfdir/emacs/site-start.d/%name.el
%if_with included_gettext
%__mkdir_p $RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d
echo libintl >$RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d/%libintl
%if_enabled static
echo libintl-devel >$RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d/%libintl-devel
echo libintl-devel-static >$RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d/%libintl-devel-static
%endif #enabled static
%__chmod 644 $RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d/*
%endif #with included_gettext
%__mkdir_p $RPM_BUILD_ROOT%_docdir
%define docdir %_docdir/%name-%version
%__mv $RPM_BUILD_ROOT%_docdir/%name $RPM_BUILD_ROOT%docdir
%find_lang %name-runtime
%find_lang %name-tools
%post -n %libintl -p %post_ldconfig
%postun -n %libintl -p %postun_ldconfig
%post tools
%install_info %name.info
%preun tools
%uninstall_info %name.info
%if_with included_gettext
%files -n %libintl
%config %_sysconfdir/buildreqs/packages/substitute.d/%libintl
%_libdir/libintl*.so.*
%if_enabled static
%files -n %libintl-devel
%config %_sysconfdir/buildreqs/packages/substitute.d/%libintl-devel
%_libdir/libintl*.so
%files -n %libintl-devel-static
%config %_sysconfdir/buildreqs/packages/substitute.d/%libintl-devel-static
%_libdir/libintl*.a
%endif #enabled static
%endif #with included_gettext
%files -f %name-runtime.lang
%_bindir/%name
%_bindir/n%name
%_bindir/envsubst
%_bindir/%name.sh
%_man1dir/%name.*
%_man1dir/n%name.*
%_man1dir/envsubst.*
%files tools -f %name-tools.lang
%_libdir/%name
%exclude %_libdir/%name/gnu.gettext.*
%_libdir/lib%{name}*.so*
%{!?_with_included_gettext:%_libdir/preloadable_libintl.so}
%_bindir/*
%exclude %_bindir/%name
%exclude %_bindir/n%name
%exclude %_bindir/envsubst
%exclude %_bindir/%name.sh
%exclude %_bindir/msghack
%_includedir/%{name}*
%_mandir/man?/*
%exclude %_man1dir/%name.*
%exclude %_man1dir/n%name.*
%exclude %_man1dir/envsubst.*
%_infodir/%name.info*
%_datadir/%name
%exclude %_datadir/%name/libintl.jar
%_datadir/aclocal/*
%_datadir/emacs/site-lisp/*.el*
%config(noreplace) %_sysconfdir/emacs/site-start.d/*.el
%dir %docdir
%docdir/FAQ.html
%docdir/tutorial.html
%files doc
%docdir
%exclude %docdir/FAQ.html
%exclude %docdir/tutorial.html
%files tools-java
%dir %_libdir/%name
%_libdir/%name/gnu.gettext.*
%dir %_datadir/%name
%_datadir/%name/libintl.jar
%files tools-python
%_bindir/msghack
%changelog
…
Todas as alterações você pod ver aqui
Version: 0.14.4
Release: alt1
%define libintl libintl3
Summary: GNU libraries and utilities for producing multi-lingual messages
License: LGPL
Group: System/Base
Url: http://www.gnu.org/software/%name/
Source: ftp://ftp.gnu.org/gnu/%name/%name-%version.tar.bz2
Source1: msghack.py
Source2: %name-po-mode-start.el
Patch1: %name-0.14.1-alt-gettextize-quiet.patch
Patch2: %name-0.14.1-alt-autopoint-cvs.patch
Patch3: %name-0.14.1-alt-m4.patch
Patch4: %name-0.14.2-alt-tmp-autopoint.patch
Patch5: %name-0.14.2-alt-gcc.patch
Provides: %name-base = %version-%release
Obsoletes: %name-base
%def_disable static
%def_without included_gettext
%{?_with_included_gettext:Requires: %libintl = %version-%release}
BuildPreReq: emacs-nox gcc-c++ gcc-g77 gcc-java jdkgcj tetex-dvips
%package -n %libintl
Summary: The dynamic %libintl library for the %name package
Group: System/Libraries
Provides: libintl = %version-%release
Obsoletes: libintl
%package -n %libintl-devel
Summary: Development library for %libintl
Group: Development/C
Requires: %libintl = %version-%release
Provides: libintl-devel = %version-%release
Obsoletes: libintl-devel
%package -n %libintl-devel-static
Summary: Development static library for %libintl
Group: Development/C
Requires: %libintl-devel = %version-%release
Provides: libintl-devel-static = %version-%release
Obsoletes: libintl-devel-static
%package tools
Summary: Tools and documentation for developers and translators
Group: Development/Other
Provides: %name-devel = %version-%release
Obsoletes: %name-devel
Requires: %name = %version-%release
Requires(post): %install_info
Requires(preun): %uninstall_info
Requires: mktemp >= 1:1.3.1
%{!?_with_included_gettext:Provides: preloadable_libintl.so}
%package tools-java
Summary: Tools for java developers and translators
Group: Development/Other
Requires: %name-tools = %version-%release
%package tools-python
Summary: Python tools for developers and translators
Group: Development/Other
Requires: %name-tools = %version-%release
%package doc
Summary: The GNU gettext manual
Group: Development/Other
Requires: %name = %version-%release
%description
The GNU %name provides a set of tools and documentation for producing
multi-lingual messages in programs. Tools include a set of conventions about
how programs should be written to support message catalogs, a directory and
file naming organization for the message catalogs, a runtime library which
supports the retrieval of translated messages, and stand-alone programs for
handling the translatable and the already translated strings. Gettext provides
an easy to use library and tools for creating, using, and modifying natural
language catalogs and is a powerful and simple method for internationalizing
programs.
This package contains gettext and ngettext utilities.
If you would like to internationalize or incorporate multi-lingual messages
into programs that you're developing, you should install %name-tools.
%description -n %libintl
This package contains the dynamic %libintl library.
%description -n %libintl-devel
This package contains development %libintl library.
%description -n %libintl-devel-static
This package contains static %libintl library.
%description tools
The GNU %name provides a set of tools and documentation for producing
multi-lingual messages in programs. Tools include a set of conventions about
how programs should be written to support message catalogs, a directory and
file naming organization for the message catalogs, a runtime library which
supports the retrieval of translated messages, and stand-alone programs for
handling the translatable and the already translated strings. Gettext provides
an easy to use library and tools for creating, using, and modifying natural
language catalogs and is a powerful and simple method for internationalizing
programs.
If you would like to internationalize or incorporate multi-lingual messages
into programs that you're developing, you should install this package.
%description tools-java
This package adds java support to %name-tools.
%description tools-python
This package contains msghack utility.
%description doc
GNU gettext offers to programmers, translators and even users, a well
integrated set of tools and documentation that provides a framework within
which other free packages may produce multi-lingual messages.
This manual documents GNU gettext.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
%configure --enable-shared %{subst_enable static} \
%{?_with_included_gettext:--with-included-gettext}
%make_build
%install
%makeinstall \
lispdir=$RPM_BUILD_ROOT%_datadir/emacs/site-lisp \
aclocaldir=$RPM_BUILD_ROOT%_datadir/aclocal \
gettextsrcdir=$RPM_BUILD_ROOT%_datadir/%name/intl \
#
%__mv $RPM_BUILD_ROOT%_datadir/%name/intl/{ABOUT-NLS,archive.tar.gz} $RPM_BUILD_ROOT%_datadir/%name/
%__mkdir_p $RPM_BUILD_ROOT%_datadir/%name/po
%__install -p -m644 %name-runtime/po/Makefile.in.in $RPM_BUILD_ROOT%_datadir/%name/po/
%__install -pD -m755 %SOURCE1 $RPM_BUILD_ROOT%_bindir/msghack
%__install -pD -m644 %SOURCE2 $RPM_BUILD_ROOT%_sysconfdir/emacs/site-start.d/%name.el
%if_with included_gettext
%__mkdir_p $RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d
echo libintl >$RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d/%libintl
%if_enabled static
echo libintl-devel >$RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d/%libintl-devel
echo libintl-devel-static >$RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d/%libintl-devel-static
%endif #enabled static
%__chmod 644 $RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d/*
%endif #with included_gettext
%__mkdir_p $RPM_BUILD_ROOT%_docdir
%define docdir %_docdir/%name-%version
%__mv $RPM_BUILD_ROOT%_docdir/%name $RPM_BUILD_ROOT%docdir
%find_lang %name-runtime
%find_lang %name-tools
%post -n %libintl -p %post_ldconfig
%postun -n %libintl -p %postun_ldconfig
%post tools
%install_info %name.info
%preun tools
%uninstall_info %name.info
%if_with included_gettext
%files -n %libintl
%config %_sysconfdir/buildreqs/packages/substitute.d/%libintl
%_libdir/libintl*.so.*
%if_enabled static
%files -n %libintl-devel
%config %_sysconfdir/buildreqs/packages/substitute.d/%libintl-devel
%_libdir/libintl*.so
%files -n %libintl-devel-static
%config %_sysconfdir/buildreqs/packages/substitute.d/%libintl-devel-static
%_libdir/libintl*.a
%endif #enabled static
%endif #with included_gettext
%files -f %name-runtime.lang
%_bindir/%name
%_bindir/n%name
%_bindir/envsubst
%_bindir/%name.sh
%_man1dir/%name.*
%_man1dir/n%name.*
%_man1dir/envsubst.*
%files tools -f %name-tools.lang
%_libdir/%name
%exclude %_libdir/%name/gnu.gettext.*
%_libdir/lib%{name}*.so*
%{!?_with_included_gettext:%_libdir/preloadable_libintl.so}
%_bindir/*
%exclude %_bindir/%name
%exclude %_bindir/n%name
%exclude %_bindir/envsubst
%exclude %_bindir/%name.sh
%exclude %_bindir/msghack
%_includedir/%{name}*
%_mandir/man?/*
%exclude %_man1dir/%name.*
%exclude %_man1dir/n%name.*
%exclude %_man1dir/envsubst.*
%_infodir/%name.info*
%_datadir/%name
%exclude %_datadir/%name/libintl.jar
%_datadir/aclocal/*
%_datadir/emacs/site-lisp/*.el*
%config(noreplace) %_sysconfdir/emacs/site-start.d/*.el
%dir %docdir
%docdir/FAQ.html
%docdir/tutorial.html
%files doc
%docdir
%exclude %docdir/FAQ.html
%exclude %docdir/tutorial.html
%files tools-java
%dir %_libdir/%name
%_libdir/%name/gnu.gettext.*
%dir %_datadir/%name
%_datadir/%name/libintl.jar
%files tools-python
%_bindir/msghack
%changelog
…
Todas as alterações você pod ver aqui