Package init

This commit is contained in:
overweight 2019-09-30 11:09:49 -04:00
commit bd20473029
3 changed files with 108 additions and 0 deletions

View File

@ -0,0 +1,35 @@
diff -up nfs4-acl-tools-0.3.2/configure.ac.orig nfs4-acl-tools-0.3.2/configure.ac
--- nfs4-acl-tools-0.3.2/configure.ac.orig 2007-10-22 15:46:09.000000000 -0400
+++ nfs4-acl-tools-0.3.2/configure.ac 2008-10-29 14:42:02.427246000 -0400
@@ -32,5 +32,6 @@ AC_PACKAGE_NEED_GETXATTR_LIBATTR
AC_MANUAL_FORMAT
AC_FUNC_GCC_VISIBILITY
+AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE, [], [GCC supports visibility attributes])
AC_OUTPUT(include/builddefs)
diff -up nfs4-acl-tools-0.3.2/include/buildmacros.orig nfs4-acl-tools-0.3.2/include/buildmacros
--- nfs4-acl-tools-0.3.2/include/buildmacros.orig 2007-03-08 13:32:15.000000000 -0500
+++ nfs4-acl-tools-0.3.2/include/buildmacros 2008-10-29 14:42:02.431244000 -0400
@@ -54,7 +54,8 @@ OBJECTS = $(ASFILES:.s=.o) \
$(LFILES:.l=.o) \
$(YFILES:%.y=%.tab.o)
-INSTALL = $(TOPDIR)/install-sh -o $(PKG_USER) -g $(PKG_GROUP)
+#INSTALL = $(TOPDIR)/install-sh -o $(PKG_USER) -g $(PKG_GROUP)
+INSTALL = $(TOPDIR)/install-sh
SHELL = /bin/sh
IMAGES_DIR = $(TOPDIR)/all-images
diff -up nfs4-acl-tools-0.3.2/Makefile.orig nfs4-acl-tools-0.3.2/Makefile
--- nfs4-acl-tools-0.3.2/Makefile.orig 2007-02-27 18:58:58.000000000 -0500
+++ nfs4-acl-tools-0.3.2/Makefile 2008-10-29 14:42:02.413258000 -0400
@@ -46,7 +46,7 @@ LDIRT = config.log .dep config.status co
SUBDIRS = include libnfs4acl nfs4_getfacl nfs4_setfacl man
-default: $(CONFIGURE)
+default:
ifeq ($(HAVE_BUILDDEFS), no)
$(MAKE) -C . $@
else

BIN
nfs4-acl-tools-0.3.4.tar.gz Normal file

Binary file not shown.

73
nfs4-acl-tools.spec Normal file
View File

@ -0,0 +1,73 @@
Name: nfs4-acl-tools
Version: 0.3.4
Release: 4
Summary: The nfs4 ACL tools
License: BSD
URL: http://www.citi.umich.edu/projects/nfsv4/linux/
Source0: http://www.citi.umich.edu/projects/nfsv4/linux/nfs4-acl-tools/%{name}-%{version}.tar.gz
BuildRequires: libtool libattr-devel qt-devel git
Patch0000: 0000-nfs4acl-0.2.0-compile.patch
%description
It contains commandline and GUI NFSv4 ACL tools, which deal directly with NFSv4 ACLs.
It also contains GUI ACL utilities for the Linux NFSv4 client.
%package gui
Summary: nfs4 ACL tools qt gui
%description gui
It contains GUI for the nfs4-acl-tools.
%package help
Summary: Including man files for nfs4-acl-tools
Requires: man
%description help
This contains man files for the using of nfs4-acl-tools.
%prep
%autosetup -n %{name}-%{version} -p1 -S git
%build
%configure
CFLAGS="`echo $RPM_OPT_FLAGS -fpie`"
export LDFLAGS="-pie"
%make_build
pushd GUI/nfs4-acl-editor
%{qmake_qt4} nfs4-acl-editor.pro
%make_build
popd
%install
%make_install
install -m 0755 GUI/nfs4-acl-editor/nfs4-acl-editor %{buildroot}/usr/bin/nfs4-acl-editor
%files
%license COPYING
%doc INSTALL README VERSION
%{_bindir}/nfs4_editfacl
%{_bindir}/nfs4_getfacl
%{_bindir}/nfs4_setfacl
%files gui
%{_bindir}/nfs4-acl-editor
%files help
%{_mandir}/man*/*
%changelog
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.3.4-4
- Type:enhancemnet
- ID:NA
- SUG:NA
- DESC:rollback because of gui package require qt
* Fri Sep 6 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.3.4-3
- Package init