]> git.pld-linux.org Git - packages/x265.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 29 Mar 2014 07:17:02 +0000 (08:17 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 29 Mar 2014 07:17:02 +0000 (08:17 +0100)
x265-opt.patch [new file with mode: 0644]
x265.spec [new file with mode: 0644]

diff --git a/x265-opt.patch b/x265-opt.patch
new file mode 100644 (file)
index 0000000..a040bd1
--- /dev/null
@@ -0,0 +1,12 @@
+--- x265-stable/source/CMakeLists.txt.orig     2014-03-25 13:56:55.000000000 +0100
++++ x265-stable/source/CMakeLists.txt  2014-03-29 07:38:04.923859797 +0100
+@@ -118,9 +118,6 @@
+     if(X64 AND NOT WIN32)
+         add_definitions(-fPIC)
+     endif(X64 AND NOT WIN32)
+-    if(X86 AND NOT X64)
+-        add_definitions(-march=i686)
+-    endif()
+     if(ARM)
+         add_definitions(-march=armv6 -mfloat-abi=hard -mfpu=vfp)
+     endif()
diff --git a/x265.spec b/x265.spec
new file mode 100644 (file)
index 0000000..8e3db2f
--- /dev/null
+++ b/x265.spec
@@ -0,0 +1,107 @@
+Summary:       H.265/HEVC video encoder
+Summary(pl.UTF-8):     Koder obrazu H.265/HEVC
+Name:          x265
+Version:       0.8
+Release:       0.20140328.1
+License:       GPL v2+
+Group:         Libraries
+# hg clone -r stable https://bitbucket.org/multicoreware/x265
+# cd x265 && hg archive x265-stable.tar.bz2
+Source0:       %{name}-stable.tar.bz2
+# Source0-md5: 928e5fdb3fc8171d9e329e88de4afe03
+Patch0:                %{name}-opt.patch
+URL:           http://x265.org/
+BuildRequires: cmake >= 2.8.8
+BuildRequires: libstdc++-devel
+%ifarch %{ix86} %{x8664}
+BuildRequires: yasm >= 1.2.0
+%endif
+Requires:      libx265 = %{version}-%{release}
+# see CMakeLists.txt, more is probably possible
+ExclusiveArch: %{ix86} %{x8664} arm
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+H.265/HEVC video encoder.
+
+%description -l pl.UTF-8
+Koder obrazu H.265/HEVC.
+
+%package -n libx265
+Summary:       H.265/HEVC video encoder library
+Summary(pl.UTF-8):     Biblioteka kodowania obrazu H.265/HEVC
+Group:         Libraries
+
+%description -n libx265
+H.265/HEVC video encoder library.
+
+%description -n libx265 -l pl.UTF-8
+Biblioteka kodowania obrazu H.265/HEVC.
+
+%package -n libx265-devel
+Summary:       Header files for x265 library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki x265
+Group:         Development/Libraries
+Requires:      libstdc++-devel
+Requires:      libx265 = %{version}-%{release}
+
+%description -n libx265-devel
+Header files for x265 library.
+
+%description -n libx265-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki x265.
+
+%package -n libx265-static
+Summary:       Static x265 library
+Summary(pl.UTF-8):     Statyczna biblioteka x265
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description -n libx265-static
+Static x265 library.
+
+%description -n libx265-static -l pl.UTF-8
+Statyczna biblioteka x265.
+
+%prep
+%setup -q -n x265-stable
+%patch0 -p1
+
+%build
+cd source
+%cmake .
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C source install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -n libx265 -p /sbin/ldconfig
+%postun        -n libx265 -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc doc/reST/cli.rst
+%attr(755,root,root) %{_bindir}/x265
+
+%files -n libx265
+%defattr(644,root,root,755)
+%doc doc/reST/introduction.rst
+%attr(755,root,root) %{_libdir}/libx265.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libx265.so.7
+
+%files -n libx265-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libx265.so
+%{_includedir}/x265.h
+%{_includedir}/x265_config.h
+%{_pkgconfigdir}/x265.pc
+
+%files -n libx265-static
+%defattr(644,root,root,755)
+%{_libdir}/libx265.a
This page took 0.088696 seconds and 4 git commands to generate.