Группа :: Система/Библиотеки
Пакет: zlib-ng
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%{?optflags_lto:%global optflags_lto %optflags_lto -ffat-lto-objects}
%define soversion 2
Name: zlib-ng
Version: 2.1.3
Release: alt1
Summary: Zlib replacement with optimizations
License: Zlib
Group: System/Libraries
Url: https://github.com/%name/%name
Packager: Nazarov Denis <nenderus at altlinux.org>
# https://github.com/%name/%name/archive/%version/%name-%version.tar.gz
Source: %name-%version.tar
Patch2000: %name-e2k-simd.patch
BuildRequires: ctest
%description
%name is a zlib replacement that provides optimizations for "next generation"
systems.
%package -n libz-ng%soversion
Summary: Zlib replacement with optimizations
Group: System/Libraries
Provides: %name = %EVR
Obsoletes: %name <= 2.0.5-alt1.1
%description -n libz-ng%soversion
%name is a zlib replacement that provides optimizations for "next generation"
systems.
%package devel
Summary: Development files for %name
Group: Development/C
%description devel
The %name-devel package contains development files for
developing application that use %name.
%package devel-static
Summary: Static library for %name
Group: Development/C
Requires: %name-devel = %EVR
%description devel-static
The %name-devel package contains static library for
developing application that use %name.
%prep
%setup
%ifarch %e2k
%patch2000 -p1
%endif
%build
%ifarch %arm
%remove_optflags %optflags_lto
%endif
%cmake \
-DCMAKE_SKIP_RPATH:BOOL=OFF \
-DWITH_GTEST:BOOL=OFF
%cmake_build
%install
%cmake_install
%check
%make -C %_cmake__builddir test
%files -n libz-ng%soversion
%doc FAQ.zlib PORTING.md README.md doc/*.txt
%_libdir/libz-ng.so.*
%files devel
%_includedir/*.h
%_libdir/libz-ng.so
%_pkgconfigdir/%name.pc
%files devel-static
%_libdir/libz-ng.a
%changelog
…
Полный changelog можно просмотреть здесь
%define soversion 2
Name: zlib-ng
Version: 2.1.3
Release: alt1
Summary: Zlib replacement with optimizations
License: Zlib
Group: System/Libraries
Url: https://github.com/%name/%name
Packager: Nazarov Denis <nenderus at altlinux.org>
# https://github.com/%name/%name/archive/%version/%name-%version.tar.gz
Source: %name-%version.tar
Patch2000: %name-e2k-simd.patch
BuildRequires: ctest
%description
%name is a zlib replacement that provides optimizations for "next generation"
systems.
%package -n libz-ng%soversion
Summary: Zlib replacement with optimizations
Group: System/Libraries
Provides: %name = %EVR
Obsoletes: %name <= 2.0.5-alt1.1
%description -n libz-ng%soversion
%name is a zlib replacement that provides optimizations for "next generation"
systems.
%package devel
Summary: Development files for %name
Group: Development/C
%description devel
The %name-devel package contains development files for
developing application that use %name.
%package devel-static
Summary: Static library for %name
Group: Development/C
Requires: %name-devel = %EVR
%description devel-static
The %name-devel package contains static library for
developing application that use %name.
%prep
%setup
%ifarch %e2k
%patch2000 -p1
%endif
%build
%ifarch %arm
%remove_optflags %optflags_lto
%endif
%cmake \
-DCMAKE_SKIP_RPATH:BOOL=OFF \
-DWITH_GTEST:BOOL=OFF
%cmake_build
%install
%cmake_install
%check
%make -C %_cmake__builddir test
%files -n libz-ng%soversion
%doc FAQ.zlib PORTING.md README.md doc/*.txt
%_libdir/libz-ng.so.*
%files devel
%_includedir/*.h
%_libdir/libz-ng.so
%_pkgconfigdir/%name.pc
%files devel-static
%_libdir/libz-ng.a
%changelog
…
Полный changelog можно просмотреть здесь