- Cleanup a bit more for factory inclusion.

- Fix wrong order of patch application and broken sed substitution
  in %prep stage
- Runtime boost dependency is automatic and not needed

- Beautify a bit.

- Fix boost m4 macro to pass configure stage.

- Updated to the 0.5.0 pre-release version.

- Remove redundant tags/sections per specfile guideline suggestions
- Add autotools BuildRequires for factory/12.2

- Initial package.

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libixion?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal 2013-03-26 17:12:22 +00:00 committed by Git OBS Bridge
parent fb1098c1c4
commit 4302af0a22
2 changed files with 43 additions and 22 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 26 17:11:53 UTC 2013 - tchvatal@suse.com
- Cleanup a bit more for factory inclusion.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 26 14:58:20 UTC 2013 - jengelh@inai.de Tue Mar 26 14:58:20 UTC 2013 - jengelh@inai.de

View File

@ -16,21 +16,16 @@
# #
%define _corename libixion %define libname libixion-0_6-0
%define _ver 0.5.0
%define _pkgname %{_corename}-%{_ver}
%define _apiver 0.6
%define _libname %{_corename}-%{_apiver}
Name: %{_corename}-0_6-0 Name: libixion
Version: %{_ver} Version: 0.5.0
Release: 0 Release: 0
Summary: Threaded multi-target formula parser & interpreter Summary: Threaded multi-target formula parser & interpreter
License: X11 License: X11
Group: Development/Libraries/C and C++ Group: Productivity/Publishing/Word
Url: http://gitorious.org/ixion Url: http://gitorious.org/ixion
Source: %{_pkgname}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Patch0: boost-fix.patch Patch0: boost-fix.patch
BuildRequires: autoconf >= 2.63 BuildRequires: autoconf >= 2.63
BuildRequires: automake BuildRequires: automake
@ -40,28 +35,47 @@ BuildRequires: libstdc++-devel
BuildRequires: libtool BuildRequires: libtool
BuildRequires: mdds-devel >= 0.7.1 BuildRequires: mdds-devel >= 0.7.1
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: boost-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Ixion is a general purpose formula parser & interpreter that can calculate Ixion is a general purpose formula parser & interpreter that can calculate
multiple named targets, or "cells". multiple named targets, or "cells".
%package -n %{libname}
Summary: Threaded multi-target formula parser & interpreter
Group: System/Libraries
%description -n %{libname}
Ixion is a general purpose formula parser & interpreter that can calculate
multiple named targets, or "cells".
%package devel %package devel
Summary: Threaded multi-target formula parser & interpreter Summary: Threaded multi-target formula parser & interpreter
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %libname = %version
%description devel %description devel
Ixion is a general purpose formula parser & interpreter that can calculate Ixion is a general purpose formula parser & interpreter that can calculate
multiple named targets, or "cells". multiple named targets, or "cells".
%package tools
Summary: Spreadsheet file processing library
Group: Productivity/Publishing/Word
Requires: %libname = %version
%description tools
Tools to use ixion parser and interpreter from cli.
%prep %prep
%setup -q -n %{_pkgname} %setup -q
%patch0 -p1 %patch0 -p1
%build %build
autoreconf -fi autoreconf -fi
%configure \ %configure \
--disable-static --disable-static \
--docdir=%_docdir/%name
make %{?_smp_mflags} make %{?_smp_mflags}
%check %check
@ -70,21 +84,23 @@ make check
%install %install
make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install
rm %{buildroot}%{_bindir}/ixion-test rm %{buildroot}%{_bindir}/ixion-test
rm %{buildroot}%{_libdir}/%{_libname}.la rm %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig %post -n %{libname} -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig
%files %files -n %{libname}
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/ixion-parser %{_libdir}/*.so.*
%{_bindir}/ixion-sorter
%{_libdir}/%{_libname}.so.*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/%{_libname} %{_includedir}/*
%{_libdir}/%{_libname}.so %{_libdir}/*.so
%{_libdir}/pkgconfig/%{_libname}.pc %{_libdir}/pkgconfig/*.pc
%files tools
%defattr(-,root,root)
%{_bindir}/*
%changelog %changelog