# 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 - 1-33 - Migrate to Python 3.6 * Wed Nov 28 2018 Michal Srb - 1-32 - Fix handlers.yml * Tue Nov 27 2018 Michal Srb - 1-31 - Fix build configuration * Tue Nov 27 2018 Michal Srb - 1-30 - Fix destination directory for handlers config * Tue Nov 27 2018 Michal Srb - 1-29 - Disable RPM autoreq * Thu Nov 22 2018 Michal Srb - 1-28 - [golang] Add support for Godeps.json * Wed Jul 25 2018 Michal Srb - 1-27 - [golang] Add support for Gopkg * Sat Jul 21 2018 Michal Srb - 1-26 - [java] Make Maven local repo location configurable * Fri Apr 27 2018 Saleem Ansari - 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 - 1-24 - Initial Gradle support * Wed Nov 29 2017 Jiri Popelka - 1-23 - Go Glide support * Mon Nov 20 2017 Pavel Kajaba - 1-22 - Ignore inherited description in pom.xml * Mon Oct 23 2017 Michal Srb - 1-21 - Ignore unknown trigger lines in PKGINFO * Tue Sep 12 2017 Jiri Popelka - 1-20 - Haskell handler - effective pom files handling * Thu Jun 29 2017 Jiri Popelka - 1-19 - [dotnet handler] Use NuGet v4 library for nuspec reading * Tue Jun 27 2017 Jiri Popelka - 1-18 - remove Openshift V2 & EPEL-6 hacks * Fri Jun 23 2017 Jiri Popelka - 1-17 - dotnet handler * Fri Apr 28 2017 Jiri Popelka - 1-16 - Add License and change URL * Mon Apr 03 2017 Slavek Kabrda - 1-15 - Fix handlers template for Python dist * Mon Apr 03 2017 Slavek Kabrda - 1-14 - Recognize PKG-INFO files even when they're not in egg-info directory * Mon Apr 03 2017 Slavek Kabrda - 1-13 - Bump release to fix release bump that was built but not committed. * Mon Apr 03 2017 Slavek Kabrda - 1-12 - Build with new Python improvements * Wed Feb 01 2017 Michal Srb - 1-11 - Bump release * Thu Jan 12 2017 Fridolin Pokorny - 1-10 - Enable Java handler * Fri Dec 09 2016 Fridolin Pokorny - 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 - 1-8 - Removed python3 collection * Mon Oct 17 2016 Pavel Kajaba - 1-7 - Added collections * Fri Oct 14 2016 Pavel Kajaba - 1-6 - Removed python3 binary because it resolves as depenency * Fri Oct 14 2016 Pavel Kajaba - 1-5 - Updated script to enabling collections * Fri Oct 14 2016 Pavel Kajaba - 1-4 - Dropped usage of six longest_list in mercator.py * Thu Oct 13 2016 Pavel Kajaba - 1-3 - Updated mercator.py for better java output * Tue Oct 11 2016 Pavel Kajaba - 1-2 - Updated few details * Mon Oct 03 2016 Pavel Kajaba - 1-1 - Initial creation of specfile for Mercator