[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | %define name expat |
---|
[6890] | 3 | %define version 2.1.0 |
---|
| 4 | %define release 1%{?_dist_release} |
---|
[521] | 5 | |
---|
| 6 | Summary: Expat is an XML 1.0 parser written in C |
---|
| 7 | Summary(ja): C で書かれた XML 1.0 パーサ |
---|
| 8 | Name: %{name} |
---|
| 9 | Version: %{version} |
---|
| 10 | Release: %{release} |
---|
| 11 | License: MIT/X |
---|
| 12 | Group: Applications/Text |
---|
| 13 | URL: http://www.libexpat.org/ |
---|
| 14 | Source: http://download.sourceforge.net/expat/%{name}-%{version}.tar.gz |
---|
| 15 | |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 17 | Requires: lib%{name} = %{version}-%{release} |
---|
| 18 | BuildRequires: libtool |
---|
| 19 | |
---|
[3706] | 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
[521] | 22 | |
---|
| 23 | %description |
---|
| 24 | This is Expat, a C library for parsing XML, written by James Clark. |
---|
| 25 | Expat is a stream-oriented XML parser. This means that you register |
---|
| 26 | handlers with the parser before starting the parse. These handlers |
---|
| 27 | are called when the parser discovers the associated structures in the |
---|
| 28 | document being parsed. A start tag is an example of the kind of |
---|
| 29 | structures for which you may register handlers. |
---|
| 30 | |
---|
| 31 | %package -n lib%{name} |
---|
| 32 | Summary: Runtime library of expat |
---|
| 33 | Summary(ja): Expat のための実行ライブラリ |
---|
| 34 | Group: System Environment/Libraries |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %description -n lib%{name} |
---|
| 38 | This package contains the runtime, shared library of expat, the C |
---|
| 39 | library for parsing XML. |
---|
| 40 | |
---|
| 41 | %description -n lib%{name} -l ja |
---|
| 42 | Expat を動作させるために必用となるライブラリです. |
---|
| 43 | |
---|
| 44 | %package devel |
---|
| 45 | Summary: Development environment for the expat XML parser |
---|
| 46 | Summary(ja): expat XML パーサ用開発環境 |
---|
| 47 | Group: Development/Libraries |
---|
| 48 | Requires: lib%{name} = %{version}-%{release} |
---|
[6890] | 49 | Requires: pkgconfig |
---|
[521] | 50 | |
---|
| 51 | %description devel |
---|
| 52 | Development environment for the expat XML parser |
---|
| 53 | |
---|
| 54 | %description devel -l ja |
---|
| 55 | expat XML パーサ用開発環境です. |
---|
| 56 | |
---|
| 57 | ## to build compat32 for x86_64 architecture support |
---|
| 58 | %package -n compat32-lib%{name} |
---|
| 59 | Summary: Runtime library of expat |
---|
| 60 | Summary(ja): Expat のための実行ライブラリ |
---|
| 61 | Group: System Environment/Libraries |
---|
| 62 | Requires: lib%{name} = %{version}-%{release} |
---|
| 63 | |
---|
| 64 | %description -n compat32-lib%{name} |
---|
| 65 | This package contains the runtime, shared library of expat, the C |
---|
| 66 | library for parsing XML. |
---|
| 67 | |
---|
| 68 | %description -n compat32-lib%{name} -l ja |
---|
| 69 | Expat を動作させるために必用となるライブラリです. |
---|
| 70 | |
---|
| 71 | %package -n compat32-%{name}-devel |
---|
| 72 | Summary: Development environment for the expat XML parser |
---|
| 73 | Summary(ja): expat XML パーサ用開発環境 |
---|
| 74 | Group: Development/Libraries |
---|
| 75 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 76 | Requires: compat32-lib%{name} = %{version}-%{release} |
---|
| 77 | |
---|
| 78 | %description -n compat32-%{name}-devel |
---|
| 79 | Development environment for the expat XML parser |
---|
| 80 | |
---|
| 81 | %description -n compat32-%{name}-devel -l ja |
---|
| 82 | expat XML パーサ用開発環境です. |
---|
| 83 | |
---|
| 84 | %prep |
---|
| 85 | %setup -q |
---|
| 86 | |
---|
| 87 | %build |
---|
| 88 | export CFLAGS="$RPM_OPT_FLAGS -fPIC" |
---|
| 89 | %configure --enable-shared |
---|
| 90 | make %{?_smp_mflags} |
---|
| 91 | |
---|
| 92 | %install |
---|
| 93 | rm -rf $RPM_BUILD_ROOT |
---|
| 94 | |
---|
| 95 | rm -f examples/*.dsp |
---|
| 96 | chmod 644 README COPYING Changes doc/* examples/* |
---|
| 97 | |
---|
| 98 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 99 | rm -f $RPM_BUILD_ROOT/%{_libdir}/libexpat.la |
---|
| 100 | |
---|
| 101 | %clean |
---|
| 102 | rm -rf $RPM_BUILD_ROOT |
---|
| 103 | |
---|
| 104 | %post -n lib%{name} -p /sbin/ldconfig |
---|
| 105 | |
---|
| 106 | %postun -n lib%{name} -p /sbin/ldconfig |
---|
| 107 | |
---|
| 108 | %post -n compat32-lib%{name} -p /sbin/ldconfig |
---|
| 109 | |
---|
| 110 | %postun -n compat32-lib%{name} -p /sbin/ldconfig |
---|
| 111 | |
---|
| 112 | %files |
---|
| 113 | %defattr(-,root,root) |
---|
| 114 | %doc COPYING Changes README |
---|
| 115 | %{_bindir}/xmlwf |
---|
| 116 | %{_mandir}/man1/xmlwf.1* |
---|
| 117 | |
---|
| 118 | %files -n lib%{name} |
---|
| 119 | %defattr(-,root,root) |
---|
| 120 | %doc COPYING Changes README |
---|
| 121 | %{_libdir}/libexpat.so.* |
---|
| 122 | |
---|
| 123 | %files devel |
---|
| 124 | %defattr(-,root,root) |
---|
| 125 | %doc COPYING Changes README doc/* examples |
---|
| 126 | %{_includedir}/* |
---|
| 127 | %{_libdir}/libexpat.a |
---|
| 128 | %{_libdir}/libexpat.so |
---|
[6890] | 129 | %{_libdir}/pkgconfig/%{name}.pc |
---|
[521] | 130 | |
---|
| 131 | ## to build compat32 for x86_64 architecture support |
---|
| 132 | %if %{build_compat32} |
---|
| 133 | %files -n compat32-lib%{name} |
---|
| 134 | %defattr(-,root,root) |
---|
| 135 | %{_libdir}/libexpat.so.* |
---|
| 136 | |
---|
| 137 | %files -n compat32-%{name}-devel |
---|
| 138 | %defattr(-,root,root) |
---|
| 139 | %{_libdir}/libexpat.a |
---|
| 140 | %{_libdir}/libexpat.so |
---|
| 141 | %endif |
---|
| 142 | |
---|
| 143 | %changelog |
---|
[6890] | 144 | * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.0-1 |
---|
| 145 | - update to 2.1.0 |
---|
| 146 | - remove old patches |
---|
| 147 | |
---|
[3706] | 148 | * Tue Apr 26 2011 IWAI, Masaharu <iwai@alib.jp> 2.0.1-8 |
---|
| 149 | - update patch100 to regrassion fix (same as debian bug #561658) |
---|
| 150 | - add Vendor and Distribution tags |
---|
| 151 | |
---|
[3525] | 152 | * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> - 2.0.1-7 |
---|
| 153 | - rebuilt with rpm-4.8.1-3 |
---|
| 154 | |
---|
[521] | 155 | * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.1-6 |
---|
| 156 | - rebuilt with gcc-4.4.3-3 on ppc |
---|
| 157 | |
---|
| 158 | * Mon Feb 1 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.1-5 |
---|
| 159 | - rebuilt with new toolchains (for VineSeed) |
---|
| 160 | |
---|
| 161 | * Tue Dec 15 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.1-4 |
---|
| 162 | - add patch110 for fix CVE-2009-3720 (xml parser) |
---|
| 163 | |
---|
| 164 | * Sat Dec 12 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.1-3 |
---|
| 165 | - add Patch100 for fix CVE-2009-3560 (xml parser) |
---|
| 166 | |
---|
| 167 | * Sat Jul 11 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.0.1-2 |
---|
| 168 | - added Requires: tag to compat32-* sub-packages. |
---|
| 169 | - removed unnecessary %%configure CC='gcc -m32' option |
---|
| 170 | |
---|
| 171 | * Sat Jul 26 2008 Shu KONNO <owa@bg.wakwak.com> 2.0.1-1vl5 |
---|
| 172 | - applied new versioning policy and spec in utf-8 |
---|
| 173 | |
---|
| 174 | * Mon Feb 25 2008 NAKAMURA Kenta <kenta@vinelinux.org> 2.0.1-0vl2 |
---|
| 175 | - removed %%if !%%{build_compat32} case condition |
---|
| 176 | |
---|
| 177 | * Mon Feb 18 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.1-0vl1 |
---|
| 178 | - new upstream release |
---|
| 179 | - drop Patch0 |
---|
| 180 | - drop .la |
---|
| 181 | - chmod 644 the documentation |
---|
| 182 | - strip DSP files from examples |
---|
| 183 | - update description and drop description-ja |
---|
| 184 | - add -fPIC |
---|
| 185 | |
---|
| 186 | * Fri Sep 07 2007 Shu KONNO <owa@bg.wakwak.com> 1.95.8-0vl6 |
---|
| 187 | - rebuilt |
---|
| 188 | |
---|
| 189 | * Mon Feb 06 2006 Shu KONNO <owa@bg.wakwak.com> 1.95.8-0vl5 |
---|
| 190 | - moved macros _lib to /usr/lib/rpm/rpmrc or macros files |
---|
| 191 | |
---|
| 192 | * Thu Feb 02 2006 Shu KONNO <owa@bg.wakwak.com> 1.95.8-0vl4 |
---|
| 193 | - added compat32* packages for x86_64 architecture support |
---|
| 194 | |
---|
| 195 | * Tue Feb 15 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.95.8-0vl3 |
---|
| 196 | - add missing header file (expat_external.h) to %%files. |
---|
| 197 | |
---|
| 198 | * Tue Feb 08 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.95.8-0vl2 |
---|
| 199 | - updated/revised Patch1 (%%install will fail without this patch) |
---|
| 200 | |
---|
| 201 | * Tue Feb 08 2005 Satoshi MACHINO <machino@vinelinux.org> 1.95.8-0vl1 |
---|
| 202 | - new upstream release |
---|
| 203 | -- dropped patch1 |
---|
| 204 | |
---|
| 205 | * Fri Jan 30 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.95.7-1vl1 |
---|
| 206 | - updated to 1.95.7 |
---|
| 207 | - changed URL and Group |
---|
| 208 | - fixed License to MIT/X (based on rpm package at sourceforge) |
---|
| 209 | |
---|
| 210 | * Thu Apr 17 2003 IWAI Masaharu <iwai@alib.jp> 1.95.6-0vl1 |
---|
| 211 | - version up to 1.95.6 |
---|
| 212 | - drop expat-xmlwf-dynamiclink.patch (Patch0) |
---|
| 213 | - add expat-1.95.6-mandir.patch for installing manpage (Patch0) |
---|
| 214 | - add manpage (xmlwf.1) |
---|
| 215 | |
---|
| 216 | * Mon Mar 18 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.95.2-0vl3 |
---|
| 217 | - fixed license ( s/MPL or GPL/distributable/ ) |
---|
| 218 | - use License tag |
---|
| 219 | |
---|
| 220 | * Sun Oct 07 2001 akira yamada <akira@vinelinux.org> 1.95.2-0vl2 |
---|
| 221 | - new sub-package libexpat. |
---|
| 222 | - added BuildPreReq: libtool |
---|
| 223 | |
---|
| 224 | * Sat Oct 06 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.95.2-0vl1 |
---|
| 225 | - updated to 1.95.2 release |
---|
| 226 | |
---|
| 227 | * Sun Jun 17 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
| 228 | - 1.95.1-3vl1 |
---|
| 229 | - based on 1.95.1-3mdk from Mandrake 8.0 |
---|
| 230 | - added Japanese summary and description |
---|
| 231 | - modified spec macros for Vine |
---|
| 232 | |
---|
| 233 | * Thu Feb 15 2001 Daouda Lo <daouda@mandrakesoft.com> 1.95.1-3mdk |
---|
| 234 | - real version is 1.95.1 |
---|
| 235 | - reenable optimisations |
---|
| 236 | |
---|
| 237 | * Thu Feb 15 2001 Daouda Lo <daouda@mandrakesoft.com> 1.95-1mdk |
---|
| 238 | - release . |
---|
| 239 | |
---|
| 240 | * Sun Jan 07 2001 David BAUDENS <baudens@mandrakesoft.com> 1.1-2mdk |
---|
| 241 | - Don't try to use optimizations |
---|
| 242 | - Bzip2 sources |
---|
| 243 | |
---|
| 244 | * Mon Nov 20 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.1-1mdk |
---|
| 245 | - first version |
---|