diff --git a/README.md b/README.md index d59c22d..f46d7a3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libchm +CHMLIB is a library for dealing with Microsoft ITSS/CHM format files. + diff --git a/libchm-0.40-arm-guess.patch b/libchm-0.40-arm-guess.patch new file mode 100644 index 0000000..b3d7aca --- /dev/null +++ b/libchm-0.40-arm-guess.patch @@ -0,0 +1,12 @@ +diff -Nru chmlib-0.40.orig/src/chm_lib.c chmlib-0.40/src/chm_lib.c +--- chmlib-0.40.orig/src/chm_lib.c 2009-05-23 16:43:31.000000000 +0200 ++++ chmlib-0.40/src/chm_lib.c 2011-12-12 16:11:21.499378848 +0100 +@@ -153,7 +153,7 @@ + /* Sparc */ + /* MIPS */ + /* PPC */ +-#elif __i386__ || __sun || __sgi || __ppc__ ++#elif __i386__ || __sun || __sgi || __ppc__ || __arm__ + typedef unsigned char UChar; + typedef short Int16; + typedef unsigned short UInt16; diff --git a/libchm.spec b/libchm.spec new file mode 100644 index 0000000..1bcd499 --- /dev/null +++ b/libchm.spec @@ -0,0 +1,64 @@ +Name: libchm +Version: 0.40 +Release: 1mamba +Summary: CHMLIB is a library for dealing with Microsoft ITSS/CHM format files +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.jedrea.com/chmlib +Source: http://www.jedrea.com/chmlib/chmlib-%{version}.tar.bz2 +Patch0: %{name}-0.40-arm-guess.patch +License: LGPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +CHMLIB is a library for dealing with Microsoft ITSS/CHM format files. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version} + +%description devel +This package contains static libraries and header files need for development. + +%prep +%setup -q -n chmlib-%{version} +%patch0 -p1 + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/*.so.* +%doc AUTHORS COPYING NEWS README + +%files devel +%defattr(-,root,root) +%{_includedir}/*.h +%{_libdir}/*.a +%{_libdir}/*.la +%{_libdir}/*.so + +%changelog +* Fri Jun 05 2009 Automatic Build System 0.40-1mamba +- automatic update by autodist + +* Tue Apr 17 2007 Stefano Cotta Ramusino 0.39-1mamba +- update to version 0.39 by autospec + +* Wed Feb 15 2006 Alessandro Ramazzina 0.37.4-1qilnx +- package created by autospec