forked from fedora-infra/apps.fp.o
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apps-fp-o.spec
115 lines (83 loc) · 3.24 KB
/
apps-fp-o.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
%global prefix /srv/web
Name: apps-fp-o
Version: 3.3.1
Release: 1%{?dist}
Summary: A landing page for apps.fedoraproject.org
License: MIT
URL: http://github.com/fedora-infra/apps.fp.o
# Use "./make-release.sh" from a git snapshot
# Please update the version number liberally.
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
# Needed for getting httpd's gid
BuildRequires: httpd
# Used for the yaml2{json,html}.py scripts.
Requires: python3-pyyaml
%description
This is static HTML, CSS, and javascript for a landing page for
http://apps.fedoraproject.org/
Change the /usr/share/apps.fp.o/apps.yaml file and re-run
apps-fp-o-yaml2json.py and apps-fp-o-yaml2html.py to update the
diagram.
%prep
%setup -q
%build
# Nada
%install
mkdir -p %{buildroot}/%{_bindir}
install -m 0755 bin/yaml2html.py %{buildroot}/%{_bindir}/%{name}-yaml2html.py
install -m 0755 bin/yaml2json.py %{buildroot}/%{_bindir}/%{name}-yaml2json.py
mkdir -p %{buildroot}/%{_datadir}/%{name}
install -m 0644 data/* %{buildroot}/%{_datadir}/%{name}
mkdir -p %{buildroot}/%{prefix}/%{name}
cp -r {index.html,apps-yaml.html,bootstrap,bootstrap-3.1.1-fedora,css,img,js} %{buildroot}/%{prefix}/%{name}/.
%files
%doc README.rst LICENSE CONTRIBUTING.rst
%{_bindir}/%{name}-yaml2json.py
%{_bindir}/%{name}-yaml2html.py
%{_datadir}/%{name}/apps.yaml
# The rest of the content goes here
%{prefix}/%{name}/
%attr(755, httpd, httpd) %dir %{prefix}/%{name}/
%changelog
- Bug fix release
- Update to 3.3
- Fix the link to dist-git/src.fp.o
- Update to 3.2
- Make the shebang of the scripts be python3
- Update to 3.1
- Make the script python3 compatible
- Adjust the dependency to python3-pyyaml
- Update to 3.0 with a number of changes, in the UI a little and more
importantly in the data
- Add packager and user template strings for make glorious fedmenu future.
- Make the graph bigger.
- Change JSON structure w.r.t. icons.
- Always use jsonp when querying status.fp.o.
- Copy in the bootstrap fedora content.
- Reorganized.
- Use modern bootstrap-fedora (3.1)
- Integrate with status.fp.o.
- Deep-linking
- Use comfortaa
- Added Nuancier link.
- Increased font and line sizes.
- Make sure apache owns the static files.
- Version bump for packaging.
- Initial packaging for Fedora Infrastructure