From e594fff9ddc6017f95cb53a74997a47d214404e9 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 25 2015 13:27:44 +0000 Subject: import liborcus-0.5.1-8.aa7a --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fbfa2f3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/liborcus-0.5.1.tar.bz2 diff --git a/.liborcus.metadata b/.liborcus.metadata new file mode 100644 index 0000000..dd1aea0 --- /dev/null +++ b/.liborcus.metadata @@ -0,0 +1 @@ +9303d513e4b63a1d6e4bce7cfeb13635e568b466 SOURCES/liborcus-0.5.1.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/add-arch-support.patch b/SOURCES/add-arch-support.patch new file mode 100644 index 0000000..efa8b86 --- /dev/null +++ b/SOURCES/add-arch-support.patch @@ -0,0 +1,13 @@ +diff --git a/configure b/configure +index 65e7d48..c85e89d 100755 +--- a/configure ++++ b/configure +@@ -15335,7 +15335,7 @@ $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; } + + libsubdirs="lib" + ax_arch=`uname -m` +- if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then ++ if test $ax_arch = x86_64 -o $ax_arch = aarch64 -o $ax_arch = ppc64 -o $ax_arch = ppc64le -o $ax_arch = s390x -o $ax_arch = sparc64; then + libsubdirs="lib64 lib lib64" + fi + diff --git a/SPECS/liborcus.spec b/SPECS/liborcus.spec new file mode 100644 index 0000000..57732ea --- /dev/null +++ b/SPECS/liborcus.spec @@ -0,0 +1,135 @@ +%global apiversion 0.6 + +Name: liborcus +Version: 0.5.1 +Release: 8%{?dist} +Summary: Standalone file import filter library for spreadsheet documents + +Group: System Environment/Libraries +License: MIT +URL: http://gitorious.org/orcus +Source: http://kohei.us/files/orcus/src/%{name}-%{version}.tar.bz2 + +BuildRequires: boost-devel +BuildRequires: zlib-devel + +Patch0: add-arch-support.patch + +%description +%{name} is a standalone file import filter library for spreadsheet +documents. Currently under development are ODS, XLSX and CSV import +filters. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package tools +Summary: Tools for working with %{name} +Group: Applications/Publishing +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description tools +Tools for working with %{name}. + +%prep +%setup -q +%patch0 -p1 +# fix build of orcus-zip-dump +sed -i -e 's/orcus_zip_dump_LDADD = /& $(BOOST_SYSTEM_LIB) /' \ + src/Makefile.in +# TODO: upstream the changes +sed -i \ + -e 's/[a-z_]*_test_LDADD = /& $(BOOST_SYSTEM_LIB) /' \ + -e 's/parser_test_[a-z_]*_LDADD = /& $(BOOST_SYSTEM_LIB) /' \ + -e 's/liborcus_test_xml_structure_tree_LDADD = /& $(BOOST_SYSTEM_LIB) /' \ + src/liborcus/Makefile.in src/parser/Makefile.in + +%build +# TODO spreadsheet-model requires ixion +%configure --disable-debug --disable-silent-rules --disable-static \ + --disable-werror --with-pic \ + --disable-spreadsheet-model +sed -i \ + -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ + -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ + libtool +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} +rm -f %{buildroot}/%{_libdir}/*.la + +%check +export LD_LIBRARY_PATH=`pwd`/src/liborcus/.libs:`pwd`/src/parser/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +make check %{?_smp_mflags} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc AUTHORS COPYING README +%{_libdir}/%{name}-%{apiversion}.so.* +%{_libdir}/%{name}-mso-%{apiversion}.so.* +%{_libdir}/%{name}-parser-%{apiversion}.so.* + +%files devel +%{_includedir}/%{name}-%{apiversion} +%{_libdir}/%{name}-%{apiversion}.so +%{_libdir}/%{name}-mso-%{apiversion}.so +%{_libdir}/%{name}-parser-%{apiversion}.so +%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc + +%files tools +%{_bindir}/orcus-mso-encryption +%{_bindir}/orcus-xml-dump +%{_bindir}/orcus-zip-dump + +%changelog +* Tue Aug 19 2014 David Tardon - 0.5.1-8 +- Resolves: rhbz#1125584 fix build on ppc64le + +* Fri Jan 24 2014 Daniel Mach - 0.5.1-7 +- Mass rebuild 2014-01-24 + +* Tue Jan 21 2014 David Tardon - 0.5.1-6 +- Resolves: rhbz#1041331 liborcus fails to build for ARM (Aarch64) + (really this time) + +* Tue Jan 21 2014 David Tardon - 0.5.1-5 +- Resolves: rhbz#1041331 liborcus fails to build for ARM (Aarch64) + +* Fri Dec 27 2013 Daniel Mach - 0.5.1-4 +- Mass rebuild 2013-12-27 + +* Mon Jun 10 2013 David Tardon - 0.5.1-3 +- trivial changes + +* Tue May 28 2013 David Tardon - 0.5.1-2 +- build orcus-zip-dump too + +* Mon May 06 2013 David Tardon - 0.5.1-1 +- new release + +* Fri Feb 15 2013 Stephan Bergmannn - 0.3.0-5 +- missing boost include + +* Sun Feb 10 2013 Denis Arnaud - 0.3.0-4 +- Rebuild for Boost-1.53.0 + +* Sat Feb 09 2013 Denis Arnaud - 0.3.0-3 +- Rebuild for Boost-1.53.0 + +* Sat Dec 08 2012 David Tardon - 0.3.0-2 +- a pointless release bump + +* Fri Dec 07 2012 David Tardon - 0.3.0-1 +- new release + +* Sun Sep 09 2012 David Tardon - 0.1.0-1 +- initial import