Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37392993
en ru br
Репозитории ALT
S:1.18-alt1
5.1: 1.14-alt4
4.1: 1.14-alt2
4.0: 1.7-alt16
3.0: 1.7-alt13
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libpopt

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: libpopt
Version: 1.7
Release: alt16
Serial: 1
%define srcname popt-20020315

%def_with apidocs

Summary: A C library for parsing command line parameters
License: MIT
Group: System/Libraries
Url: http://www.rpm.org/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# ftp://ftp.rpm.org/pub/rpm/test/

# cvs -d :pserver:anonymous at cvs.rpm.org:/cvs/devel get -r rpm-4_0 rpm/popt
Source: %srcname.tar

Patch1: popt-20020315-alt-alloc-checks.patch
Patch2: popt-20020315-alt-context-checks.patch
Patch3: popt-20020315-alt-x-alloc.patch
Patch4: popt-20020315-alt-man.patch
Patch5: popt-20020315-owl-alt-env-sgid.patch
Patch6: popt-20020315-alt-configure.patch
Patch7: popt-20020315-alt-poptBadOption.patch
Patch8: popt-20020315-alt-shared.patch

Provides: popt = %version-%release
Obsoletes: popt

%{?_with_apidocs:BuildPreReq: doxygen}

# Automatically added by buildreq on Thu May 01 2003

BuildRequires: glibc-devel-static

%package devel
Summary: Developement environment for the popt library
Group: Development/C
Provides: popt-devel = %version-%release
Obsoletes: popt-devel
Requires: %name = %serial:%version-%release
Requires: glibc-devel

%package devel-static
Summary: Static popt library
Group: Development/C
Provides: popt-devel-static = %version-%release
Obsoletes: popt-devel-static
Requires: %name-devel = %serial:%version-%release

%description
Popt is a C library for parsing command line parameters.  Popt was
heavily influenced by the getopt() and getopt_long() functions, but it
improves on them by allowing more powerful argument expansion.  Popt
can parse arbitrary argv[] style arrays and automatically set
variables based on command line arguments.  Popt 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 devel
This package contains developement library, include files and
documentation required for development of popt-based software.

%description devel-static
This package contains static library required for development of
statically linked popt-based software.

%prep
%setup -q -n %srcname
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

%build
%add_optflags -DHAVE_MCHECK_H
rm acconfig.h
gettextize --force --quiet
install -pv -m644 /usr/share/gettext/intl/Makevars* po/Makevars
autoreconf -fisv -I m4
%configure --disable-rpath %{subst_with apidocs}

%make_build
./testit.sh

%{?_with_apidocs:make doxygen}

%install
mkdir -p %buildroot/%_lib
%make_install install DESTDIR="%buildroot"

%{?_with_apidocs:install -pm644 doxygen/man/man3/popt.h.3 %buildroot%_man3dir/}

# Relocate shared libraries from %_libdir/ to /%_lib/.

for f in %buildroot%_libdir/*.so; do
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
ln -snf ../../%_lib/"$t" "$f"
done
mv %buildroot%_libdir/*.so.* %buildroot/%_lib/

bzip2 -9 *.ps ||:

%find_lang popt

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files -f popt.lang
/%_lib/*.so.*

%files devel
%_libdir/*.so
%_includedir/*
%_mandir/man?/*
%doc README CHANGES *.ps*

%files devel-static
%_libdir/*.a

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin