[28381] in Source-Commits
locker-support commit [redhat]: Packaging for RedHat systems
daemon@ATHENA.MIT.EDU (Alexander Chernyakhovsky)
Thu Aug 7 00:08:56 2014
Date: Thu, 7 Aug 2014 00:08:49 -0400
From: Alexander Chernyakhovsky <achernya@MIT.EDU>
Message-Id: <201408070408.s7748nQW006391@drugstore.mit.edu>
To: source-commits@MIT.EDU
https://github.com/mit-athena/locker-support/commit/7d27145d70558c22364839f7aa331b4d9bc9d459
commit 7d27145d70558c22364839f7aa331b4d9bc9d459
Author: Alexander Chernyakhovsky <achernya@mit.edu>
Date: Wed Aug 6 22:50:16 2014 -0400
Packaging for RedHat systems
redhat/locker-support.spec | 98 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 98 insertions(+), 0 deletions(-)
diff --git a/redhat/locker-support.spec b/redhat/locker-support.spec
new file mode 100644
index 0000000..4ded0ce
--- /dev/null
+++ b/redhat/locker-support.spec
@@ -0,0 +1,98 @@
+Name: athenora-locker-support
+Version: 10.4.7
+Release: 1%{?dist}
+Summary: Python modules for Athena\'s "locker" framework
+
+Group: Applications/System
+License: BSD
+URL: https://github.com/mit-athena/locker-support/
+Source0: https://debathena.mit.edu/redist/locker-support-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python-setuptools
+BuildRequires: python2-devel
+
+Requires: python-afs
+Requires: python-hesiod
+
+%description
+This package provides the "locker" and "athdir" modules, for use with
+athenora-pyhesiodfs and more
+
+%package -n athenora-attach
+Summary: Athena utility to attach a remote file system to the workstation
+
+Requires: athenora-locker-support
+
+%description -n athenora-attach
+The attach utility is a filesystem-independent utility which allows
+you to attach a filesystem to a directory hierarchy on a workstation.
+Currently supported filesystem types are AFS, NFS, and UFS.
+
+%package -n athenora-athdir
+Summary: Utility to find machine-specific directories using Athena conventions
+
+Requires: athenora-locker-support
+
+%description -n athenora-athdir
+The athdir utility is used to locate specific types of files in an
+Athena locker. It knows about all the conventions for compatibility
+with older operating system versions and processor types, and is the
+preferred way to determine the correct directory in a locker in which
+to find binaries or other architecture-dependent files.
+
+%package -n athenora-quota
+Summary: Print disk usage and quota limits
+
+%description -n athenora-quota
+Quota displays a user's disk usage and limits on local and NFS mounted
+file systems, as well as AFS lockers that have been attached. If a
+user is specified (by name or by id), quota will return information on
+disk usage and limits for that user. Normal users can only check their
+own quotas. The super-user may check any quota on local filesystems.
+
+%prep
+%setup -q -n locker-support-%{version}
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" CPPFLAGS="-I%{_includedir}/et" %{__python2} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+mkdir -p %{buildroot}%{_mandir}/man1/
+cp -v man/*.1 %{buildroot}%{_mandir}/man1/
+ln -s /bin/true %{buildroot}/usr/bin/zinit
+ln -s /bin/true %{buildroot}/usr/bin/nfsid
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc
+%{python_sitelib}/*
+
+%files -n athenora-attach
+/usr/bin/attach
+/usr/bin/detach
+/usr/bin/fsid
+/usr/bin/nfsid
+/usr/bin/zinit
+%doc %{_mandir}/man1/add.1.gz
+%doc %{_mandir}/man1/attach.1.gz
+%doc %{_mandir}/man1/detach.1.gz
+%doc %{_mandir}/man1/fsid.1.gz
+
+%files -n athenora-athdir
+/usr/bin/athdir
+%doc %{_mandir}/man1/athdir.1.gz
+
+%files -n athenora-quota
+/usr/bin/quota.debathena
+%doc %{_mandir}/man1/quota.debathena.1.gz
+
+%changelog
+* Wed Aug 6 2014 Alex Chernyakhovsky <achernya@mit.edu> - 10.4.7-1
+- Initial packaging.