Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37562449
en ru br
ALT Linux repositórios
S:2.5.0-alt1
5.0: 2.0.1-alt2
4.1: 2.0.1-alt0.1.M41.1
4.0: 2.0.1-alt0.1
3.0: 1.95.8-alt2

Outros repositórios
Upstream:2.0.1

Group :: Sistema/Base
RPM: expat

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: expat
Version: 2.0.1
Release: alt0.1

%def_enable static
%define pkgdocdir %_docdir/%name-%version

Summary: An XML parser written in C
License: MIT/X Consortium
Group: System/Base

URL: http://expat.sourceforge.net
Source: %name-%version-%release.tar

Requires: lib%name = %version-%release

%package -n lib%name
Summary: XML parser library
Group: System/Libraries
%if "%_lib" == "lib64"
Provides: libexpat.so.0()(64bit)
%else
Provides: libexpat.so.0
%endif

%package -n lib%name-devel
Summary: Development files for Expat, an XML parser library for C
Group: Development/C
Requires: lib%name = %version-%release
Provides: expat-devel = %version
Obsoletes: expat-devel

%package -n lib%name-devel-static
Summary: Static library for developing static applications which will manipulate XML files
Group: Development/C
Requires: lib%name-devel = %version-%release

%description
Expat is a stream-oriented XML parser written in C.

%description -n lib%name
Expat is a stream-oriented XML parser written in C.
This package provides the Expat parser as a shared library.

%description -n lib%name-devel
Expat is a stream-oriented XML parser written in C.
This package is needed if you want to build programs which use Expat
library.

%description -n lib%name-devel-static
Expat is a stream-oriented XML parser written in C.
This package provides the Expat parser as a library for static linking.

%prep
%setup -q -n %name-%version-%release

%build
autoreconf -i
%configure %{subst_enable static}

# SMP-incompatible build.

make

%install
%make_install DESTDIR=%buildroot install

# Provide symlink for backward compatibility

ln -s libexpat.so.1 %buildroot%_libdir/libexpat.so.0

install -d -m755 %buildroot%pkgdocdir
install -p -m644 README COPYING Changes %buildroot%pkgdocdir/
install -p -m644 doc/*.{html,css,png} %buildroot%pkgdocdir/
install -d -m755 %buildroot%pkgdocdir/examples
install -p -m644 examples/*.c %buildroot%pkgdocdir/examples/

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%triggerpostun -n lib%name -- libexpat < 2.0.0-alt1
/bin/ln -snf libexpat.so.1 %_libdir/libexpat.so.0
/sbin/ldconfig

%files
%_bindir/*
%_man1dir/*

%files -n lib%name
%_libdir/*.so.*
%dir %pkgdocdir
%pkgdocdir/Changes
%pkgdocdir/COPYING
%pkgdocdir/README

%files -n lib%name-devel
%_libdir/*.so
%_includedir/*
%dir %pkgdocdir
%pkgdocdir/*.html
%pkgdocdir/*.css
%pkgdocdir/*.png
%pkgdocdir/examples

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif # enabled static

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009