2020-06-01 18:28:49 -04:00
|
|
|
#TARBALL: https://prdownloads.sourceforge.net/expat/expat-2.2.9.tar.xz
|
|
|
|
#MD5SUM: d2384fa607223447e713e1b9bd272376;SOURCES/expat-2.2.9.tar.xz
|
2019-05-24 08:27:40 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
Summary: The Expat package contains a stream oriented C library for parsing XML.
|
|
|
|
Name: expat
|
2020-06-01 16:11:06 -04:00
|
|
|
Version: 2.2.9
|
2019-05-24 08:27:40 -04:00
|
|
|
Release: 1
|
|
|
|
License: Other
|
|
|
|
URL: Any
|
|
|
|
Group: LFS/Base
|
2020-06-01 18:28:49 -04:00
|
|
|
Source0: http://prdownloads.sourceforge.net/expat/%{name}-%{version}.tar.xz
|
2019-05-24 08:27:40 -04:00
|
|
|
Requires: filesystem
|
|
|
|
%description
|
|
|
|
The Expat package contains a stream oriented C library for parsing XML.
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{NAME}-%{VERSION}
|
|
|
|
sed -i 's|usr/bin/env |bin/|' run.sh.in
|
|
|
|
%build
|
|
|
|
./configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--disable-static \
|
|
|
|
--docdir=%{_docdir}/%{name}-%{version}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
install -v -dm755 %{buildroot}%{_docdir}/%{name}-%{version}
|
|
|
|
install -v -m644 doc/*.{html,png,css} %{buildroot}%{_docdir}/%{name}-%{version}
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Copy license/copying file
|
|
|
|
install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Create file list
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
2020-06-01 16:11:06 -04:00
|
|
|
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
|
|
|
|
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
|
|
|
|
sed -i '/man\/man/d' filelist.list
|
|
|
|
sed -i '/\/usr\/share\/info/d' filelist.list
|
2019-05-24 08:27:40 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
2020-06-01 16:11:06 -04:00
|
|
|
%files -f filelist.list
|
2019-05-24 08:27:40 -04:00
|
|
|
%defattr(-,root,root)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
%changelog
|
2020-06-01 16:11:06 -04:00
|
|
|
* Sun May 31 2020 Chris Cromer <chris@cromer.cl> 2.2.9-1
|
2019-05-24 08:27:40 -04:00
|
|
|
* Fri Apr 05 2019 baho-utot <baho-utot@columbus.rr.com> 2.2.6-1
|
|
|
|
- Update for LFS-8.4
|
|
|
|
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 2.2.5-1
|
|
|
|
- Initial build. First version
|