From: Anas Nashif Date: Sun, 4 Nov 2012 23:54:57 +0000 (-0800) Subject: add packaging X-Git-Tag: accepted/trunk/20121215.002153~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03149da996f0eb21521d4e1fe6718e0eebeae487;p=platform%2Fupstream%2Fexpat.git add packaging --- diff --git a/packaging/expat.spec b/packaging/expat.spec new file mode 100644 index 0000000..841cbe8 --- /dev/null +++ b/packaging/expat.spec @@ -0,0 +1,57 @@ +Name: expat +Version: 2.1.0 +Release: 1 +Summary: An XML parser library +Group: System/Libraries +Source: %{name}-%{version}.tar.bz2 +Source1001: expat.manifest + +License: MIT +Url: http://www.libexpat.org/ + +%description +This is expat, the 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 prior to 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 devel +Summary: Libraries and header files to develop applications using expat +Group: Development/Libraries +Requires: expat = %{version} + +%description devel +The expat-devel package contains the libraries, include files and documentation +to develop XML applications with expat. + +%prep +%setup -q +%build +cp %{SOURCE1001} . +%configure +make %{?_smp_mflags} + +%install +rm -f examples/*.dsp + +%make_install + +%remove_docs + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%manifest expat.manifest +%{_bindir}/* +/%{_libdir}/lib*.so.* + +%files devel +%manifest expat.manifest +%{_libdir}/lib*.so +%{_libdir}/pkgconfig/*.pc +%{_includedir}/*.h +