Accepting request 493044 from Base:System

1

OBS-URL: https://build.opensuse.org/request/show/493044
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/acl?expand=0&rev=42
This commit is contained in:
Dominique Leuenberger 2017-05-10 18:33:13 +00:00 committed by Git OBS Bridge
commit 2858d40a5c
2 changed files with 31 additions and 14 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Sun Apr 23 09:05:29 UTC 2017 - jengelh@inai.de
- Remove --with-pic that's just for static libraries.
- Replace %__-type macro indirections.
Replace old $RPM_ by their macro equivalents for consistency.
Make the macro style consistent across the file again.
-------------------------------------------------------------------
Mon Apr 17 07:47:47 UTC 2017 - hendrikw@arcor.de
- reenable full Larg File Support for i586
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 29 14:25:36 UTC 2017 - fvogt@suse.com Wed Mar 29 14:25:36 UTC 2017 - fvogt@suse.com

View File

@ -115,8 +115,8 @@ Group: Development/Libraries/C and C++
Requires: %lname = %version Requires: %lname = %version
Requires: glibc-devel Requires: glibc-devel
Requires: libattr-devel Requires: libattr-devel
Provides: acl-devel = %{version} Provides: acl-devel = %version
Obsoletes: acl-devel < %{version} Obsoletes: acl-devel < %version
# bug437293 # bug437293
%ifarch ppc64 %ifarch ppc64
Obsoletes: libacl-devel-64bit Obsoletes: libacl-devel-64bit
@ -168,18 +168,22 @@ to develop applications that require these.
%build %build
chmod a+x po/update-potfiles chmod a+x po/update-potfiles
sh autogen.sh sh autogen.sh
export OPTIMIZER="$RPM_OPT_FLAGS -fPIC" export OPTIMIZER="%optflags -fPIC"
export DEBUG=-DNDEBUG export DEBUG=-DNDEBUG
CFLAGS="$RPM_OPT_FLAGS" CFLAGS="%optflags"
%ifarch %ix86 i586
export CFLAGS="%optflags -D_FILE_OFFSET_BITS=64"
%endif
%configure \ %configure \
--prefix=/usr \ --prefix=/usr \
--exec-prefix=/usr \ --exec-prefix=/usr \
--libdir=/%{_lib} \ --libdir=/%_lib \
--libexecdir=/%{_lib} \ --libexecdir=/%_lib \
--disable-static \ --disable-static \
--docdir=%{_defaultdocdir}/%{name} \ --docdir=%_defaultdocdir/%name
--with-pic make %{?_smp_mflags} V=1
%{__make} %{?_smp_mflags}
%check %check
%if %{with acl_tests} %if %{with acl_tests}
@ -193,11 +197,11 @@ CFLAGS="$RPM_OPT_FLAGS"
%install %install
%make_install %make_install
%{__mkdir_p} %buildroot%{_libdir} mkdir -p %buildroot/%_libdir
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/lib%{name}.so) %{buildroot}%{_libdir}/lib%{name}.so ln -sv /%_lib/$(readlink %buildroot/%_lib/lib%name.so) %buildroot/%_libdir/lib%name.so
%{__rm} -v %{buildroot}/%{_lib}/lib%{name}.{la,so} rm -v %buildroot/%_lib/lib%name.{la,so}
# The library stays in /lib* but the pkgconfig file needs to go under /usr # The library stays in /lib* but the pkgconfig file needs to go under /usr
mv -f %{buildroot}/%{_lib}/pkgconfig/ %{buildroot}%{_libdir} mv -f %buildroot/%_lib/pkgconfig/ %buildroot/%_libdir
%find_lang %name %find_lang %name
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
@ -223,6 +227,6 @@ mv -f %{buildroot}/%{_lib}/pkgconfig/ %{buildroot}%{_libdir}
%files -n %lname %files -n %lname
%defattr(755,root,root,755) %defattr(755,root,root,755)
/%{_lib}/libacl.so.1* /%_lib/libacl.so.1*
%changelog %changelog