[Expat-bugs] Spec file to build RPM packages

Pierre Sarrazin sarrazip@sympatico.ca
Wed, 14 Mar 2001 22:33:18 -0500


---------------------- multipart/mixed attachment
I am attaching a .spec file that allows one to create RPM packages
for expat.  Since there is only one .h file, I did not define a
separate '-devel' package.

-- 
Pierre Sarrazin <sarrazip at sympatico dot ca>

---------------------- multipart/mixed attachment
# Spec file for gengameng and gengameng-devel

Summary: James Clark's expat XML parser library in C
Name: expat
Version: 1.95.1
Release: 1
Copyright: Freely redistributable
Group: Development/Libraries
Source: %{name}-%{version}.tar.gz
URL: http://sourceforge.net/projects/expat/
Packager: Pierre Sarrazin
Prefix: /usr
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root

%description
This is James Clark's expat XML parser library in C. It is a stream
oriented parser that requires setting handlers to deal with the
structure that the parser discovers in the document.


%prep
%setup

%build
./configure --prefix=%{prefix} && make

%install
rm -fR $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -fR $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%{prefix}/lib/libexpat.so.0.0.1
%{prefix}/lib/libexpat.so.0
%{prefix}/lib/libexpat.so
%{prefix}/lib/libexpat.la
%{prefix}/lib/libexpat.a
%{prefix}/include/expat.h

---------------------- multipart/mixed attachment--