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

diff --git a/packaging/libXv.spec b/packaging/libXv.spec
new file mode 100644 (file)
index 0000000..0e03b75
--- /dev/null
@@ -0,0 +1,60 @@
+Name:           libXv
+Version:        1.0.7
+Release:        1
+License:        MIT
+Summary:        X
+Url:            http://www.x.org
+Group:          System Environment/Libraries
+
+Source:         %{name}-%{version}.tar.bz2
+
+BuildRequires:  pkgconfig(videoproto)
+BuildRequires:  pkgconfig(xext)
+BuildRequires:  pkgconfig(xorg-macros)
+
+%description
+X.Org X11 libXv runtime library
+
+%package devel
+Summary:        X
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
+Provides:       libxv-devel
+
+%description devel
+X.Org X11 libXv development package
+
+%prep
+%setup -q
+
+%build
+%reconfigure --disable-static \
+              LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
+make %{?_smp_mflags}
+
+%install
+
+%make_install
+
+# We intentionally don't ship *.la files
+rm -f %{buildroot}%{_libdir}/*.la
+
+%remove_docs
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING ChangeLog
+%{_libdir}/libXv.so.1
+%{_libdir}/libXv.so.1.0.0
+
+%files devel
+%defattr(-,root,root,-)
+%doc man/xv-library-v2.2.txt
+%{_includedir}/X11/extensions/Xvlib.h
+%{_libdir}/libXv.so
+%{_libdir}/pkgconfig/xv.pc
+#%dir %{_mandir}/man3x
+#%{_mandir}/man3/*.3*