-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathfedy.spec
86 lines (66 loc) · 2 KB
/
fedy.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Name: fedy
Version: 5.0.56
Release: %autorelease
Summary: Install codecs and additional software
License: GPLv3+
URL: https://github.com/rpmfusion-infra/fedy
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
BuildRequires: make
%global obsolete_file L2V0Yy95dW0ucmVwb3MuZC91bml0ZWRycG1zLnJlcG8K
# Obsoletes introduced in f26
Provides: fedy-core = %{version}-%{release}
Obsoletes: fedy-core < 4.5.1-1
Provides: fedy-plugins = %{version}-%{release}
Obsoletes: fedy-plugins < 4.5.1-1
# Obsoletes introduced in f29
Obsoletes: fedy-release < 5.0.0-4
Provides: fedy-release = 5.0.0-4
# Obsoletes libva-intel-media-driver in f39+
Obsoletes: libva-intel-media-driver
Provides: libva-intel-media-driver
Requires: dnf-plugins-core
Requires: hicolor-icon-theme
Requires: gjs
Requires: gtk3
Requires: libnotify
Requires: sed
Requires: tar
Requires: wget
Requires: jq
%description
Fedy lets you install multimedia codecs and additional software that Fedora
doesn't want to ship, like AAC,H264,H265 support, pre-built software, and
much more with just a few clicks.
%prep
%autosetup -p1
%build
#Nothing to build
%install
%make_install
# Validate desktop file
desktop-file-validate \
%{buildroot}%{_datadir}/applications/*%{name}.desktop
# Validate appdata file
appstream-util validate-relax --nonet \
%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
%pre
obsolete=/tmp/no-exists
obsolete=$(echo %{obsolete_file} | base64 -d)
if [ -f ${obsolete} ] ; then
rm -f ${obsolete} &>/dev/null
fi || :
%files
%license LICENSE
%doc CREDITS README.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/*.%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/icons/hicolor/scalable/apps/%{name}-symbolic.svg
%{_datadir}/polkit-1/actions/org.folkswithhats.pkexec.run-as-root.policy
%{_datadir}/metainfo/%{name}.appdata.xml
%changelog
%autochangelog