|
@@ -1,6 +1,6 @@
|
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
%define name expat
|
|
|
-%define version 2.2.9
|
|
|
+%define version 2.2.10
|
|
|
%define release 1%{?_dist_release}
|
|
|
|
|
|
Summary: Expat is an XML 1.0 parser written in C
|
|
@@ -9,9 +9,9 @@ Name: %{name}
|
|
|
Version: %{version}
|
|
|
Release: %{release}
|
|
|
License: MIT/X
|
|
|
-Group: Applications/Text
|
|
|
-URL: http://www.libexpat.org/
|
|
|
-Source: http://download.sourceforge.net/expat/%{name}-%{version}.tar.bz2
|
|
|
+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}
|
|
@@ -28,11 +28,10 @@ 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}
|
|
|
+%package -n lib%{name}
|
|
|
Summary: Runtime library of expat
|
|
|
Summary(ja): Expat のための実行ライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
-
|
|
|
+Group: system
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
This package contains the runtime, shared library of expat, the C
|
|
@@ -41,10 +40,11 @@ library for parsing XML.
|
|
|
%description -n lib%{name} -l ja
|
|
|
Expat を動作させるために必用となるライブラリです.
|
|
|
|
|
|
-%package devel
|
|
|
+
|
|
|
+%package devel
|
|
|
Summary: Development environment for the expat XML parser
|
|
|
Summary(ja): expat XML パーサ用開発環境
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: lib%{name} = %{version}-%{release}
|
|
|
Requires: pkgconfig
|
|
|
|
|
@@ -54,11 +54,12 @@ 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}
|
|
|
+%package -n compat32-lib%{name}
|
|
|
Summary: Runtime library of expat
|
|
|
Summary(ja): Expat のための実行ライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: system
|
|
|
Requires: lib%{name} = %{version}-%{release}
|
|
|
|
|
|
%description -n compat32-lib%{name}
|
|
@@ -68,10 +69,11 @@ library for parsing XML.
|
|
|
%description -n compat32-lib%{name} -l ja
|
|
|
Expat を動作させるために必用となるライブラリです.
|
|
|
|
|
|
-%package -n compat32-%{name}-devel
|
|
|
+
|
|
|
+%package -n compat32-%{name}-devel
|
|
|
Summary: Development environment for the expat XML parser
|
|
|
Summary(ja): expat XML パーサ用開発環境
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
Requires: compat32-lib%{name} = %{version}-%{release}
|
|
|
|
|
@@ -81,14 +83,20 @@ 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
|
|
|
|
|
@@ -103,17 +111,18 @@ 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
|
|
|
|
|
|
+%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
|
|
@@ -149,7 +158,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_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.
|
|
|
|