diff --git a/ossfs.spec b/ossfs.spec new file mode 100644 index 0000000000000000000000000000000000000000..fbc8afff0b1c39951e8a9aaef45c2f15bfa42d73 --- /dev/null +++ b/ossfs.spec @@ -0,0 +1,52 @@ +%define anolis_release 1 + +Name: ossfs +Version: 1.91.4 + +Release: %{anolis_release}%{?dist} +Summary: ossfs tool for Alibaba Cloud OSS + +License: GPLv2+ +URL: https://github.com/aliyun/ossfs +Source0: %{url}/archive/v%{version}.tar.gz +Source1: passwd-ossfs + +Requires: fuse-libs >= 2.8.4 +Requires: fuse >= 2.8.4 +BuildRequires: automake +BuildRequires: gcc-c++ +BuildRequires: make +BuildRequires: pkgconfig +BuildRequires: pkgconfig(fuse) >= 2.8.4 +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(openssl) + +%description +The OSSFS enables you to mount Alibaba Cloud OSS buckets to a local file in +Linux/Mac OS X systems. In the system, you can conveniently operate on +objects in OSS while using the local file system to maintain data sharing. + +%prep +%autosetup -p1 + +%build +cp -p %{SOURCE1} passwd-ossfs +./autogen.sh +%configure +%make_build + +%install +%make_install + +%files +%{_bindir}/ossfs +%{_mandir}/man1/ossfs.1* +%doc AUTHORS README.md README-CN.md ChangeLog passwd-ossfs +%{!?_licensedir:%global license %doc} +%license COPYING + +%changelog +* Thu Nov 7 2024 happy_orange - 1.91.4-1 +- init package + diff --git a/passwd-ossfs b/passwd-ossfs new file mode 100644 index 0000000000000000000000000000000000000000..e5720e3395e25b9daf23ccbe4807bd34a2986bb4 --- /dev/null +++ b/passwd-ossfs @@ -0,0 +1,8 @@ +# This file can be used in two ways: +# 1) System-wide password file - Copy to /etc and make it readable only +# by root (chmod 0640 && chown root:root) +# 2) Copy to ~/.passwd-ossfs owned by you and with 0600 permissions for +# per-user mounts +# +# In both cases, you can specify a per-bucket credentials, like this: +# my-bucket:my-access-key-id:my-access-key-secret diff --git a/v1.91.4.tar.gz b/v1.91.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b4daa3d8004f7d846b8985f6f9e9666733ebd019 Binary files /dev/null and b/v1.91.4.tar.gz differ