SHA256
1
0
forked from pool/attr

Accepting request 23179 from Base:System

Copy from Base:System/attr based on submit request 23179 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/23179
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/attr?expand=0&rev=15
This commit is contained in:
OBS User autobuild 2009-10-27 15:23:45 +00:00 committed by Git OBS Bridge
parent 98f27e551d
commit 19dfd5a124
3 changed files with 33 additions and 11 deletions

12
attr-fiximplicit.patch Normal file
View File

@ -0,0 +1,12 @@
Index: attr-2.4.44/libmisc/quote.c
===================================================================
--- attr-2.4.44.orig/libmisc/quote.c
+++ attr-2.4.44/libmisc/quote.c
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <ctype.h>
#include "misc.h"

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Oct 26 15:48:06 CET 2009 - meissner@suse.de
- fixed implicit strchr() call
-------------------------------------------------------------------
Sun Sep 27 21:36:26 CEST 2009 - crrodriguez@suse.de
- do not package static libraries
- fix -devel package dependencies
-------------------------------------------------------------------
Sat Aug 1 04:23:29 CEST 2009 - bphilips@novell.com

View File

@ -23,10 +23,11 @@ Group: System/Filesystems
AutoReqProv: on
Summary: Commands for Manipulating Extended Attributes
Version: 2.4.44
Release: 1
Release: 2
Source: %{name}-%{version}.src.tar.gz
Source1: xattr.conf
Patch0: builddefs.in.diff
Patch1: %name-fiximplicit.patch
Url: http://download.savannah.gnu.org/releases-noredirect/attr/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
License: GPL v2 or later
@ -79,7 +80,7 @@ Obsoletes: attr-devel
Obsoletes: libattr-devel-64bit
%endif
#
Requires: libattr = %{version}
Requires: libattr = %{version} glibc-devel
%description -n libattr-devel
This package contains the libraries and header files needed to develop
@ -94,25 +95,24 @@ Authors:
SGI
%prep
%setup
%setup -q
%patch0 -p1
%patch1 -p1
%build
export OPTIMIZER="$RPM_OPT_FLAGS -fPIC"
export DEBUG=-DNDEBUG
autoconf
CFLAGS="$RPM_OPT_FLAGS" \
./configure \
%configure \
--prefix=/ \
--exec-prefix=/ \
--sbindir=/bin \
--bindir=%{_bindir} \
--mandir=%{_mandir} \
--includedir=%{_includedir} \
--libdir=/%{_lib} \
--datadir=/usr/share \
--libexecdir=/%{_libdir}
make
--libexecdir=/%{_libdir} \
--disable-static \
--with-pic
%{__make} %{?jobs:-j%jobs}
%install
DIST_ROOT="$RPM_BUILD_ROOT"
@ -161,7 +161,6 @@ rm -rf $RPM_BUILD_ROOT
%attr(644,root,root) %{_includedir}/attr/error_context.h
%attr(644,root,root) %{_includedir}/attr/libattr.h
%attr(644,root,root) %{_includedir}/attr/xattr.h
%attr(644,root,root) %{_libdir}/libattr.a
%attr(755,root,root) %{_libdir}/libattr.so
%doc %attr(644,root,root) %{_mandir}/man3/attr_get.3.gz*
%doc %attr(644,root,root) %{_mandir}/man3/attr_list.3.gz*