-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from funbox/develop
Version 0.12.0
- Loading branch information
Showing
8 changed files
with
243 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
target-branch: "develop" | ||
schedule: | ||
interval: "daily" | ||
timezone: "Europe/Moscow" | ||
time: "15:00" | ||
labels: | ||
- "PR • MAINTENANCE" | ||
assignees: | ||
- "andyone" | ||
reviewers: | ||
- "andyone" | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
target-branch: "develop" | ||
schedule: | ||
interval: "daily" | ||
timezone: "Europe/Moscow" | ||
time: "15:00" | ||
labels: | ||
- "PR • MAINTENANCE" | ||
assignees: | ||
- "andyone" | ||
reviewers: | ||
- "andyone" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,24 @@ | ||
################################################################################ | ||
|
||
# rpmbuilder:relative-pack true | ||
%define debug_package %{nil} | ||
|
||
################################################################################ | ||
|
||
%define _posixroot / | ||
%define _root /root | ||
%define _bin /bin | ||
%define _sbin /sbin | ||
%define _srv /srv | ||
%define _home /home | ||
%define _lib32 %{_posixroot}lib | ||
%define _lib64 %{_posixroot}lib64 | ||
%define _libdir32 %{_prefix}%{_lib32} | ||
%define _libdir64 %{_prefix}%{_lib64} | ||
%define _logdir %{_localstatedir}/log | ||
%define _rundir %{_localstatedir}/run | ||
%define _lockdir %{_localstatedir}/lock/subsys | ||
%define _cachedir %{_localstatedir}/cache | ||
%define _spooldir %{_localstatedir}/spool | ||
%define _crondir %{_sysconfdir}/cron.d | ||
%define _loc_prefix %{_prefix}/local | ||
%define _loc_exec_prefix %{_loc_prefix} | ||
%define _loc_bindir %{_loc_exec_prefix}/bin | ||
%define _loc_libdir %{_loc_exec_prefix}/%{_lib} | ||
%define _loc_libdir32 %{_loc_exec_prefix}/%{_lib32} | ||
%define _loc_libdir64 %{_loc_exec_prefix}/%{_lib64} | ||
%define _loc_libexecdir %{_loc_exec_prefix}/libexec | ||
%define _loc_sbindir %{_loc_exec_prefix}/sbin | ||
%define _loc_bindir %{_loc_exec_prefix}/bin | ||
%define _loc_datarootdir %{_loc_prefix}/share | ||
%define _loc_includedir %{_loc_prefix}/include | ||
%define _rpmstatedir %{_sharedstatedir}/rpm-state | ||
%define _pkgconfigdir %{_libdir}/pkgconfig | ||
Summary: Utility for converting init-exporter procfiles from v1 to v2 format | ||
Name: init-exporter-converter | ||
Version: 0.12.0 | ||
Release: 0%{?dist} | ||
Group: Development/Tools | ||
License: MIT | ||
URL: https://github.com/funbox/init-exporter-converter | ||
|
||
################################################################################ | ||
|
||
%define debug_package %{nil} | ||
|
||
################################################################################ | ||
Source0: %{name}-%{version}.tar.gz | ||
|
||
Summary: Utility for converting init-exporter procfiles from v1 to v2 format | ||
Name: init-exporter-converter | ||
Version: 0.11.2 | ||
Release: 0%{?dist} | ||
Group: Development/Tools | ||
License: MIT | ||
URL: https://github.com/funbox/init-exporter-converter | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | ||
|
||
Source0: %{name}-%{version}.tar.gz | ||
BuildRequires: golang >= 1.19 | ||
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | ||
|
||
BuildRequires: golang >= 1.17 | ||
|
||
Provides: %{name} = %{version}-%{release} | ||
Provides: %{name} = %{version}-%{release} | ||
|
||
################################################################################ | ||
|
||
|
@@ -67,17 +31,21 @@ Utility for exporting services described by Procfile to init system. | |
%setup -q | ||
|
||
%build | ||
export GOPATH=$(pwd) | ||
pushd src/github.com/funbox/%{name} | ||
go build -mod vendor %{name}.go | ||
if [[ ! -d "%{name}/vendor" ]] ; then | ||
echo "This package requires vendored dependencies" | ||
exit 1 | ||
fi | ||
|
||
pushd %{name} | ||
%{__make} %{?_smp_mflags} all | ||
cp LICENSE .. | ||
popd | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
|
||
install -dm 755 %{buildroot}%{_bindir} | ||
install -pm 755 src/github.com/funbox/%{name}/%{name} \ | ||
%{buildroot}%{_bindir}/ | ||
install -pm 755 %{name}/%{name} %{buildroot}%{_bindir}/ | ||
|
||
%clean | ||
rm -rf %{buildroot} | ||
|
@@ -86,11 +54,17 @@ rm -rf %{buildroot} | |
|
||
%files | ||
%defattr(-,root,root,-) | ||
%doc LICENSE | ||
%{_bindir}/init-exporter-converter | ||
|
||
################################################################################ | ||
|
||
%changelog | ||
* Fri Mar 10 2023 Anton Novojilov <[email protected]> - 0.12.0-0 | ||
- Added verbose version output | ||
- Dependencies update | ||
- Code refactoring | ||
|
||
* Fri Apr 01 2022 Anton Novojilov <[email protected]> - 0.11.2-0 | ||
- Removed pkg.re usage | ||
- Added module info | ||
|
Oops, something went wrong.