SHA256
1
0
forked from pool/libgpg-error
OBS User unknown 2009-02-23 11:54:33 +00:00 committed by Git OBS Bridge
parent 32d401a72b
commit 7ee9522ef4
2 changed files with 18 additions and 21 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 20 03:00:44 CET 2009 - crrodriguez@suse.de
- remove static libraries, there is no reason to use them as
shared libraries live in /%{_lib}
-------------------------------------------------------------------
Thu Jan 29 10:57:01 CET 2009 - olh@suse.de

View File

@ -21,7 +21,7 @@
Name: libgpg-error
Url: http://www.gnupg.org/
Version: 1.6
Release: 7
Release: 9
Summary: Library That Defines Common Error Values for All GnuPG Components
License: GPL v2 or later; LGPL v2.1 or later
Group: Development/Libraries/C and C++
@ -78,7 +78,7 @@ Obsoletes: libgpg-error-devel-64bit
%if %nld_build
Conflicts: libgpg-error-devel
%endif
Requires: libgpg-error0 == %version
Requires: libgpg-error0 = %version glibc-devel
%description devel
Files needed for software development using libgpg-error.
@ -91,30 +91,21 @@ Authors:
%prep
%setup -q -n libgpg-error-%version
autoreconf --force
%if %nld_build
%patch
%endif
%build
libtoolize --force
aclocal -I m4
automake -a
autoconf
./configure --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--libdir=/%{_lib} \
--infodir=%{_infodir} \
CFLAGS="$RPM_OPT_FLAGS"
make
autoreconf -fiv
%configure --disable-static --with-pic --libdir=/%{_lib}
%{__make} %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT/%{_lib}/libgpg-error.la
mkdir -p $RPM_BUILD_ROOT%{_libdir}
rm $RPM_BUILD_ROOT/%{_lib}/libgpg-error.so
ln -s /%{_lib}/libgpg-error.so.0 $RPM_BUILD_ROOT%{_libdir}/libgpg-error.so
mv $RPM_BUILD_ROOT/%{_lib}/libgpg-error.a $RPM_BUILD_ROOT%{_libdir}
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
%{__rm} -v %{buildroot}/%{_lib}/%{name}.so
# Drop the lisp stuff, it depends on ASDF and CFFI
# which needs to be packaged first
rm -r %{buildroot}/usr/share/common-lisp
@ -123,11 +114,9 @@ rm -r %{buildroot}/usr/share/common-lisp
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libgpg-error0
%run_ldconfig
%post -n libgpg-error0 -p /sbin/ldconfig
%postun -n libgpg-error0
%run_ldconfig
%postun -n libgpg-error0 -p /sbin/ldconfig
%files -n libgpg-error0 -f %{name}.lang
%defattr(-,root,root)
@ -139,10 +128,12 @@ rm -rf $RPM_BUILD_ROOT
%_datadir/aclocal/gpg-error.m4
%_includedir/*
%_bindir/*
%_libdir/libgpg-error*.a
%_libdir/libgpg-error*.so
%changelog
* Fri Feb 20 2009 crrodriguez@suse.de
- remove static libraries, there is no reason to use them as
shared libraries live in /%%{_lib}
* Thu Jan 29 2009 olh@suse.de
- obsolete libgpg-error-XXbit in the library subpackage
* Wed Dec 10 2008 olh@suse.de