2010-04-08 01:09:47 +02:00
|
|
|
#
|
2011-04-28 16:18:17 +02:00
|
|
|
# spec file for package orc
|
2010-04-08 01:09:47 +02:00
|
|
|
#
|
2014-07-04 15:49:07 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-04-08 01:09:47 +02:00
|
|
|
# Copyright (c) 2010 Dominique Leuenberger, Amsterdam, Netherlands.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-08 12:57:02 +01:00
|
|
|
|
2014-10-09 16:10:52 +02:00
|
|
|
%if 0%{?suse_version} < 1200
|
|
|
|
%bcond_with gtkdoc
|
|
|
|
%else
|
|
|
|
%bcond_without gtkdoc
|
|
|
|
%endif
|
|
|
|
|
2010-04-08 01:09:47 +02:00
|
|
|
Name: orc
|
2014-09-17 14:04:07 +02:00
|
|
|
Version: 0.4.22
|
2014-07-04 15:49:07 +02:00
|
|
|
Release: 0
|
2010-04-08 01:09:47 +02:00
|
|
|
Summary: The Oil Runtime Compiler
|
2012-02-02 13:28:26 +01:00
|
|
|
License: BSD-3-Clause
|
2010-04-08 01:09:47 +02:00
|
|
|
Group: Productivity/Multimedia/Other
|
2014-07-04 15:49:07 +02:00
|
|
|
Url: http://cgit.freedesktop.org/gstreamer/orc
|
|
|
|
Source: http://gstreamer.freedesktop.org/src/orc/%{name}-%{version}.tar.xz
|
2010-09-03 13:42:43 +02:00
|
|
|
Source99: baselibs.conf
|
2014-10-09 16:10:52 +02:00
|
|
|
%if %{with gtkdoc}
|
|
|
|
BuildRequires: gtk-doc >= 1.12
|
|
|
|
%endif
|
2010-04-08 01:09:47 +02:00
|
|
|
BuildRequires: pkg-config
|
2014-10-09 15:41:38 +02:00
|
|
|
%if 0%{?suse_version} <= 1130
|
|
|
|
#openSUSE until 11.3 and also SLE11 do not bring in xz on their own.
|
|
|
|
BuildRequires: xz
|
|
|
|
%endif
|
2010-04-08 01:09:47 +02:00
|
|
|
Provides: %{name}-devel = %{version}
|
2011-10-04 11:35:21 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-04-08 01:09:47 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Orc is a library and set of tools for compiling and executing very simple
|
|
|
|
programs that operate on arrays of data. The “language” is a generic
|
|
|
|
assembly language that represents many of the features available in SIMD
|
|
|
|
architectures, including saturated addition and subtraction, and many
|
|
|
|
arithmetic operations.
|
|
|
|
|
|
|
|
%package -n liborc-0_4-0
|
|
|
|
Summary: The Oil Runtime Compiler Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n liborc-0_4-0
|
|
|
|
Orc is a library and set of tools for compiling and executing very simple
|
|
|
|
programs that operate on arrays of data. The “language” is a generic
|
|
|
|
assembly language that represents many of the features available in SIMD
|
|
|
|
architectures, including saturated addition and subtraction, and many
|
|
|
|
arithmetic operations.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: The Oil Runtime Compiler Library - Documentation
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Orc is a library and set of tools for compiling and executing very simple
|
|
|
|
programs that operate on arrays of data. The “language” is a generic
|
|
|
|
assembly language that represents many of the features available in SIMD
|
|
|
|
architectures, including saturated addition and subtraction, and many
|
|
|
|
arithmetic operations.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
2014-10-09 16:10:52 +02:00
|
|
|
%if %{with gtkdoc}
|
2010-04-08 01:09:47 +02:00
|
|
|
--enable-gtk-doc
|
2014-10-09 16:10:52 +02:00
|
|
|
%else
|
|
|
|
--disable-gtk-doc
|
|
|
|
%endif
|
2014-07-04 15:49:07 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-04-08 01:09:47 +02:00
|
|
|
|
|
|
|
%install
|
2014-07-04 15:49:07 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
|
2010-04-08 01:09:47 +02:00
|
|
|
# These are some examples that seem not to make sense to be distributed
|
|
|
|
rm -rf %{buildroot}%{_libdir}/orc
|
2014-07-04 15:49:07 +02:00
|
|
|
|
2010-04-08 01:09:47 +02:00
|
|
|
# Remove libtool archives
|
2014-07-04 15:49:07 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2010-04-08 01:09:47 +02:00
|
|
|
|
2014-09-24 18:49:08 +02:00
|
|
|
# Temp disable check on i586 until we have sorted out the i586 fails with upstream
|
2010-12-08 19:44:00 +01:00
|
|
|
%check
|
2014-09-24 18:49:08 +02:00
|
|
|
%ifnarch %{arm} || %{ix86}
|
2014-07-04 15:49:07 +02:00
|
|
|
make check %{?_smp_mflags}
|
2012-02-01 12:30:20 +01:00
|
|
|
%endif
|
|
|
|
|
2010-04-08 01:09:47 +02:00
|
|
|
%post -n liborc-0_4-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n liborc-0_4-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2010-08-09 02:20:19 +02:00
|
|
|
%{_bindir}/orc-bugreport
|
2010-04-08 01:09:47 +02:00
|
|
|
%{_bindir}/orcc
|
2011-10-04 11:35:21 +02:00
|
|
|
%{_includedir}/orc-0.4/
|
2010-04-08 01:09:47 +02:00
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/orc-0.4.pc
|
2011-10-04 11:35:21 +02:00
|
|
|
%{_datadir}/aclocal/orc.m4
|
2010-04-08 01:09:47 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2014-10-09 16:10:52 +02:00
|
|
|
%dir /usr/share/gtk-doc
|
|
|
|
%dir /usr/share/gtk-doc/html
|
2011-10-04 11:35:21 +02:00
|
|
|
%{_datadir}/gtk-doc/html/orc/
|
2010-04-08 01:09:47 +02:00
|
|
|
|
|
|
|
%files -n liborc-0_4-0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/liborc*-0.4.so.*
|
|
|
|
|
|
|
|
%changelog
|