]> git.pld-linux.org Git - packages/gmerlin-avdecoder.git/commitdiff
- initial PLD release
authorTomasz Pala <gotar@pld-linux.org>
Tue, 28 Jun 2011 22:34:22 +0000 (22:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gmerlin-avdecoder-cflags.patch -> 1.1
    gmerlin-avdecoder.spec -> 1.1

gmerlin-avdecoder-cflags.patch [new file with mode: 0644]
gmerlin-avdecoder.spec [new file with mode: 0644]

diff --git a/gmerlin-avdecoder-cflags.patch b/gmerlin-avdecoder-cflags.patch
new file mode 100644 (file)
index 0000000..3e2d058
--- /dev/null
@@ -0,0 +1,11 @@
+--- gmerlin-avdecoder-1.1.0/configure.ac.orig  2011-01-05 20:42:29.000000000 +0100
++++ gmerlin-avdecoder-1.1.0/configure.ac       2011-06-29 00:10:57.000000000 +0200
+@@ -514,7 +514,7 @@ dnl
+ dnl Build optimization flags
+ dnl
+-LQT_OPT_CFLAGS($host_cpu, ["-O3 -funroll-all-loops -ffast-math"])
++LQT_OPT_CFLAGS($host_cpu, [""])
+ AC_SUBST(OPT_CFLAGS)
+ dnl
diff --git a/gmerlin-avdecoder.spec b/gmerlin-avdecoder.spec
new file mode 100644 (file)
index 0000000..cf5d28e
--- /dev/null
@@ -0,0 +1,118 @@
+#
+# Conditional build:
+%bcond_without apidocs # without doc
+Summary:       Multiformat decoding library
+Name:          gmerlin-avdecoder
+Version:       1.1.0
+Release:       1
+License:       GPL v2
+Group:         Libraries
+Source0:       http://dl.sourceforge.net/gmerlin/%{name}-%{version}.tar.gz
+# Source0-md5: c1ea663e9da631453eec4ac79138b6c5
+Patch0:                %{name}-cflags.patch
+URL:           http://gmerlin.sourceforge.net/avdec_frame.html
+BuildRequires: a52dec-libs-devel
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+%{?with_apidocs:BuildRequires: doxygen}
+BuildRequires: faad2-devel
+BuildRequires: ffmpeg-devel
+BuildRequires: flac-devel
+BuildRequires: gavl-devel
+#BuildRequires:        gmerlin-devel
+BuildRequires: libcdio-devel
+BuildRequires: libdts-devel
+BuildRequires: libdvdread-devel
+BuildRequires: libmad-devel
+BuildRequires: libmpcdec-devel
+BuildRequires: libmpeg2-devel
+BuildRequires: libpng-devel
+BuildRequires: libtheora-devel
+BuildRequires: libtiff-devel
+BuildRequires: libtool
+BuildRequires: libvorbis-devel
+BuildRequires: mjpegtools-devel
+BuildRequires: openjpeg-devel
+BuildRequires: pkgconfig >= 0.9.0
+BuildRequires: samba-devel
+#BuildRequires:        schroedinger-devel
+BuildRequires: speex-devel
+BuildRequires: zlib-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                specflags       -fomit-frame-pointer -ffast-math
+
+%description
+General purpose media decoding library. It is one of the most complete
+general purpose media decoding libraries. The supported formats and
+codecs span a wide range of applications from consumer level (mp3,
+divx etc.) to high end production formats like 32 bit PCM and some
+professional uncompressed video codecs.
+Using gmerlin_avdecoder in your playback for transcoding application
+means rock solid media format support with an ever growing list of
+supported codecs and formats
+
+%package devel
+Summary:       Header files for %{name} library
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+This package contains the header files, static libraries and
+development documentation for %{name}.
+
+%package static
+Summary:       Static %{name} library
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static %{name} library.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       --enable-shared \
+       --enable-static \
+       %{!?with_apidocs:--without-doxygen} \
+       --with-cpuflags=none
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT{%{_libdir}/*.la,%{_prefix}/share/doc/%{name}}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS NEWS README
+%attr(755,root,root) %ghost %{_libdir}/libgmerlin_avdec.so.?
+%attr(755,root,root) %{_libdir}/libgmerlin_avdec.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%{?with_apidocs:%doc doc/apiref}
+%attr(755,root,root) %{_libdir}/libgmerlin_avdec.so
+%{_includedir}/gmerlin
+%{_pkgconfigdir}/gmerlin_avdec.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libgmerlin_avdec.a
This page took 0.107588 seconds and 4 git commands to generate.