123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
- %define name expat
- %define version 2.2.10
- %define release 1%{?_dist_release}
- Summary: Expat is an XML 1.0 parser written in C
- Summary(ja): C で書かれた XML 1.0 パーサ
- Name: %{name}
- Version: %{version}
- Release: %{release}
- License: MIT/X
- Group: accessories
- URL: http://www.libexpat.org/
- Source: http://download.sourceforge.net/expat/%{name}-%{version}.tar.bz2
- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
- Requires: lib%{name} = %{version}-%{release}
- BuildRequires: libtool
- Vendor: Project Vine
- Distribution: Vine Linux
- %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
- 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
- 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
- %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
- %post -n lib%{name} -p /sbin/ldconfig
- %postun -n lib%{name} -p /sbin/ldconfig
- %post -n compat32-lib%{name} -p /sbin/ldconfig
- %postun -n compat32-lib%{name} -p /sbin/ldconfig
- %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
- ## 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 Feb 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.10-1
- - new upstream release.
- * Fri Oct 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.9-1
- - new upstream release.
- * Wed May 15 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.6-1
- - new upstream release.
- * Tue Feb 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.5-1
- - new upstream release.
- * Tue Jul 5 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.0-1
- - new upstream release.
- * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.0-2
- - rebuild with VineSeed environment
- * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.0-1
- - update to 2.1.0
- - remove old patches
- * Tue Apr 26 2011 IWAI, Masaharu <iwai@alib.jp> 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 <owa@bg.wakwak.com> - 2.0.1-7
- - rebuilt with rpm-4.8.1-3
- * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.1-6
- - rebuilt with gcc-4.4.3-3 on ppc
- * Mon Feb 1 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.1-5
- - rebuilt with new toolchains (for VineSeed)
- * Tue Dec 15 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.1-4
- - add patch110 for fix CVE-2009-3720 (xml parser)
- * Sat Dec 12 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.1-3
- - add Patch100 for fix CVE-2009-3560 (xml parser)
- * Sat Jul 11 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.0.1-2
- - added Requires: tag to compat32-* sub-packages.
- - removed unnecessary %%configure CC='gcc -m32' option
- * Sat Jul 26 2008 Shu KONNO <owa@bg.wakwak.com> 2.0.1-1vl5
- - applied new versioning policy and spec in utf-8
- * Mon Feb 25 2008 NAKAMURA Kenta <kenta@vinelinux.org> 2.0.1-0vl2
- - removed %%if !%%{build_compat32} case condition
- * Mon Feb 18 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 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 <owa@bg.wakwak.com> 1.95.8-0vl6
- - rebuilt
- * Mon Feb 06 2006 Shu KONNO <owa@bg.wakwak.com> 1.95.8-0vl5
- - moved macros _lib to /usr/lib/rpm/rpmrc or macros files
- * Thu Feb 02 2006 Shu KONNO <owa@bg.wakwak.com> 1.95.8-0vl4
- - added compat32* packages for x86_64 architecture support
- * Tue Feb 15 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.95.8-0vl3
- - add missing header file (expat_external.h) to %%files.
- * Tue Feb 08 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.95.8-0vl2
- - updated/revised Patch1 (%%install will fail without this patch)
- * Tue Feb 08 2005 Satoshi MACHINO <machino@vinelinux.org> 1.95.8-0vl1
- - new upstream release
- -- dropped patch1
- * Fri Jan 30 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 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 <iwai@alib.jp> 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 <iwaim@cc.mbn.or.jp> 1.95.2-0vl3
- - fixed license ( s/MPL or GPL/distributable/ )
- - use License tag
- * Sun Oct 07 2001 akira yamada <akira@vinelinux.org> 1.95.2-0vl2
- - new sub-package libexpat.
- - added BuildPreReq: libtool
- * Sat Oct 06 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.95.2-0vl1
- - updated to 1.95.2 release
- * Sun Jun 17 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
- - 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 <daouda@mandrakesoft.com> 1.95.1-3mdk
- - real version is 1.95.1
- - reenable optimisations
- * Thu Feb 15 2001 Daouda Lo <daouda@mandrakesoft.com> 1.95-1mdk
- - release .
- * Sun Jan 07 2001 David BAUDENS <baudens@mandrakesoft.com> 1.1-2mdk
- - Don't try to use optimizations
- - Bzip2 sources
- * Mon Nov 20 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.1-1mdk
- - first version
|