-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtoddpkgs-ipfs-repo.spec
94 lines (67 loc) · 2.71 KB
/
toddpkgs-ipfs-repo.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
87
88
89
90
91
92
93
Name: toddpkgs-ipfs-repo
Version: 1.0
Release: 2%{?dist}.taw
Summary: Repository configuration to enable management of IPFS packages
License: MIT
URL: https://github.com/taw00/ipfs-rpm
Source0: https://raw.githubusercontent.com/taw00/ipfs-rpm/master/SOURCES/toddpkgs-ipfs-repo-1.0.tar.gz
BuildArch: noarch
# CentOS/RHEL/EPEL can't do "Suggests:"
%if 0%{?fedora:1}
Suggests: distribution-gpg-keys-copr
%endif
# pulled out of the description below...
#* For CentOS or RHEL:
# sudo yum clean expire-cache
# sudo yum install go-ipfs -y
%description
Todd (aka, taw, taw00, t0dd in various communities) packages applications for
Fedora Linux and RHEL/CentOS/EPEL. This package deploys the repository
configuration file necessary to enable on-going management of the go-ipfs
reference RPM package for Fedora Linux (and perhaps, someday, CentOS and
RHEL).
---
IPFS is a global, versioned, peer-to-peer filesystem. It combines good ideas
from Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single
bittorrent swarm, exchanging git objects. IPFS provides an interface as
simple as the HTTP web, but with permanence built in. You can also mount the
world at /ipfs.
For more info see: https://github.com/ipfs/ipfs
---
Install this RPM pacage (toddpkgs-ipfs-repo), then...
sudo dnf install go-ipfs -y --refresh
You can edit /etc/yum.repos.d/ipfs.repo (as root) and 'enable=1' or '0'
whether you want the stable or the testing repositories.
Notes about GPG keys:
* An RPM signing key is included. It is used to sign RPMs that I build by
hand. Namely any *.src.rpm found in github.com/taw00/ipfs-rpm
* RPMs from the copr repositories are signed by fedoraproject build system
keys.
%prep
%setup -q
# For debugging purposes...
#cd .. ; tree -df -L 1 ; cd -
%build
# no-op
%install
# Builds generically. Will need a disto specific RPM though.
install -d %{buildroot}%{_sysconfdir}/yum.repos.d
install -d %{buildroot}%{_sysconfdir}/pki/rpm-gpg
install -D -m644 todd-694673ED-public-2030-01-04.2016-11-07.asc %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-todd-694673ED-public
%if 0%{?fedora:1}
install -D -m644 ipfs-fedora.repo %{buildroot}%{_sysconfdir}/yum.repos.d/ipfs.repo
%else
%if 0%{?rhel:1}
# no-op for now
#install -D -m644 ipfs-epel.repo %%{buildroot}%%{_sysconfdir}/yum.repos.d/ipfs.repo
%endif
%endif
%files
#%%config(noreplace) %%attr(644, root,root) %%{_sysconfdir}/yum.repos.d/ipfs.repo
%config %attr(644, root,root) %{_sysconfdir}/yum.repos.d/ipfs.repo
%attr(644, root,root) %{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-todd-694673ED-public
%changelog
* Sat Apr 06 2019 Todd Warner <t0dd at protonmail.com> 1.0-2.taw
- source URL change
* Thu Apr 26 2018 Todd Warner <t0dd at protonmail.com> 1.0-1.taw
- Initial build