This repository was archived by the owner on Dec 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmercator.spec
180 lines (128 loc) · 4.81 KB
/
mercator.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# golang does not generate debug info
%define debug_package %{nil}
Name: mercator
Version: 1
Release: 33%{?dist}
Summary: Mercator CLI tool
License: ASL 2.0
URL: https://github.com/fabric8-analytics/%{name}-go
Source0: %{name}.tar.gz
# TODO: re-enable once mono autoreqs are fixed:
# https://ci.centos.org/view/Devtools/job/devtools-fabric8-analytics-worker-base-fabric8-analytics/69/console
AutoReq: no
BuildRequires: make openssl-devel golang git
# python handler
%if 0%{?rhel}
BuildRequires: python36-devel
BuildRequires: python36-toml
Requires: python36
Requires: python36-toml
%else
BuildRequires: python3-devel
BuildRequires: python3-toml
Requires: python3
Requires: python3-toml
%endif
# ruby handler
Requires: ruby
# npm handler
Requires: nodejs
# java handler
BuildRequires: java-devel maven
Requires: java maven
# dotnet handler
BuildRequires: mono-devel nuget
Requires: mono-core
# golang handler
BuildRequires: glide
# gradle handler
BuildRequires: npm
%description
Obtains manifests from various ecosystems such as NPM, .NET, Java and Python
%prep
%setup -q -n %{name}
%build
yes | certmgr -ssl https://go.microsoft.com
yes | certmgr -ssl https://nuget.org
export GOPATH=/tmp
make build DESTDIR=%{_prefix} JAVA=YES DOTNET=YES GOLANG=YES GRADLE=YES
%install
make install RPM_BUILDROOT=%{buildroot} DESTDIR=%{_prefix}
%clean
%files
%{_datadir}/%{name}/*
%{_bindir}/%{name}
%{!?_licensedir:%global license %%doc}
%{license} LICENSE
%doc README.md
%changelog
* Tue Apr 09 2019 Michal Srb <michal@redhat.com> - 1-33
- Migrate to Python 3.6
* Wed Nov 28 2018 Michal Srb <michal@redhat.com> - 1-32
- Fix handlers.yml
* Tue Nov 27 2018 Michal Srb <michal@redhat.com> - 1-31
- Fix build configuration
* Tue Nov 27 2018 Michal Srb <michal@redhat.com> - 1-30
- Fix destination directory for handlers config
* Tue Nov 27 2018 Michal Srb <michal@redhat.com> - 1-29
- Disable RPM autoreq
* Thu Nov 22 2018 Michal Srb <michal@redhat.com> - 1-28
- [golang] Add support for Godeps.json
* Wed Jul 25 2018 Michal Srb <michal@redhat.com> - 1-27
- [golang] Add support for Gopkg
* Sat Jul 21 2018 Michal Srb <michal@redhat.com> - 1-26
- [java] Make Maven local repo location configurable
* Fri Apr 27 2018 Saleem Ansari <tuxdna@gmail.com> - 1-25
- Remove duplicate XML start tags from expanded pom
- https://github.com/fabric8-analytics/mercator-go/pull/44
* Thu Dec 14 2017 Pavel Kajaba <pavel@redhat.com> - 1-24
- Initial Gradle support
* Wed Nov 29 2017 Jiri Popelka <jpopelka@redhat.com> - 1-23
- Go Glide support
* Mon Nov 20 2017 Pavel Kajaba <pavel@redhat.com> - 1-22
- Ignore inherited description in pom.xml
* Mon Oct 23 2017 Michal Srb <michal@redhat.com> - 1-21
- Ignore unknown trigger lines in PKGINFO
* Tue Sep 12 2017 Jiri Popelka <jpopelka@redhat.com> - 1-20
- Haskell handler
- effective pom files handling
* Thu Jun 29 2017 Jiri Popelka <jpopelka@redhat.com> - 1-19
- [dotnet handler] Use NuGet v4 library for nuspec reading
* Tue Jun 27 2017 Jiri Popelka <jpopelka@redhat.com> - 1-18
- remove Openshift V2 & EPEL-6 hacks
* Fri Jun 23 2017 Jiri Popelka <jpopelka@redhat.com> - 1-17
- dotnet handler
* Fri Apr 28 2017 Jiri Popelka <jpopelka@redhat.com> - 1-16
- Add License and change URL
* Mon Apr 03 2017 Slavek Kabrda <bkabrda@redhat.com> - 1-15
- Fix handlers template for Python dist
* Mon Apr 03 2017 Slavek Kabrda <bkabrda@redhat.com> - 1-14
- Recognize PKG-INFO files even when they're not in egg-info directory
* Mon Apr 03 2017 Slavek Kabrda <bkabrda@redhat.com> - 1-13
- Bump release to fix release bump that was built but not committed.
* Mon Apr 03 2017 Slavek Kabrda <bkabrda@redhat.com> - 1-12
- Build with new Python improvements
* Wed Feb 01 2017 Michal Srb <msrb@redhat.com> - 1-11
- Bump release
* Thu Jan 12 2017 Fridolin Pokorny <fridolin@redhat.com> - 1-10
- Enable Java handler
* Fri Dec 09 2016 Fridolin Pokorny <fridolin@redhat.com> - 1-9
- Removed dont_build_mercator.patch
- Use python3.3 instead of python2.7
- Use data_normalizer.py instead of mercator.py for data filtering
* Mon Oct 17 2016 Pavel Kajaba <pkajaba@redhat.com> - 1-8
- Removed python3 collection
* Mon Oct 17 2016 Pavel Kajaba <pkajaba@redhat.com> - 1-7
- Added collections
* Fri Oct 14 2016 Pavel Kajaba <pkajaba@redhat.com> - 1-6
- Removed python3 binary because it resolves as depenency
* Fri Oct 14 2016 Pavel Kajaba <pkajaba@redhat.com> - 1-5
- Updated script to enabling collections
* Fri Oct 14 2016 Pavel Kajaba <pkajaba@redhat.com> - 1-4
- Dropped usage of six longest_list in mercator.py
* Thu Oct 13 2016 Pavel Kajaba <pkajaba@redhat.com> - 1-3
- Updated mercator.py for better java output
* Tue Oct 11 2016 Pavel Kajaba <pkajaba@redhat.com> - 1-2
- Updated few details
* Mon Oct 03 2016 Pavel Kajaba <pkajaba@redhat.com> - 1-1
- Initial creation of specfile for Mercator