Summary: C library for parsing command line parameters Summary(de): C-Library zum Parsen von Befehlszeilenparametern Summary(fr): Bibliothčque C pour analyser les paramčtres de la ligne de commande Summary(pl): Biblioteka C do przetwarzania parametrów przekazywanych do programów w linii poleceń Summary(tr): Komut satýrý parametrelerini ayrýţtýrýmak için C arţivi Name: popt Version: 1.6 Release: 2 License: LGPL Group: Libraries Group(de): Libraries Group(fr): Librairies Group(pl): Biblioteki Source0: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/%{name}-%{version}.tar.gz Patch0: %{name}-values.patch BuildRequires: gettext-devel BuildRequires: autoconf BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Popt is a C library for pasing command line parameters. It was heavily influenced by the getopt() and getopt_long() functions, but it allows more powerfull argument expansion. It can parse arbitrary argv[] style arrays and automatically set variables based on command line arguments. It also allows command line arguments to be aliased via configuration files and includes utility functions for parsing arbitrary strings into argv[] arrays using shell-like rules. %description -l de Popt ist eine C-Library zum Parsen von Befehlszeilenparametern, stark beeinflußt von den getopt() und getopt_long()-Funktionen, aber mit sehr viel besserer Argumenterweiterung. Es können beliebige argv[]-Argument- Arrays geparst und Variablen auf der Basis von Befehlszeilenargumenten automatisch gesetzt werden. Ferner können Befehlszeilenargumente über Konfigurationsdateien ge-aliast werden, und die Library enthält Utility- funktionen zum Parsen beliebiger Strings in argv[]-Arrays anhand von Shell-ähnlichen Regeln. %description -l fr Popt est une bibliothčque C pour analyser les paramętres de la ligne de commande. Elle a été beaucoup influencée par les fonctions getopt() et getopt_long() mais permet une expansion plus puissante des arguments. Elle peut analyser des tableaux arbitraires du style argv[] et configure les variables automatiquement selon les arguments de la ligne de commande. Elle permet aussi ŕ ces arguments d'ętre des alias via des fichiers de configuration et inclut des fonctions utilitaires pour analyser des chaînes arbitraires dans les tableaux argv[] en utilisant des rčgles ŕ la shell %description -l pl Popt jest biblioteką C służącą przetwarzaniu parametrów wywołania. Duży wpływ miały na nią getopt() i getopt_long(), ale ma od nich znacznie większe możliwości. Może przetwarzać bezpośrednio tablice typu argv[] i automatycznie ustawiać zmienne w oparciu i parametry wywołania. Pozwala także na tworzenie związków pomiędzy argumentami wywołania a plikami konfiguracyjnymi oraz pozwala zamieniać ciągi znaków na tablice typu argv[] z wykorzystaniem zasad znanych z powłok (shell'i). %description -l tr Popt, komut satýrý parametrelerini ayrýţtýran bir C arţividir. Geliţigüzel argv[] tarzý dizileri ayrýţtýrabilir ve otomatik olarak komut satýrý deđiţkenlerine dayalý deđiţkenleri atayabilir. %package devel Summary: Header file and library for popt development Summary(pl): Pliki nagłówkowe dla popt Group: Development/Libraries Group(de): Entwicklung/Libraries Group(fr): Development/Librairies Group(pl): Programowanie/Biblioteki Requires: %{name} = %{version} %description devel Header file and library for popt development. %description devel -l pl Pliki nagłówkowe i dokumentacja dla popt. %package static Summary: Static library for popt development Summary(pl): Biblioteka statyczna do popt Group: Development/Libraries Group(de): Entwicklung/Libraries Group(fr): Development/Librairies Group(pl): Programowanie/Biblioteki Requires: %{name}-devel = %{version} %description static Static library for popt development. %description static -l pl Biblioteka statyczna do popt. %prep %setup -q %patch0 -p1 %build autoconf %configure \ --enable-shared %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/lib %{__make} install DESTDIR=$RPM_BUILD_ROOT mv -f $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* $RPM_BUILD_ROOT/lib rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.so ln -sf ../../lib/`( cd $RPM_BUILD_ROOT/lib; echo *)` \ $RPM_BUILD_ROOT%{_libdir}/libpopt.so %find_lang %{name} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) %attr(755,root,root) /lib/* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libpopt.so %attr(755,root,root) %{_libdir}/libpopt.la %{_mandir}/man3/* %{_includedir}/popt.h %files static %defattr(644,root,root,755) %{_libdir}/libpopt.a