schroedinger/schroedinger.spec

changeset 0
4f133201e207
child 1
4667f24fe848
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/schroedinger/schroedinger.spec	Fri Mar 11 21:30:26 2011 +0100
     1.3 @@ -0,0 +1,83 @@
     1.4 +%define abi 1.0
     1.5 +
     1.6 +Name:           schroedinger
     1.7 +Version:        1.0.9
     1.8 +Release:        1%{?dist}
     1.9 +Summary:        Portable libraries for the high quality Dirac video codec
    1.10 +
    1.11 +Group:          System Environment/Libraries
    1.12 +# No version is given for the GPL or the LGPL
    1.13 +License:        GPL+ or LGPLv2+ or MIT or MPLv1.1
    1.14 +URL:            http://www.diracvideo.org/
    1.15 +Source0:	http://www.diracvideo.org/download/schroedinger/schroedinger-%{version}.tar.gz
    1.16 +# Issue is known upstream, fixed in git and so fixed in NEXT_RELEASE
    1.17 +Patch0:		%{name}-no-testsuite.patch
    1.18 +BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    1.19 +
    1.20 +BuildRequires:	orc-devel >= 0.4.3
    1.21 +BuildRequires:  glew-devel >= 1.5.1
    1.22 +BuildRequires:	gtk-doc
    1.23 +
    1.24 +
    1.25 +%description
    1.26 +The Schrödinger project will implement portable libraries for the high
    1.27 +quality Dirac video codec created by BBC Research and
    1.28 +Development. Dirac is a free and open source codec producing very high
    1.29 +image quality video.
    1.30 +
    1.31 +The Schrödinger project is a project done by BBC R&D and Fluendo in
    1.32 +order to create a set of high quality decoder and encoder libraries
    1.33 +for the Dirac video codec.
    1.34 +
    1.35 +%package devel
    1.36 +Group:          Development/Libraries
    1.37 +Summary:        Development files for schroedinger
    1.38 +Requires:       %{name} = %{version}-%{release}
    1.39 +Requires:       pkgconfig
    1.40 +Requires:	orc-devel >= 0.4.3
    1.41 +
    1.42 +%description devel
    1.43 +Development files for schroedinger
    1.44 +
    1.45 +
    1.46 +%prep
    1.47 +%setup -q
    1.48 +%patch0 -p1
    1.49 +
    1.50 +%build
    1.51 +%configure --disable-static --enable-gtk-doc
    1.52 +
    1.53 +# remove rpath from libtool
    1.54 +sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
    1.55 +sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
    1.56 +
    1.57 +make %{?_smp_mflags}
    1.58 +
    1.59 +%install
    1.60 +rm -rf %{buildroot}
    1.61 +make install DESTDIR=%{buildroot}
    1.62 +find %{buildroot} -name \*.la -delete
    1.63 +
    1.64 +%clean
    1.65 +rm -rf %{buildroot}
    1.66 +
    1.67 +%post -p /sbin/ldconfig
    1.68 +
    1.69 +%postun -p /sbin/ldconfig
    1.70 +
    1.71 +%files
    1.72 +%defattr(-,root,root,-)
    1.73 +%doc COPYING* NEWS TODO
    1.74 +%{_libdir}/libschroedinger-%{abi}.so.*
    1.75 +
    1.76 +%files devel
    1.77 +%defattr(-,root,root,-)
    1.78 +%doc %{_datadir}/gtk-doc/html/schroedinger
    1.79 +%{_includedir}/schroedinger-%{abi}
    1.80 +%{_libdir}/*.so
    1.81 +%{_libdir}/pkgconfig/schroedinger-%{abi}.pc
    1.82 +
    1.83 +
    1.84 +%changelog
    1.85 +* Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 1.0.9-1
    1.86 +- Build for MeeGo 1.1

mercurial