From 03149da996f0eb21521d4e1fe6718e0eebeae487 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sun, 4 Nov 2012 15:54:57 -0800 Subject: [PATCH] add packaging --- packaging/expat.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 packaging/expat.spec 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 + -- 2.7.4