]> git.pld-linux.org Git - packages/gettext.git/blobdiff - gettext.spec
- rel 3
[packages/gettext.git] / gettext.spec
index 281b1f036e8aa9582db54cf39b6b3a87e0364b0f..a8fa006b20f0d74c38ac0f1cd5baa3ab962c7505 100644 (file)
@@ -9,9 +9,9 @@
 #
 # Conditional build:
 %bcond_without asprintf        # without libasprintf C++ library
-%bcond_with            xemacs          # without po-mode for xemacs
+%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_with    javac           # with Java support by some javac
 %bcond_without dotnet          # without .NET support
 %bcond_with    bootstrap       # use system GLib and libcroco
 
@@ -37,36 +37,34 @@ 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.17
-Release:       8
+Version:       0.18.1.1
+Release:       3
 License:       LGPL v2+ (libintl), GPL v3+ (tools)
 Group:         Development/Tools
 Source0:       http://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz
-# Source0-md5: 58a2bc6d39c0ba57823034d55d65d606
+# Source0-md5: 3dd55b952826d2b32f51308f2f91aa89
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-killkillkill.patch
-Patch2:                %{name}-pl.po-update.patch
-Patch3:                %{name}-no_docs.patch
-Patch4:                %{name}-libintl_by_gcj.patch
-Patch5:                %{name}-removed_macros.patch
-Patch6:                %{name}-creat_mode.patch
-Patch7:                %{name}-cvs.patch
+Patch2:                %{name}-pl.po-fixes.patch
+Patch3:                %{name}-libintl_by_gcj.patch
 URL:           http://www.gnu.org/software/gettext/
-BuildRequires: autoconf >= 2.60
-BuildRequires: automake >= 1:1.10
-BuildRequires: cvs-gnu-client
+BuildRequires: acl-devel
+BuildRequires: autoconf >= 2.62
+BuildRequires: automake >= 1:1.11
 %{?with_gcj:BuildRequires:     gcj >= 3.0}
 %{!?with_bootstrap:BuildRequires:      glib2-devel >= 2.0}
-%if %{with javac}
-BuildRequires: jdk >= 1.1
+%if %{build_java}
 BuildRequires: jar
 %endif
+%{?with_javac:BuildRequires:   jdk >= 1.1}
 %{!?with_bootstrap:BuildRequires:      libcroco-devel >= 0.6.1}
 %if "%(echo %{cc_version} | grep -q '^4.[2-9]'; echo $?)" == "0"
 BuildRequires: libgomp-devel
 %endif
 %{?with_asprintf:BuildRequires:        libstdc++-devel}
 BuildRequires: libtool >= 1:1.4.2-9
+BuildRequires: libunistring-devel
+BuildRequires: libxml2-devel
 %{?with_dotnet:BuildRequires:  mono-csharp}
 BuildRequires: rpmbuild(macros) >= 1.453
 BuildRequires: texinfo
@@ -145,6 +143,18 @@ yöntemdir.
 для створення, використання та модифікації каталогів національних мов.
 Це простий та потужний метод для інтернаціоналізації програм.
 
+%package demo
+Summary:       Demo for gettext
+Summary(pl.UTF-8):     Pliki demonstracyjne dla pakietu gettext
+Group:         Documentation
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description demo
+Demonstrations and samples for gettext
+
+%description demo -l pl.UTF-8
+Pliki demonstracyjne i przykłady dla pakietu gettext.
+
 %package devel
 Summary:       Utilties for program national language support
 Summary(de.UTF-8):     Utilities zum Programmieren von nationaler Sprachunterstützung
@@ -315,52 +325,33 @@ GNU gettext dla C#.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+#for d in gettext-runtime gettext-tools gettext-tools/examples ; do
+#      iconv -f iso-8859-2 -t utf-8 ${d}/po/pl.po > ${d}/po/pl.po.utf-8
+#      mv -f ${d}/po/pl.po.utf-8 ${d}/po/pl.po
+#done
 %patch2 -p1
-# patch not finished yet
-#%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
+%patch3 -p1
 
 %build
-# make autopoint to use tar.gz archives instead of cvs repository
-install -d archive-cvs/{prepare,archive}
-tar xzf gettext-tools/misc/archive.tar.gz -C archive-cvs/prepare
-cvs -d$(pwd)/archive-cvs/prepare/archive init
-cd archive-cvs/archive
-cvs -Q -d$(pwd)/../prepare/archive -q co .
-for rev in $(cvs status -v | grep '(revision:' | awk ' { print $1 } ' | sort -u); do
-       cvs -Q up -d -r $rev
-       cd ..
-       tar czf archive-${rev}.tar.gz archive --exclude=CVS
-       cd archive
-done
-cd ../..
-
 %{__libtoolize}
-cd autoconf-lib-link
-%{__aclocal} -I m4 -I ../m4
-%{__autoconf}
-%{__automake}
-cd ../gettext-runtime
+cd gettext-runtime
 %{__libtoolize}
-%{__aclocal} -I m4 -I gnulib-m4 -I ../autoconf-lib-link/m4 -I ../m4
+%{__aclocal} -I m4 -I ../m4 -I gnulib-m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 cd libasprintf
-%{__aclocal} -I ../m4 -I ../../m4
+%{__aclocal} -I ../../m4 -I ../m4 -I gnulib-m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 cd ../../gettext-tools
-%{__aclocal} -I m4 -I gnulib-m4 -I libgettextpo/gnulib-m4 -I ../autoconf-lib-link/m4 -I ../gettext-runtime/m4 -I ../m4
+%{__aclocal} -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 cd ..
-%{__aclocal}
+%{__aclocal} -I m4
 %{__autoconf}
 %{__automake}
 %configure \
@@ -368,6 +359,7 @@ cd ..
        --enable-nls \
        %{!?with_dotnet:--disable-csharp} \
        %{?with_dotnet:--enable-csharp=mono} \
+       --without-git \
        --without-included-gettext \
        %{?with_bootstrap:--with-included-glib} \
        %{?with_bootstrap:--with-included-libcroco}
@@ -390,17 +382,16 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/bin
 
 %{__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
 
 # these static libs are removed in install-exec-clean
-install gettext-tools/gnulib-lib/.libs/libgettextlib.a \
+cp -a gettext-tools/gnulib-lib/.libs/libgettextlib.a \
        gettext-tools/src/.libs/libgettextsrc.a $RPM_BUILD_ROOT%{_libdir}
 
-install archive-cvs/archive-*.tar.gz $RPM_BUILD_ROOT%{_datadir}/gettext/archive
-rm $RPM_BUILD_ROOT%{_datadir}/gettext/archive.tar.gz
-
 rm -r $RPM_BUILD_ROOT%{_docdir}/gettext
 rm -r $RPM_BUILD_ROOT%{_docdir}/libasprintf
 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
@@ -422,15 +413,16 @@ rm -rf $RPM_BUILD_ROOT
 %post  -n libasprintf -p /sbin/ldconfig
 %postun        -n libasprintf -p /sbin/ldconfig
 
-%post -n libasprintf-devel     -p      /sbin/postshell
+%post  -n libasprintf-devel -p /sbin/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun -n libasprintf-devel   -p      /sbin/postshell
+%postun        -n libasprintf-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/*
+%attr(755,root,root) /bin/gettext
+%attr(755,root,root) /bin/ngettext
 %attr(755,root,root) %{_bindir}/envsubst
 %{_mandir}/man1/envsubst.1*
 %{_mandir}/man1/gettext.1*
@@ -438,12 +430,18 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_libdir}/gettext
 %dir %{_datadir}/gettext
 
+%files demo
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
 %files devel -f %{name}-tools.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README THANKS
-%attr(755,root,root) %{_bindir}/*
-%exclude %{_bindir}/autopoint
-%exclude %{_bindir}/envsubst
+%attr(755,root,root) %{_bindir}/gettext.sh
+%attr(755,root,root) %{_bindir}/gettextize
+%attr(755,root,root) %{_bindir}/msg*
+%attr(755,root,root) %{_bindir}/recode-sr-latin
+%attr(755,root,root) %{_bindir}/xgettext
 %attr(755,root,root) %{_libdir}/libgettext*.so
 %{_libdir}/libgettext*.la
 # libgettextpo is for other programs, not used by gettext tools themselves
@@ -455,7 +453,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/gettext/urlget
 %attr(755,root,root) %{_libdir}/gettext/user-email
 %{_includedir}/gettext-po.h
-%{_aclocaldir}/*
+%{_aclocaldir}/*.m4
 %{_infodir}/gettext*.info*
 %{_mandir}/man1/gettextize.1*
 %{_mandir}/man1/msg*.1*
@@ -534,7 +532,7 @@ rm -rf $RPM_BUILD_ROOT
 %files autopoint
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/autopoint
-%{_datadir}/gettext/archive
+%{_datadir}/gettext/archive.dir.tar.gz
 %{_mandir}/man1/autopoint.1*
 
 %if %{with dotnet}
This page took 0.097795 seconds and 4 git commands to generate.