add packaging
authorAnas Nashif <anas.nashif@intel.com>
Wed, 31 Oct 2012 02:56:23 +0000 (19:56 -0700)
committerAnas Nashif <anas.nashif@intel.com>
Wed, 31 Oct 2012 02:56:23 +0000 (19:56 -0700)
packaging/libXvMC.spec [new file with mode: 0644]

diff --git a/packaging/libXvMC.spec b/packaging/libXvMC.spec
new file mode 100644 (file)
index 0000000..28c5128
--- /dev/null
@@ -0,0 +1,69 @@
+Name:           libXvMC
+Version:        1.0.7
+Release:        0
+License:        MIT
+Summary:        X-Video Motion Compensation library
+Url:            http://xorg.freedesktop.org/
+Group:          Development/Libraries/C and C++
+
+#Git-Clone:    git://anongit.freedesktop.org/xorg/lib/libXvMC
+#Git-Web:      http://cgit.freedesktop.org/xorg/lib/libXvMC/
+Source:         %{name}-%{version}.tar.bz2
+#git#BuildRequires:    autoconf >= 2.60, automake, libtool
+BuildRequires:  pkgconfig
+BuildRequires:  pkgconfig(videoproto)
+BuildRequires:  pkgconfig(x11)
+BuildRequires:  pkgconfig(xext)
+BuildRequires:  pkgconfig(xextproto)
+BuildRequires:  pkgconfig(xorg-macros) >= 1.8
+BuildRequires:  pkgconfig(xv)
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+
+%description
+X-Video Motion Compensation (XvMC), is an extension of the X video
+extension (Xv) for the X Window System. The XvMC API allows video
+programs to offload portions of the video decoding process to the GPU
+video-hardware.
+
+%package devel
+Summary:        Development files for the X-Video Motion Compensation library
+Group:          Development/Libraries/C and C++
+Requires:       %{name} = %{version}
+
+%description devel
+X-Video Motion Compensation (XvMC), is an extension of the X video
+extension (Xv) for the X Window System. The XvMC API allows video
+programs to offload portions of the video decoding process to the GPU
+video-hardware.
+
+This package contains the development headers for the library found
+in %lname.
+
+%prep
+%setup -q
+
+%build
+%reconfigure
+%configure  --disable-static
+make %{?_smp_mflags}
+
+%install
+%make_install
+rm -f "%{buildroot}/%{_libdir}"/*.la
+
+%remove_docs
+%post  -p /sbin/ldconfig
+
+%postun  -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%{_libdir}/libXvMC*.so.1*
+
+%files devel
+%defattr(-,root,root)
+%{_includedir}/X11/*
+%{_libdir}/libXvMC*.so
+%{_libdir}/pkgconfig/xvmc.pc
+
+%changelog