%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} Summary: Expat is an XML 1.0 parser written in C Summary(ja): C で書かれた XML 1.0 パーサ Name: expat Version: 2.6.2 Release: 1%{?_dist_release} Group: accessories Vendor: Project Vine Distribution: Vine Linux License: MIT/X URL: https://libexpat.github.io/ %global altver %(echo %{version} | tr '.' '_') Source: https://github.com/libexpat/libexpat/releases/download/R_%{altver}/%{name}-%{version}.tar.xz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: lib%{name} = %{version}-%{release} BuildRequires: libtool %description This is Expat, a C library for parsing XML, written by James Clark. Expat is a stream-oriented XML parser. This means that you register handlers with the parser before starting the parse. These handlers are called when the parser discovers the associated structures in the document being parsed. A start tag is an example of the kind of structures for which you may register handlers. %package -n lib%{name} Summary: Runtime library of expat Summary(ja): Expat のための実行ライブラリ Group: system %description -n lib%{name} This package contains the runtime, shared library of expat, the C library for parsing XML. %description -n lib%{name} -l ja Expat を動作させるために必用となるライブラリです. %package devel Summary: Development environment for the expat XML parser Summary(ja): expat XML パーサ用開発環境 Group: programming Requires: lib%{name} = %{version}-%{release} Requires: pkgconfig %description devel Development environment for the expat XML parser %description devel -l ja expat XML パーサ用開発環境です. ## to build compat32 for x86_64 architecture support %package -n compat32-lib%{name} Summary: Runtime library of expat Summary(ja): Expat のための実行ライブラリ Group: system,legacy Requires: lib%{name} = %{version}-%{release} %description -n compat32-lib%{name} This package contains the runtime, shared library of expat, the C library for parsing XML. %description -n compat32-lib%{name} -l ja Expat を動作させるために必用となるライブラリです. %package -n compat32-%{name}-devel Summary: Development environment for the expat XML parser Summary(ja): expat XML パーサ用開発環境 Group: programming,legacy Requires: %{name}-devel = %{version}-%{release} Requires: compat32-lib%{name} = %{version}-%{release} %description -n compat32-%{name}-devel Development environment for the expat XML parser %description -n compat32-%{name}-devel -l ja expat XML パーサ用開発環境です. %debug_package %prep %setup -q %autopatch -p2 %build export CFLAGS="$RPM_OPT_FLAGS -fPIC" %configure --enable-shared make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT rm -f examples/*.dsp chmod 644 AUTHORS README.md COPYING Changes doc/* examples/* make DESTDIR=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT/%{_libdir}/libexpat.la rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/expat mkdir -p %{buildroot}%{_mandir}/man1 install -m644 doc/xmlwf.1 %{buildroot}%{_mandir}/man1/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %license COPYING %doc AUTHORS Changes README.md %{_bindir}/xmlwf %{_mandir}/man1/xmlwf.1* %files -n lib%{name} %defattr(-,root,root) %license COPYING %doc AUTHORS Changes README.md %{_libdir}/libexpat.so.* %files devel %defattr(-,root,root) %license COPYING %doc AUTHORS Changes README.md %doc doc/* examples %{_includedir}/* %{_libdir}/libexpat.a %{_libdir}/libexpat.so %{_libdir}/pkgconfig/%{name}.pc %dir %{_libdir}/cmake %{_libdir}/cmake/expat-%{version} ## to build compat32 for x86_64 architecture support %if %{build_compat32} %files -n compat32-lib%{name} %defattr(-,root,root) %{_libdir}/libexpat.so.* %files -n compat32-%{name}-devel %defattr(-,root,root) %{_libdir}/libexpat.a %{_libdir}/libexpat.so %endif %changelog * Wed Mar 20 2024 Tomohiro "Tomo-p" KATO 2.6.2-1 - new upstream release. * Sat Mar 02 2024 Tomohiro "Tomo-p" KATO 2.6.1-1 - new upstream release. * Wed Feb 07 2024 Tomohiro "Tomo-p" KATO 2.6.0-1 - new upstream release. * Wed Oct 26 2022 Tomohiro "Tomo-p" KATO 2.5.0-1 - new upstream release. * Wed Sep 21 2022 Tomohiro "Tomo-p" KATO 2.4.9-1 - new upstream release. * Tue Mar 29 2022 Tomohiro "Tomo-p" KATO 2.4.8-1 - new upstream release. * Sat Mar 05 2022 Tomohiro "Tomo-p" KATO 2.4.7-1 - new upstream release. * Mon Feb 21 2022 Tomohiro "Tomo-p" KATO 2.4.6-1 - new upstream release. * Sat Feb 19 2022 Tomohiro "Tomo-p" KATO 2.4.5-1 - new upstream release. * Sun Jan 30 2022 Tomohiro "Tomo-p" KATO 2.4.4-1 - new upstream release. - dropped Patch1000 and 1001: fixed in upstream. * Sun Jan 30 2022 Tomohiro "Tomo-p" KATO 2.4.3-2 - imported Patch1000 from upstream to fix CVE-2022-23852. - imported Patch1001 from upstream to fix CVE-2022-23990. * Mon Jan 17 2022 Tomohiro "Tomo-p" KATO 2.4.3-1 - new upstream release. * Fri Jul 30 2021 Tomohiro "Tomo-p" KATO 2.4.1-1 - new upstream release. - dropped ldconfig scriptlets. * Wed Feb 10 2021 Tomohiro "Tomo-p" KATO 2.2.10-1 - new upstream release. * Fri Oct 18 2019 Tomohiro "Tomo-p" KATO 2.2.9-1 - new upstream release. * Wed May 15 2019 Tomohiro "Tomo-p" KATO 2.2.6-1 - new upstream release. * Tue Feb 27 2018 Tomohiro "Tomo-p" KATO 2.2.5-1 - new upstream release. * Tue Jul 5 2016 Tomohiro "Tomo-p" KATO 2.2.0-1 - new upstream release. * Mon Dec 30 2013 Yoji TOYODA 2.1.0-2 - rebuild with VineSeed environment * Wed Sep 26 2012 Yoji TOYODA 2.1.0-1 - update to 2.1.0 - remove old patches * Tue Apr 26 2011 IWAI, Masaharu 2.0.1-8 - update patch100 to regrassion fix (same as debian bug #561658) - add Vendor and Distribution tags * Sun Apr 17 2011 Shu KONNO - 2.0.1-7 - rebuilt with rpm-4.8.1-3 * Fri Feb 12 2010 MATSUBAYASHI Kohji - 2.0.1-6 - rebuilt with gcc-4.4.3-3 on ppc * Mon Feb 1 2010 Ryoichi INAGAKI 2.0.1-5 - rebuilt with new toolchains (for VineSeed) * Tue Dec 15 2009 Satoshi IWAMOTO 2.0.1-4 - add patch110 for fix CVE-2009-3720 (xml parser) * Sat Dec 12 2009 Satoshi IWAMOTO 2.0.1-3 - add Patch100 for fix CVE-2009-3560 (xml parser) * Sat Jul 11 2009 NAKAMURA Kenta 2.0.1-2 - added Requires: tag to compat32-* sub-packages. - removed unnecessary %%configure CC='gcc -m32' option * Sat Jul 26 2008 Shu KONNO 2.0.1-1vl5 - applied new versioning policy and spec in utf-8 * Mon Feb 25 2008 NAKAMURA Kenta 2.0.1-0vl2 - removed %%if !%%{build_compat32} case condition * Mon Feb 18 2008 AKIYAMA Kazuhito 2.0.1-0vl1 - new upstream release - drop Patch0 - drop .la - chmod 644 the documentation - strip DSP files from examples - update description and drop description-ja - add -fPIC * Fri Sep 07 2007 Shu KONNO 1.95.8-0vl6 - rebuilt * Mon Feb 06 2006 Shu KONNO 1.95.8-0vl5 - moved macros _lib to /usr/lib/rpm/rpmrc or macros files * Thu Feb 02 2006 Shu KONNO 1.95.8-0vl4 - added compat32* packages for x86_64 architecture support * Tue Feb 15 2005 Daisuke SUZUKI 1.95.8-0vl3 - add missing header file (expat_external.h) to %%files. * Tue Feb 08 2005 MATSUBAYASHI Kohji 1.95.8-0vl2 - updated/revised Patch1 (%%install will fail without this patch) * Tue Feb 08 2005 Satoshi MACHINO 1.95.8-0vl1 - new upstream release -- dropped patch1 * Fri Jan 30 2004 Ryoichi INAGAKI 1.95.7-1vl1 - updated to 1.95.7 - changed URL and Group - fixed License to MIT/X (based on rpm package at sourceforge) * Thu Apr 17 2003 IWAI Masaharu 1.95.6-0vl1 - version up to 1.95.6 - drop expat-xmlwf-dynamiclink.patch (Patch0) - add expat-1.95.6-mandir.patch for installing manpage (Patch0) - add manpage (xmlwf.1) * Mon Mar 18 2002 IWAI Masaharu 1.95.2-0vl3 - fixed license ( s/MPL or GPL/distributable/ ) - use License tag * Sun Oct 07 2001 akira yamada 1.95.2-0vl2 - new sub-package libexpat. - added BuildPreReq: libtool * Sat Oct 06 2001 MATSUBAYASHI Kohji 1.95.2-0vl1 - updated to 1.95.2 release * Sun Jun 17 2001 MATSUBAYASHI 'Shaolin' Kohji - 1.95.1-3vl1 - based on 1.95.1-3mdk from Mandrake 8.0 - added Japanese summary and description - modified spec macros for Vine * Thu Feb 15 2001 Daouda Lo 1.95.1-3mdk - real version is 1.95.1 - reenable optimisations * Thu Feb 15 2001 Daouda Lo 1.95-1mdk - release . * Sun Jan 07 2001 David BAUDENS 1.1-2mdk - Don't try to use optimizations - Bzip2 sources * Mon Nov 20 2000 Frederic Lepied 1.1-1mdk - first version