Репозиторий Sisyphus
Последнее обновление: 21 июня 2018 | Пакетов: 18578 | Посещений: 11725973
en ru br
Репозитории ALT
S:1.4.0-alt1.S1
5.1: 0.9-alt2
4.1: 0.9-alt1.M41.1
www.altlinux.org/Changes

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

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


%define sover 5
%define libname libzip%sover
%define utilsname libzip-utils
Name: libzip
Version: 1.4.0
Release: alt1%ubt

Group: System/Libraries
Summary: C library for reading, creating, and modifying zip archives
License: BSD
Url: http://www.nih.at/libzip/

Source: %name-%version.tar
# FC
Patch1: libzip-upstream.patch

BuildRequires(pre): rpm-build-ubt
BuildRequires: gcc-c++ zlib-devel bzlib-devel cmake

%description
libzip is a C library for reading, creating, and modifying zip archives. Files
can be added from data buffers, files, or compressed data copied directly from
other zip archives. Changes made without closing the archive can be reverted.
The API is documented by man pages.

%package -n %utilsname
Group: System/Libraries
Summary: Zip-file processing utilities
Requires: %libname = %version-%release
Conflicts: libzip <= 0.9.3-alt2
%description -n %utilsname
Zip-file processing utilities

%package -n %libname
Group: System/Libraries
Summary: C library for reading, creating, and modifying zip archives
%description -n %libname
libzip is a C library for reading, creating, and modifying zip archives. Files
can be added from data buffers, files, or compressed data copied directly from
other zip archives. Changes made without closing the archive can be reverted.
The API is documented by man pages.

%package devel
Summary: Development files for %name
Group: Development/C
Requires: %libname = %version-%release
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.


%prep
%setup -q
%patch1 -p1
sed -i '/^ADD_SUBDIRECTORY(regress)$/d' CMakeLists.txt

%build
%cmake \
   -DBUILD_SHARED_LIBS=ON \
   -DCMAKE_INSTALL_INCLUDEDIR=include/libzip \
   #
%cmake_build VERBOSE=1

%install
%make DESTDIR=%buildroot install -C BUILD


%files -n %utilsname
%doc AUTHORS NEWS.* THANKS
%_bindir/*
%_man1dir/*zip*

%files -n %libname
%doc AUTHORS NEWS.* THANKS
%_libdir/*.so.%sover
%_libdir/*.so.%sover.*

%files devel
%_libdir/*.so
%_libdir/pkgconfig/*.pc
#%_libdir/%name/include
%_includedir/%name/
%_man3dir/*zip*
%_man3dir/*ZIP*

%changelog

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

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