Репозитории ALT
Группа :: Система/Библиотеки
Пакет: libtasn1
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: libtasn1
Version: 2.2
Release: alt1
%def_disable static
%def_enable check
Summary: ASN.1 library
Group: System/Libraries
License: LGPL
URL: http://www.gnu.org/software/gnutls/
Packager: Afanasov Dmitry <ender at altlinux.org>
%define pkgdocdir %_docdir/%name-%version
Source: %name-%version.tar
BuildRequires: gtk-doc >= 1.2
BuildRequires: automake >= 1.9
# well, we need autoconf 2.60 now, but let's add onceonly.m4...
BuildRequires: autoconf >= 2.59
%{?_enabled_static:BuildRequires: glibc-devel-static}
%{?_enabled_check:BuildRequires: valgrind}
%description
libtasn1 is a library to manage ASN.1 (Abstract Syntax Notation One)
structures.
%package utils
Summary: ASN.1 development utilities
Group: Development/Other
Requires: %name = %version-%release
%description utils
Development utilities to handle ASN.1 notation
coming with the libtasn1 library.
%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name = %version-%release
%description devel
Header and other files needed to develop applications using the tASN.1 library
%if_enabled static
%package devel-static
Summary: Static library for %name
Group: Development/C
Requires: %name-devel = %version-%release
%description devel-static
Static archive variant of the tASN.1 library
%endif # enabled static
%package devel-doc
Summary: Development documentation for %name
Group: Development/C
Conflicts: libtasn1-devel < 0.2.17-alt1
%description devel-doc
Development documentation for the tASN.1 library.
%prep
%setup -q
rm -f COPYING.LIB
ln -s %_licensedir/LGPL-2.1 COPYING.LIB
bzip2 -9k doc/libtasn1.ps
sed -i 's|^INFO-DIR-SECTION .*|INFO-DIR-SECTION System/Libraries|' \
doc/libtasn1.info
%build
%autoreconf
%configure \
%if_disabled check
--disable-valgrind-tests \
%endif
--enable-gtk-doc \
%{subst_enable static}
# Non-parallel build
export echo='echo'
%make
%if_enabled check
%make check
%endif
%install
export echo='echo'
%make_install DESTDIR=%buildroot install
install -d -m 755 %buildroot%pkgdocdir
install -p -m 644 AUTHORS ChangeLog NEWS README THANKS %buildroot%pkgdocdir
ln -s %_licensedir/LGPL-2.1 %buildroot%pkgdocdir/COPYING.LIB
install -p -m 644 doc/*.html doc/*.pdf doc/*.ps.bz2 doc/TODO \
%buildroot%pkgdocdir/
%files
%_libdir/*.so.*
%dir %pkgdocdir
%pkgdocdir/AUTHORS
%pkgdocdir/ChangeLog
%pkgdocdir/COPYING.LIB
%pkgdocdir/NEWS
%pkgdocdir/README
%pkgdocdir/THANKS
%files utils
%_bindir/asn1*
%_man1dir/*
%files devel
%_libdir/*.so
%_includedir/*
%_libdir/pkgconfig/*
%files devel-doc
%_infodir/*
%_man3dir/*
%doc %_datadir/gtk-doc/html/*
%dir %pkgdocdir
%pkgdocdir/*.html
%pkgdocdir/*.pdf
%pkgdocdir/*.ps.bz2
%pkgdocdir/TODO
%if_enabled static
%files devel-static
%_libdir/*.a
%endif # enabled static
%changelog
…
Полный changelog можно просмотреть здесь
Version: 2.2
Release: alt1
%def_disable static
%def_enable check
Summary: ASN.1 library
Group: System/Libraries
License: LGPL
URL: http://www.gnu.org/software/gnutls/
Packager: Afanasov Dmitry <ender at altlinux.org>
%define pkgdocdir %_docdir/%name-%version
Source: %name-%version.tar
BuildRequires: gtk-doc >= 1.2
BuildRequires: automake >= 1.9
# well, we need autoconf 2.60 now, but let's add onceonly.m4...
BuildRequires: autoconf >= 2.59
%{?_enabled_static:BuildRequires: glibc-devel-static}
%{?_enabled_check:BuildRequires: valgrind}
%description
libtasn1 is a library to manage ASN.1 (Abstract Syntax Notation One)
structures.
%package utils
Summary: ASN.1 development utilities
Group: Development/Other
Requires: %name = %version-%release
%description utils
Development utilities to handle ASN.1 notation
coming with the libtasn1 library.
%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name = %version-%release
%description devel
Header and other files needed to develop applications using the tASN.1 library
%if_enabled static
%package devel-static
Summary: Static library for %name
Group: Development/C
Requires: %name-devel = %version-%release
%description devel-static
Static archive variant of the tASN.1 library
%endif # enabled static
%package devel-doc
Summary: Development documentation for %name
Group: Development/C
Conflicts: libtasn1-devel < 0.2.17-alt1
%description devel-doc
Development documentation for the tASN.1 library.
%prep
%setup -q
rm -f COPYING.LIB
ln -s %_licensedir/LGPL-2.1 COPYING.LIB
bzip2 -9k doc/libtasn1.ps
sed -i 's|^INFO-DIR-SECTION .*|INFO-DIR-SECTION System/Libraries|' \
doc/libtasn1.info
%build
%autoreconf
%configure \
%if_disabled check
--disable-valgrind-tests \
%endif
--enable-gtk-doc \
%{subst_enable static}
# Non-parallel build
export echo='echo'
%make
%if_enabled check
%make check
%endif
%install
export echo='echo'
%make_install DESTDIR=%buildroot install
install -d -m 755 %buildroot%pkgdocdir
install -p -m 644 AUTHORS ChangeLog NEWS README THANKS %buildroot%pkgdocdir
ln -s %_licensedir/LGPL-2.1 %buildroot%pkgdocdir/COPYING.LIB
install -p -m 644 doc/*.html doc/*.pdf doc/*.ps.bz2 doc/TODO \
%buildroot%pkgdocdir/
%files
%_libdir/*.so.*
%dir %pkgdocdir
%pkgdocdir/AUTHORS
%pkgdocdir/ChangeLog
%pkgdocdir/COPYING.LIB
%pkgdocdir/NEWS
%pkgdocdir/README
%pkgdocdir/THANKS
%files utils
%_bindir/asn1*
%_man1dir/*
%files devel
%_libdir/*.so
%_includedir/*
%_libdir/pkgconfig/*
%files devel-doc
%_infodir/*
%_man3dir/*
%doc %_datadir/gtk-doc/html/*
%dir %pkgdocdir
%pkgdocdir/*.html
%pkgdocdir/*.pdf
%pkgdocdir/*.ps.bz2
%pkgdocdir/TODO
%if_enabled static
%files devel-static
%_libdir/*.a
%endif # enabled static
%changelog
…
Полный changelog можно просмотреть здесь