Skip to content

Commit

Permalink
#2827 fix rpm conflicts with other repositories providing x264 or ffmpeg
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@26905 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 6, 2020
1 parent 7b1d22a commit 31835ab
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
12 changes: 11 additions & 1 deletion rpmbuild/ffmpeg-xpra.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,23 @@
%global real_name ffmpeg
Name: ffmpeg-xpra
Version: 4.3
Release: 1%{?dist}
Release: 2%{?dist}
Summary: ffmpeg libraries for xpra

Group: Applications/Multimedia
License: GPL
URL: http://www.ffmpeg.org
Source0: http://www.ffmpeg.org/releases/ffmpeg-%{version}.tar.xz
BuildRoot: %(mktemp -ud %{_tmppath}/%{real_name}-%{version}-%{release}-XXXXXX)
AutoProv: 0
AutoReq: 0

BuildRequires: x264-xpra-devel
BuildRequires: libva-devel
BuildRequires: yasm

#%global __requires_exclude ^libx264.so.*$


%description
ffmpeg libraries for xpra
Expand All @@ -26,6 +30,8 @@ Summary: Development package for %{real_name}
Group: Development/libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
Requires: ffmpeg-xpra = %{version}
AutoReq: 0

%description devel
This package contains the development files for %{name}.
Expand Down Expand Up @@ -164,6 +170,10 @@ rm -rf %{buildroot}


%changelog
* Mon Jul 06 2020 Antoine Martin <[email protected]> 4.3-2
- rebuild against 10-bit x264
- remove autoreq / autoprov

* Wed Jun 17 2020 Antoine Martin <[email protected]> 4.3-1
- new upstream release

Expand Down
17 changes: 12 additions & 5 deletions rpmbuild/x264-xpra.spec
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
%define _build_id_links none

Name: x264-xpra
Version: 20200510
%define SNAPSHOTTYPE -stable
Version: 20200706
%if 0%{?beta} < 1
Release: 1%{?dist}
%else
Expand All @@ -13,8 +12,9 @@ Summary: x264 library for xpra
Group: Applications/Multimedia
License: GPL
URL: http://www.videolan.org/developers/x264.html
Source0: http://download.videolan.org/pub/x264/snapshots/x264-snapshot-%{version}-2245%{?SNAPSHOTTYPE}.tar.bz2
Source0: http://download.videolan.org/pub/x264/snapshots/x264-%{version}.tar.bz2
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
AutoProv: 0

BuildRequires: yasm

Expand All @@ -35,13 +35,15 @@ Summary: Development files for the x264 library
Group: Development/libraries
Requires: %{name} = %{version}
Requires: pkgconfig
Requires: x264-xpra = %{version}
AutoReq: 0

%description devel
This package contains the development files for %{name}.


%prep
%setup -q -n x264-snapshot-%{version}-2245%{?SNAPSHOTTYPE}
%setup -q -n x264-master


%build
Expand All @@ -59,8 +61,9 @@ make %{?_smp_mflags}
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}

# remove executable
# remove executable and bash completion:
rm %{buildroot}/usr/bin/x264
rm %{buildroot}/usr/share/bash-completion/completions/x264

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
Expand All @@ -82,6 +85,10 @@ rm -rf %{buildroot}
%{_libdir}/xpra/pkgconfig/x264.pc

%changelog
* Mon Jul 06 2020 Antoine Martin <[email protected]> 20200706-1
- use a newer snapshot
- remove autoreq / autoprov

* Mon May 11 2017 Antoine Martin <[email protected]> 20200510-1
- use a newer snapshot

Expand Down

0 comments on commit 31835ab

Please sign in to comment.