Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:darix:restic
minio
minio.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File minio.spec of Package minio
# # spec file for package minio # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define logdir %{_localstatedir}/log/minio %define datadir %{_localstatedir}/lib/minio %define confdir %{_sysconfdir}/minio %define pkg_version 2024-09-13T20-26-02Z Name: minio Version: %(echo "%{pkg_version}" | sed -e 's|-|.|g') Release: 0 Summary: An open source object storage server compatible with Amazon S3 APIs License: Apache-2.0 Group: Productivity/Networking/Other Url: https://github.com/minio/minio/releases Source0: %{name}-RELEASE.%{pkg_version}.tar.gz Source1: %{name}.service Source2: README.SUSE Source3: config.json Source4: minio-generate-keys Source5: vendor.tar.xz %{?go_nostrip} BuildRequires: golang-packaging BuildRequires: golang(API) >= 1.17 # for minio-generate-keys Requires(post): ruby Requires: minio-mc Provides: group(minio) Provides: user(minio) %description Minio is an object storage server released under Apache License v2.0. It is compatible with Amazon S3 cloud storage service. It is best suited for storing unstructured data such as photos, videos, log files, backups and container / VM images. Size of an object can range from a few KBs to a maximum of 5TB. Minio server is light enough to be bundled with the application stack, similar to NodeJS, Redis and MySQL. %prep %setup -q -n minio-RELEASE.%{pkg_version} -a 5 %build cp %{S:2} . perl -p -i -e 's|DEVELOPMENT.GOGET|%{pkg_version}|g' cmd/build-constants.go go build -mod=vendor -buildmode=pie %install install -dD -m 0750 \ %{buildroot}%{confdir}/ \ %{buildroot}%{confdir}/certs/ \ %{buildroot}%{confdir}/certs/CAs \ %{buildroot}%{logdir} \ %{buildroot}%{datadir} install -d -m 0755 %{buildroot}%{_sbindir} install -D -m 0755 %{name} %{buildroot}%{_sbindir}/%{name} install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service ln -sf /sbin/service %{buildroot}%{_sbindir}/rc%{name} #install -D -m 0640 %{SOURCE3} %{buildroot}%{confdir}/config.json install -D -m 0755 %{SOURCE4} %{buildroot}%{_sbindir}/minio-generate-keys %check #gotest github.com/minio/minio %pre %{_sbindir}/groupadd -r %{name} &>/dev/null || : %{_sbindir}/useradd -g %{name} -s /bin/false -r -c "Minio" -d %{datadir} %{name} &>/dev/null || : %service_add_pre %{name}.service %post # if grep -q ACCESS_KEY %{confdir}/config.json ; then # %{_sbindir}/minio-generate-keys %{confdir}/config.json ||: # fi %service_add_post %{name}.service %preun %service_del_preun %{name}.service %postun %service_del_postun %{name}.service %files %defattr(-,root,root) %doc LICENSE NOTICE *.md README.SUSE %doc docs/ %{_unitdir}/%{name}.service %{_sbindir}/rc%{name} %{_sbindir}/minio-generate-keys %{_sbindir}/%{name} %config(noreplace) %attr(-,%{name},%{name}) %{confdir} %dir %attr(-,%{name},%{name}) %{datadir} %dir %attr(-,%{name},%{name}) %{logdir} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor