storj.io/minio@v0.0.0-20230509071714-0cbc90f649b1/minio.spec (about) 1 %define tag RELEASE.2020-11-25T22-36-25Z 2 %define subver %(echo %{tag} | sed -e 's/[^0-9]//g') 3 # git fetch https://github.com/minio/minio.git refs/tags/RELEASE.2020-11-25T22-36-25Z 4 # git rev-list -n 1 FETCH_HEAD 5 %define commitid 91130e884b5df59d66a45a0aad4f48db88f5ca63 6 Summary: High Performance, Kubernetes Native Object Storage. 7 Name: minio 8 Version: 0.0.%{subver} 9 Release: 1 10 Vendor: MinIO, Inc. 11 License: Apache v2.0 12 Group: Applications/File 13 Source0: https://dl.minio.io/server/minio/release/linux-amd64/archive/minio.%{tag} 14 Source1: https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/distributed/minio.service 15 URL: https://www.min.io/ 16 Requires(pre): /usr/sbin/useradd, /usr/bin/getent 17 Requires(postun): /usr/sbin/userdel 18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) 19 20 ## Disable debug packages. 21 %define debug_package %{nil} 22 23 %description 24 MinIO is a High Performance Object Storage released under Apache License v2.0. 25 It is API compatible with Amazon S3 cloud storage service. Use MinIO to build 26 high performance infrastructure for machine learning, analytics and application 27 data workloads. 28 29 %pre 30 /usr/bin/getent group minio-user || /usr/sbin/groupadd -r minio-user 31 /usr/bin/getent passwd minio-user || /usr/sbin/useradd -r -d /etc/minio -s /sbin/nologin minio-user 32 33 %install 34 rm -rf $RPM_BUILD_ROOT 35 install -d $RPM_BUILD_ROOT/etc/minio/certs 36 install -d $RPM_BUILD_ROOT/etc/systemd/system 37 install -d $RPM_BUILD_ROOT/etc/default 38 install -d $RPM_BUILD_ROOT/usr/local/bin 39 40 cat <<EOF >> $RPM_BUILD_ROOT/etc/default/minio 41 # Remote volumes to be used for MinIO server. 42 # Uncomment line before starting the server. 43 # MINIO_VOLUMES=http://node{1...6}/export{1...32} 44 45 # Root credentials for the server. 46 # Uncomment both lines before starting the server. 47 # MINIO_ROOT_USER=Server-Root-User 48 # MINIO_ROOT_PASSWORD=Server-Root-Password 49 50 MINIO_OPTS="--certs-dir /etc/minio/certs" 51 EOF 52 53 install %{_sourcedir}/minio.service $RPM_BUILD_ROOT/etc/systemd/system/minio.service 54 install -p %{_sourcedir}/%{name}.%{tag} $RPM_BUILD_ROOT/usr/local/bin/minio 55 56 %clean 57 rm -rf $RPM_BUILD_ROOT 58 59 %files 60 %defattr(644,root,root,755) 61 %attr(644,root,root) /etc/default/minio 62 %attr(644,root,root) /etc/systemd/system/minio.service 63 %attr(644,minio-user,minio-user) /etc/minio 64 %attr(755,minio-user,minio-user) /usr/local/bin/minio