Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
EL5
>
libschroedinger-1_0-0
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Changed
libschroedinger.spec
@@ -1,169 +1,103 @@ # norootforbuild -%if 0%{?suse_version} >= 1030 -%define with_gst 1 -%else -%define with_gst 0 -%endif -%define _prefix /usr -%define gst_branch 0.10 -%define _name2 libschroedinger +%define api 1.0 +%define napi 1_0 +%define soname 0 -Name: libschroedinger-1_0-0 +Name: libschroedinger-%{napi}-%{soname} Version: 1.0.9 -Release: 1 +Release: 3 Summary: Library for decoding and encoding video in the Dirac format Group: System/Libraries -License: LGPL-MIT-MPL +License: LGPL/MIT/MPL URL: http://www.diracvideo.org -Source: http://www.diracvideo.org/download/schroedinger/schroedinger-%{version}.tar.gz +# http://www.diracvideo.org/download/schroedinger/schroedinger-%{version}.tar.gz +Source: schroedinger-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -##BuildRequires: docbook-dsssl-stylesheets +BuildRequires: docbook-dsssl-stylesheets BuildRequires: docbook-xsl-stylesheets BuildRequires: gamin-devel BuildRequires: gcc-c++ -%if %with_gst -%if 0%{?suse_version} >= 1030 -BuildRequires: gstreamer-0_10-devel -BuildRequires: gstreamer-0_10-plugins-base-devel -%else -BuildRequires: gstreamer010-devel -BuildRequires: gstreamer010-plugins-base-devel -%endif -%endif BuildRequires: gtkdoc -BuildRequires: liboil-devel >= 0.3.16 -#BuildRequires: mDNSResponder-lib +BuildRequires: orc-devel orc BuildRequires: pkgconfig BuildRequires: sgml-skel BuildRequires: valgrind Provides: libschroedinger0_1 = 0.6.1 -Obsoletes: libschroedinger0_1 <= 0.6.1 +Obsoletes: libschroedinger0_1 < 0.6.1 # old packman name -Provides: libschroedinger0 = 1.0.9 -Obsoletes: libschroedinger0 <= 1.0.9 - -Requires: liboil-0_3-0 >= 0.3.16 +Provides: libschroedinger0 = %{version} +Obsoletes: libschroedinger0 < %{version} %description Library for decoding and encoding video in the Dirac format. It is implemented in ANSI C and optimized through the us of liboil. libschro is written as a collaboartion between the BBC Research and Development, David Schleef and Fluendo. -This package contains also a gstreamer plugin for libschroedinger. - %package -n libschroedinger-devel -Summary: libschroedinger development files and static libraries +Summary: Libschroedinger development files and static libraries Group: Development/Libraries/C and C++ Requires: %{name} = %{version}-%{release} -%if %with_gst -%if 0%{?suse_version} >= 1030 -Requires: gstreamer-0_10-devel -Requires: gstreamer-0_10-plugins-base-devel -%else -Requires: gstreamer010-devel -Requires: gstreamer010-plugins-base-devel -%endif -%endif -Requires: liboil-devel >= 0.3.16 +Requires: orc-devel orc +# actual SuSE name ... +Provides: schroedinger-devel = %{version} %description -n libschroedinger-devel -libschroedinger-devel contains the files needed to build packages that depend +Libschroedinger-devel contains the files needed to build packages that depend on libschroedinger. -%if %with_gst -%if 0%{?suse_version} >= 1030 -%package -n gstreamer-0_10-schroedinger -%else -%package -n gstreamer010-schroedinger -%endif -Summary: libschroedinger - gstreamer-plugin -Group: System/Libraries -%if 0%{?suse_version} >= 1030 -Requires: gstreamer-0_10 -Requires: gstreamer-0_10-plugins-base -%else -Requires: gstreamer010 -Requires: gstreamer010-plugins-base -%endif -%if 0%{?suse_version} >= 1030 -# Name up to 10.3: -Provides: gstreamer010-schroedinger = 1.0.0 -Obsoletes: gstreamer010-schroedinger <= 1.0.0 -%endif - -%if 0%{?suse_version} >= 1030 -%description -n gstreamer-0_10-schroedinger -%else -%description -n gstreamer010-schroedinger -%endif -libschroedinger - gstreamer-plugin. -%endif - %debug_package + %prep %setup -q -n schroedinger-%{version} -%{?suse_update_config:%{suse_update_config}} %build +export SUSE_ASNEEDED=0 + %configure \ - --prefix=%{_prefix} \ --enable-gtk-doc \ - --with-html-dir=%{_docdir}/libschroedinger-devel \ + --with-html-dir="%{_docdir}/libschroedinger-devel" \ --enable-shared -# testsuite and tools didn't compile :( -%__sed -i -e 's|testsuite||g' \ - Makefile -%__sed -i -e 's|tools||g' \ - Makefile - %__make %{?jobs:-j%{jobs}} %install %makeinstall -%if %with_gst -%__rm -f %{buildroot}%{_libdir}/gstreamer-%{gst_branch}/*.la -%__rm -f %{buildroot}%{_libdir}/gstreamer-%{gst_branch}/*.a -%endif -%__rm -f %{buildroot}%{_libdir}/lib*.la +%__rm -f %{buildroot}%{_libdir}/lib*.{a,la} -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%check +export SUSE_ASNEEDED=0 +pushd testsuite + %__make + %__make check || true +popd %clean [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + %files %defattr(-,root,root) %doc COPYING COPYING.* NEWS TODO -%{_libdir}/lib*.so.* +%{_libdir}/libschroedinger-%{api}.so.%{soname} +%{_libdir}/libschroedinger-%{api}.so.%{soname}.*.* %files -n libschroedinger-devel %defattr(-,root,root) %doc %{_docdir}/libschroedinger-devel -%{_libdir}/lib*.a -%{_libdir}/lib*.so -%{_libdir}/pkgconfig/schroedinger-*.pc -%{_includedir}/* - -%if %with_gst -%if 0%{?suse_version} >= 1030 -%files -n gstreamer-0_10-schroedinger -%else -%files -n gstreamer010-schroedinger -%endif -%defattr(-,root,root) -%doc COPYING COPYING.* -%{_libdir}/gstreamer-%{gst_branch}/libgstschro.so -%endif +%{_libdir}/libschroedinger-%{api}.so +%{_libdir}/pkgconfig/schroedinger-%{api}.pc +%{_includedir}/schroedinger-%{api}