You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
liborcus/liborcus.spec

123 lines
3.4 KiB

12 years ago
%global apiversion 0.6
13 years ago
Name: liborcus
12 years ago
Version: 0.5.1
Release: 5%{?dist}
13 years ago
Summary: Standalone file import filter library for spreadsheet documents
Group: System Environment/Libraries
License: MIT
URL: http://gitorious.org/orcus
12 years ago
Source: http://kohei.us/files/orcus/src/%{name}-%{version}.tar.bz2
13 years ago
BuildRequires: boost-devel
BuildRequires: zlib-devel
%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
12 years ago
Summary: Tools for working with %{name}
13 years ago
Group: Applications/Publishing
Requires: %{name}%{?_isa} = %{version}-%{release}
%description tools
12 years ago
Tools for working with %{name}.
13 years ago
%prep
12 years ago
%setup -q
# fix build of orcus-zip-dump
12 years ago
sed -i -e 's/orcus_zip_dump_LDADD = /& $(BOOST_SYSTEM_LIB) /' \
src/Makefile.in
12 years ago
# 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
13 years ago
%build
# TODO spreadsheet-model requires ixion
%configure --disable-debug --disable-silent-rules --disable-static \
--disable-werror --with-pic \
12 years ago
--disable-spreadsheet-model
13 years ago
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}
13 years ago
%install
make install DESTDIR=%{buildroot}
rm -f %{buildroot}/%{_libdir}/*.la
12 years ago
%check
export LD_LIBRARY_PATH=`pwd`/src/liborcus/.libs:`pwd`/src/parser/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
make check %{?_smp_mflags}
13 years ago
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc AUTHORS COPYING README
12 years ago
%{_libdir}/%{name}-%{apiversion}.so.*
%{_libdir}/%{name}-mso-%{apiversion}.so.*
%{_libdir}/%{name}-parser-%{apiversion}.so.*
13 years ago
%files devel
12 years ago
%{_includedir}/%{name}-%{apiversion}
%{_libdir}/%{name}-%{apiversion}.so
%{_libdir}/%{name}-mso-%{apiversion}.so
%{_libdir}/%{name}-parser-%{apiversion}.so
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
13 years ago
%files tools
12 years ago
%{_bindir}/orcus-mso-encryption
12 years ago
%{_bindir}/orcus-xml-dump
%{_bindir}/orcus-zip-dump
13 years ago
%changelog
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Sat Jul 27 2013 pmachata@redhat.com - 0.5.1-4
- Rebuild for boost 1.54.0
12 years ago
* Mon Jun 10 2013 David Tardon <dtardon@redhat.com> - 0.5.1-3
- trivial changes
12 years ago
* Tue May 28 2013 David Tardon <dtardon@redhat.com> - 0.5.1-2
- build orcus-zip-dump too
12 years ago
* Mon May 06 2013 David Tardon <dtardon@redhat.com> - 0.5.1-1
- new release
* Fri Feb 15 2013 Stephan Bergmannn <sbergman@redhat.com> - 0.3.0-5
- missing boost include
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.0-4
- Rebuild for Boost-1.53.0
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.0-3
- Rebuild for Boost-1.53.0
* Sat Dec 08 2012 David Tardon <dtardon@redhat.com> - 0.3.0-2
- a pointless release bump
12 years ago
* Fri Dec 07 2012 David Tardon <dtardon@redhat.com> - 0.3.0-1
- new release
13 years ago
* Sun Sep 09 2012 David Tardon <dtardon@redhat.com> - 0.1.0-1
- initial import