-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrdfetch.spec.in
More file actions
94 lines (83 loc) · 2.91 KB
/
rdfetch.spec.in
File metadata and controls
94 lines (83 loc) · 2.91 KB
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
87
88
89
90
91
92
93
94
# RPM SPEC file for rdfetch.
# Place this file in ${SOMEDIR}/rpmbuild/SPECS,
# Place the source tarball and the patch file in ${SOMEDIR}/rpmbuild/SOURCES
# Grab a SHA256 sum of the tarball and place it in ${SOMEDIR}/rpmbuild/SOURCES/rdfetch-${VERSION}.tar.gz-sha256sum
# Run rpmbuild -bb ${SOMEDIR}/rpmbuild/SPECS/rdfetch.spec
# Run sudo yum install ${SOMEDIR}/rpmbuild/RPMS/x86_64/rdfetch-${VERSION}-${RELEASE}.el7.x86_64.rpm
Name: rdfetch
# This package complies with Semantic Versioning: http://semver.org/
%define vMajor 0
%define vMinor 4
%define vPatch 15
Version: %{vMajor}.%{vMinor}.%{vPatch}
Release: @RPM_RELEASE@%{?dist}
Summary: A Rivendell podcast fetcher
BuildArch: x86_64
License: GPLv3
Group: Productivity/Multimedia/Other
URL: https://github.com/opensourceradio/%{name}
Source0: %{name}-%{version}.tar.gz
Source1: https://github.com/opensourceradio/%{name}/archive/%{name}-%{version}.tar.gz
Source500: %{name}-%{version}.tar.gz.sha256
Requires: zsh >= 5.0
Requires: coreutils >= 8.5
Requires: dos2unix >= 6.0.0
Requires: findutils >= 4.0.0
Requires: grep >= 2.0.0
Requires: gawk >= 4.0.0
Requires: msmtp >= 1.8.0
Requires: sed >= 4.0.0
Requires: podget = 0.8.5
Requires: gnome-terminal
Requires: libxslt >= 1.0.28
Requires: xmlstarlet >= 1.6.0
%define tartopdir %{name}-%{version}
%define homerd /home/rd
%define rduser rd
%description
RDFetch is a podcast fetcher that integrates tightly with the
Rivendell radio automation system. RDFetch consists of a front end to
podget(1), the simple podcast fetcher, and a text-based Rivendell
dropbox configurator wizard.
%prep
( cd %_sourcedir; sha256sum -c %{SOURCE500}; )
%setup -q -n %{tartopdir}
%build
%configure
%install
%make_install
%post
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
%{_bindir}/gtk-update-icon-cache -f --quiet %{_datadir}/icons/gnome || :
fi
if [ -x %{_bindir}/sendusr1 ] ; then
setcap "cap_kill=+ep" %{_bindir}/sendusr1
fi
%postun
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || :
fi
%files
%defattr(-,root,root,-)
%doc COPYING README README.md %{name}.pdf %{name}.html
%{_bindir}/%{name}
%{_bindir}/podget-wrapper
%{_bindir}/zsh-functions
%{_bindir}/sendusr1
%{_datadir}/icons/gnome/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%{_sysconfdir}/xdg/menus/applications-merged/rdfetch-rivendell.menu
%{_mandir}/man*/*
%config(noreplace) %{homerd}/rdfetch/configuration/msmtp.rdfetch
%config(noreplace) %{homerd}/rdfetch/configuration/notifyrc
%config(noreplace) %{homerd}/rdfetch/configuration/podgetrc
%config(noreplace) %{homerd}/rdfetch/configuration/serverlist
%dir %{homerd}/rdfetch/log/archive
%dir %{homerd}/rdfetch/podcasts
%dir %{homerd}/rdfetch/tmp
%attr(-,%{rduser},%{rduser}) %{homerd}/rdfetch
%changelog
* Mon Oct 25 2021 David Klann <dklann@broadcasttool.com>
- Updates to rdfetch and zsh-functions.
* Mon Aug 24 2020 David Klann <dklann@broadcasttool.com>
- Created.