removed internal legacy package libexpat0 [release 2.2.7-2mamba;Thu Aug 01 2019]

This commit is contained in:
Silvan Calarco 2024-01-05 22:10:51 +01:00
parent 5c2cc92b68
commit e7e17d9d84

View File

@ -1,9 +1,6 @@
%define with_libexpat0 1
%define expat0_ver 1.95.8
Name: expat
Version: 2.2.3
Release: 1mamba
Version: 2.2.7
Release: 2mamba
Summary: An XML parser written in C
Group: Development/Applications
Vendor: openmamba
@ -11,11 +8,11 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://expat.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/expat/expat/%{version}/expat-%{version}.tar.bz2
Source1: http://downloads.sourceforge.net/sourceforge/expat/expat-%{expat0_ver}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
@ -33,88 +30,29 @@ This package contains the library needed to run programs dynamically linked with
%package -n libexpat-devel
Group: Development/Libraries
Summary: Development environment for the expat XML parser
Requires: libexpat = %{version}-%{release}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n libexpat-devel
Development environment for the expat XML parser.
%if %{with_libexpat0}
%package -n libexpat0
Group: Development/Libraries
Summary: Main library for expat 1.95.x
%description -n libexpat0
This package contains the library needed to run programs dynamically linked with expat 1.95.x.
%endif
%package -n lib32-libexpat
Summary: An XML parser library written in C
Group: System/Libraries
%description -n lib32-libexpat
Expat is an XML parser library written in C.
%package -n lib32-libexpat-devel
Summary: Devel package for lib32-libX11
Group: Development/Libraries
Requires: lib32-libexpat = %{?epoch:%epoch:}%{version}-%{release}
Requires: libexpat-devel = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib32-libexpat-devel
Expat is an XML parser library written in C.
This package contains static libraries and header files needed for development.
%prep
%setup -q -a1
%setup -q
%build
%if %{with_libexpat0}
cd expat-%{expat0_ver}
%configure
%make
cd ..
%endif
%configure \
DOCBOOK_TO_MAN="xmlto man --skip-validation"
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%if %{with_libexpat0}
make -C expat-%{expat0_ver} installlib \
libdir=%{buildroot}%{_libdir} \
includedir=%{buildroot}%{_includedir}
rm -fr %{buildroot}%{_includedir}
rm -f %{buildroot}%{_libdir}/libexpat.{a,la,so}
%endif
%makeinstall
#man1dir=%{buildroot}%{_mandir}/man1
%ifarch x86_64
# x86_64 lib64 support
make clean
CC=%{_target_platform}-gcc \
CFLAGS="%{optflags} -m32" \
CXXLAGS="%{optflags} -m32" \
./configure --prefix=%{_prefix} --libdir=%{_prefix}/lib
make
make install DESTDIR=`pwd`/lib32
cp -a lib32/%{_prefix}/lib %{buildroot}%{_prefix}/
%endif
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libexpat -p /sbin/ldconfig
%postun -n libexpat -p /sbin/ldconfig
%post -n lib32-libexpat -p /sbin/ldconfig
%postun -n lib32-libexpat -p /sbin/ldconfig
%if %{with_libexpat0}
%post -n libexpat0 -p /sbin/ldconfig
%postun -n libexpat0 -p /sbin/ldconfig
%endif
%files
%defattr(-,root,root)
@ -124,10 +62,6 @@ cp -a lib32/%{_prefix}/lib %{buildroot}%{_prefix}/
%files -n libexpat
%defattr(-,root,root)
%{_libdir}/libexpat.so.*
%if %{with_libexpat0}
%exclude %{_libdir}/libexpat.so.0
%exclude %{_libdir}/libexpat.so.0.5.0
%endif
%doc COPYING
%files -n libexpat-devel
@ -137,28 +71,16 @@ cp -a lib32/%{_prefix}/lib %{buildroot}%{_prefix}/
%{_libdir}/libexpat.la
%{_libdir}/libexpat.so
%{_libdir}/pkgconfig/expat.pc
%if %{with_libexpat0}
%files -n libexpat0
%defattr(-,root,root)
%{_libdir}/libexpat.so.0
%{_libdir}/libexpat.so.0.5.0
%endif
%ifarch x86_64
%files -n lib32-libexpat
%defattr(-,root,root)
%{_prefix}/lib/libexpat.so.*
%files -n lib32-libexpat-devel
%defattr(-,root,root)
%{_prefix}/lib/libexpat.a
%{_prefix}/lib/libexpat.la
%{_prefix}/lib/libexpat.so
%{_prefix}/lib/pkgconfig/*.pc
%endif
%dir %{_datadir}/doc/expat
%{_datadir}/doc/expat/*
%changelog
* Thu Aug 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.7-2mamba
- removed internal legacy package libexpat0
* Wed Jul 31 2019 Automatic Build System <autodist@mambasoft.it> 2.2.7-1mamba
- automatic version update by autodist
* Mon Aug 14 2017 Automatic Build System <autodist@mambasoft.it> 2.2.3-1mamba
- automatic version update by autodist