Including gettextization.
# Do NOT list 'devel' in subdirs. It's developers playgound
# and must not prevent anything from building.
-SUBDIRS = src
+SUBDIRS = src po
## ##################################################
-#ACLOCAL_AMFLAGS = -I m4
-ACLOCAL_AMFLAGS =
+ACLOCAL_AMFLAGS = -I m4
+EXTRA_DIST = config.rpath
## ##################################################
check-up-to-date:
cd $(srcdir) && ! LC_ALL=C svn status --show-updates --quiet | grep -v '^Status against revision'
+
dnl ==================================================
dnl checks for programs
+dnl invoked by AM_GNU_GETTEXT later. must be applied consistently.
+AC_GNU_SOURCE
+
dnl check for c++ compiler and tools
AC_PROG_CXX
AC_PROG_CXX
dnl ==================================================
dnl checks for libraries
-AC_CHECK_LIB([z], [gzopen],
- [:],
- AC_MSG_ERROR([libz not found. please install zlib-devel]))
-AC_CHECK_LIB([xml2], [xmlNewTextReader],
- [:],
- AC_MSG_ERROR([libxml2 not found. please install libxml2-devel]))
-
-dnl ==================================================
-PKG_CHECK_MODULES(ZYPP, [libzypp])
+AC_ARG_VAR([PKG_CONFIG_PATH], [where to search for pkg-config files])
+PKG_CHECK_MODULES(ZYPP, [libzypp >= 2.0.0])
dnl ==================================================
dnl checks for header files
AC_CHECK_HEADERS([boost/scoped_ptr.hpp],
[],
AC_MSG_ERROR([boost header not found. please install boost-devel]))
-AC_CHECK_HEADERS([curl/curl.h],
- [],
- AC_MSG_ERROR([libcurl header not found. please install curl-devel.]))
-AC_CHECK_HEADERS([idn-free.h],
- [],
- AC_MSG_ERROR([libidn header not found. please install libidn-devel.]))
-AC_CHECK_HEADERS([openssl/evp.h],
- [],
- AC_MSG_ERROR([openssl header not found. please install openssl-devel.]))
-AC_CHECK_HEADERS([rpm/rpmlib.h],
- [],
- AC_MSG_ERROR([rpmlib header not found. please install rpm-devel.]))
-AC_CHECK_HEADERS([popt.h],
- [],
- AC_MSG_ERROR([popt header not found. please install popt-devel.]))
dnl internationalization macros
-AM_GNU_GETTEXT
+AM_GNU_GETTEXT([external])
dnl ==================================================
dnl checks for typedefs
dnl AC_CONFIG_FILES([FILE...])
AC_OUTPUT(
Makefile \
- libzypp.spec \
- libzypp.pc \
+ zypper.spec \
src/Makefile \
po/Makefile.in
)
--- /dev/null
+-------------------------------------------------------------------
+Wed Oct 25 09:42:09 CEST 2006 - mvidner@suse.cz
+
+- Split the package from libzypp.rpm
+- 0.5.0
+
--- /dev/null
+# Set of available languages.
+cs
--- /dev/null
+# Makefile variables for PO directory in any package using GNU gettext.
+
+# Usually the message domain is the same as the package name.
+DOMAIN = $(PACKAGE)
+
+# These two variables depend on the location of this directory.
+subdir = po
+top_builddir = ..
+
+# These options get passed to xgettext.
+XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
+
+# This is the copyright holder that gets inserted into the header of the
+# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
+# package. (Note that the msgstr strings, extracted from the package's
+# sources, belong to the copyright holder of the package.) Translators are
+# expected to transfer the copyright for their translations to this person
+# or entity, or to disclaim their copyright. The empty string stands for
+# the public domain; in this case the translators are expected to disclaim
+# their copyright.
+COPYRIGHT_HOLDER = SuSE Linux Products GmbH, Nuernberg
+
+# This is the email address or URL to which the translators shall report
+# bugs in the untranslated strings:
+# - Strings which are not entire sentences, see the maintainer guidelines
+# in the GNU gettext documentation, section 'Preparing Strings'.
+# - Strings which use unclear terms or require additional context to be
+# understood.
+# - Strings which make invalid assumptions about notation of date, time or
+# money.
+# - Pluralisation problems.
+# - Incorrect English spelling.
+# - Incorrect formatting.
+# It can be your email address, or a mailing list address where translators
+# can write to without being subscribed, or the URL of a web page through
+# which the translators can contact you.
+MSGID_BUGS_ADDRESS = translation@suse.de
+
+# This is the list of locale categories, beyond LC_MESSAGES, for which the
+# message catalogs shall be used. It is usually empty.
+EXTRA_LOCALE_CATEGORIES =
--- /dev/null
+# List of source files which contain translatable strings.
+./src/zypper.cc
--- /dev/null
+# Czech translations for zypper package.
+# Copyright (C) 2006 SuSE Linux Products GmbH, Nuernberg
+# This file is distributed under the same license as the zypper package.
+# Martin Vidner <mvidner@suse.cz>, 2006.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: zypper 0.5.0\n"
+"Report-Msgid-Bugs-To: translation@suse.de\n"
+"POT-Creation-Date: 2006-10-25 09:26+0200\n"
+"PO-Revision-Date: 2006-10-25 09:22+0200\n"
+"Last-Translator: Martin Vidner <mvidner@suse.cz>\n"
+"Language-Team: Czech <translation-team-cs@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
+
+#: src/zypper.cc:230
+msgid ""
+" Commands:\n"
+"\thelp\t\t\tHelp\n"
+"\tinstall, in\t\tInstall packages or resolvables\n"
+"\tremove, rm\t\tRemove packages or resolvables\n"
+"\tsearch, se\t\tSearch for packages matching a pattern\n"
+"\tservice-list, sl\tList services aka installation sources\n"
+"\tservice-add, sa\t\tAdd a new service\n"
+"\tservice-delete, sd\tDelete a service\n"
+"\tservice-rename, sr\tRename a service\n"
+"\tpatch-check, pchk\tCheck for patches\n"
+"\tpatches, pch\t\tList patches\n"
+"\tlist-updates, lu\tList updates\n"
+"\tupdate, up\t\tUpdate packages\n"
+"\tinfo, if\t\tShow full info for packages\n"
+msgstr ""
## ##################################################
-INCLUDES = -I$(top_srcdir)/tools/zmart -I$(oldincludedir)/libxml2
+AM_CPPFLAGS = $(ZYPP_CFLAGS)
AM_LDFLAGS =
AM_CXXFLAGS =
# gperf: -pg
-LDADD = -L$(top_srcdir)/zypp/.libs -lzypp -lboost_regex -lboost_program_options -lxml2 -lz
+LDADD = $(ZYPP_LIBS) -lboost_regex -lboost_program_options
## ##################################################
zypper-info.h \
zypper-info.cc \
zmart.h
-zypper_LDADD = $(top_srcdir)/zypp/libzypp.la -lboost_regex
+zypper_LDADD = $(ZYPP_LIBS) -lboost_regex
zypp_checkpatches_SOURCES = zypp-checkpatches.cc zmart-sources.cc \
zypper-tabulator.h \
Name: @PACKAGE@
# da library
-BuildRequires: libzypp
-BuildRequires: boost-devel gcc-c++ libxml2-devel gettext-devel
+BuildRequires: libzypp-devel
+BuildRequires: gcc-c++ pkg-config boost-devel gettext-devel
License: GPL
Group: System/Packages
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%setup -q
%build
-cp /usr/share/gettext/config.rpath .
gettextize -f
autoreconf --force --install --symlink --verbose
%{?suse_update_config:%{suse_update_config -f}}
%clean
-%files -f zypp.lang
+%files -f zypper.lang
%defattr(-,root,root)
%{_bindir}/zypper
%{_sbindir}/zypp-checkpatches
%verify(not mode) %attr (755,root,root) %{_sbindir}/zypp-checkpatches-wrapper
-
-%files devel
-%defattr(-,root,root)
-%dir %{_libdir}/libzypp.so
-%dir %{_libdir}/libzypp.la
-%dir %{_docdir}/zypp
-%{_docdir}/zypp/*
-%dir %{prefix}/include/zypp
-%{prefix}/include/zypp/*
-%{_libdir}/pkgconfig/libzypp.pc