[packages/perl-File-ExtAttr] - initial, version 1.09

adwol adwol at pld-linux.org
Sat May 16 16:38:01 CEST 2020


commit ff5b7bad489837d0866a2f38660877c035229863
Author: Adam Osuchowski <adwol at pld-linux.org>
Date:   Sat May 16 16:37:37 2020 +0200

    - initial, version 1.09

 perl-File-ExtAttr-xattr_path.patch | 36 ++++++++++++++++++++
 perl-File-ExtAttr.spec             | 69 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 105 insertions(+)
---
diff --git a/perl-File-ExtAttr.spec b/perl-File-ExtAttr.spec
new file mode 100644
index 0000000..5092428
--- /dev/null
+++ b/perl-File-ExtAttr.spec
@@ -0,0 +1,69 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define	pdir	File
+%define	pnam	ExtAttr
+#
+Summary:	File::ExtAttr - Perl extension for accessing extended attributes of files
+Name:		perl-File-ExtAttr
+Version:	1.09
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/authors/id/R/RI/RICHDAWE/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	bcce46d86b72185f3814a7c413b86c8a
+Patch0:		%{name}-xattr_path.patch
+URL:		http://search.cpan.org/dist/File-ExtAttr/
+BuildRequires:	attr-devel
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRequires:	sed >= 4.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+File::ExtAttr is a Perl module providing access to the extended
+attributes of files. Extended attributes are metadata associated with
+a file. Examples are access control lists (ACLs) and other security
+parameters. But users can add their own key=value pairs.
+
+Extended attributes may also not be supported by your filesystem or
+require special options to be enabled for a particular filesystem.
+E.g.:
+
+mount -o user_xattr /dev/hda1 /some/path
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make} \
+	CC="%{__cc}" \
+	OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorarch}/File/ExtAttr.pm
+%dir %{perl_vendorarch}/File/ExtAttr
+%{perl_vendorarch}/File/ExtAttr/Tie.pm
+%dir %{perl_vendorarch}/auto/File/ExtAttr
+%attr(755,root,root) %{perl_vendorarch}/auto/File/ExtAttr/ExtAttr.so
+%{perl_vendorarch}/auto/File/ExtAttr/autosplit.ix
+%{_mandir}/man3/File::ExtAttr.3*
+%{_mandir}/man3/File::ExtAttr::Tie.3*
diff --git a/perl-File-ExtAttr-xattr_path.patch b/perl-File-ExtAttr-xattr_path.patch
new file mode 100644
index 0000000..0ca8d8c
--- /dev/null
+++ b/perl-File-ExtAttr-xattr_path.patch
@@ -0,0 +1,36 @@
+diff -ruNp File-ExtAttr-1.09.orig/Makefile.PL File-ExtAttr-1.09/Makefile.PL
+--- File-ExtAttr-1.09.orig/Makefile.PL	2009-03-07 11:24:25.000000000 +0100
++++ File-ExtAttr-1.09/Makefile.PL	2020-05-16 15:20:13.817160120 +0200
+@@ -20,7 +20,7 @@ if ($^O eq 'linux')
+ {
+     my %headers = (
+         'attr/attributes.h' => 0,
+-        'attr/xattr.h' => 0,
++        'sys/xattr.h' => 0,
+     );
+     my $incdir;
+     my $missing = 0;
+diff -ruNp File-ExtAttr-1.09.orig/README File-ExtAttr-1.09/README
+--- File-ExtAttr-1.09.orig/README	2008-10-27 14:58:34.000000000 +0100
++++ File-ExtAttr-1.09/README	2020-05-16 15:20:49.074987098 +0200
+@@ -42,7 +42,7 @@ use a different file system, e.g.:
+ DEPENDENCIES
+ 
+ On Linux, you will need to install the package that provides
+-the header files <attr/attributes.h> and <attr/xattr.h>. On Fedora
++the header files <attr/attributes.h> and <sys/xattr.h>. On Fedora
+ you can install these as follows:
+ 
+   yum -y install libattr-devel
+diff -ruNp File-ExtAttr-1.09.orig/extattr_linux.h File-ExtAttr-1.09/extattr_linux.h
+--- File-ExtAttr-1.09.orig/extattr_linux.h	2006-10-01 13:18:54.000000000 +0200
++++ File-ExtAttr-1.09/extattr_linux.h	2020-05-16 15:20:20.459127445 +0200
+@@ -3,7 +3,7 @@
+ 
+ #include <sys/types.h>
+ #include <attr/attributes.h>
+-#include <attr/xattr.h>
++#include <sys/xattr.h>
+ 
+ struct hv;
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-File-ExtAttr.git/commitdiff/ff5b7bad489837d0866a2f38660877c035229863



More information about the pld-cvs-commit mailing list