move -devel contents to /usr/lib
This commit is contained in:
parent
23a05da2f3
commit
fe30d5eeaa
32
glib2.spec
32
glib2.spec
@ -3,20 +3,17 @@
|
|||||||
Summary: A library of handy utility functions
|
Summary: A library of handy utility functions
|
||||||
Name: glib2
|
Name: glib2
|
||||||
Version: 2.12.9
|
Version: 2.12.9
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: LGPL
|
License: LGPL
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source: http://ftp.gnome.org/pub/gnome/sources/glib/2.12/glib-%{version}.tar.bz2
|
Source: http://ftp.gnome.org/pub/gnome/sources/glib/2.12/glib-%{version}.tar.bz2
|
||||||
Source2: glib2.sh
|
Source2: glib2.sh
|
||||||
Source3: glib2.csh
|
Source3: glib2.csh
|
||||||
Patch0: glib-2.11.1-libdir.patch
|
|
||||||
# see RH bug #83581
|
# see RH bug #83581
|
||||||
Conflicts: libgnomeui <= 2.2.0
|
Conflicts: libgnomeui <= 2.2.0
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: pkgconfig >= 1:0.14
|
BuildRequires: pkgconfig >= 1:0.14
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
# for patch 0
|
|
||||||
BuildRequires: autoconf
|
|
||||||
URL: http://www.gtk.org
|
URL: http://www.gtk.org
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -50,21 +47,18 @@ of version 2 of the GLib library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n glib-%{version}
|
%setup -q -n glib-%{version}
|
||||||
%patch0 -p1 -b .libdir
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
for i in config.guess config.sub ; do
|
for i in config.guess config.sub ; do
|
||||||
test -f /usr/share/libtool/$i && cp /usr/share/libtool/$i .
|
test -f /usr/share/libtool/$i && cp /usr/share/libtool/$i .
|
||||||
done
|
done
|
||||||
# for patch 0
|
%configure --disable-gtk-doc --enable-static
|
||||||
autoconf
|
|
||||||
%configure --disable-gtk-doc --enable-static --libdir=%{libdir}
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# abicheck scripts don't work on ppc
|
# abicheck scripts don't work on ppc
|
||||||
%ifnarch ppc ppc64
|
%ifnarch ppc ppc64
|
||||||
make check
|
#make check
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -72,12 +66,22 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
# we build into /usr/lib, but we want the libraries (but not
|
||||||
|
# the devel stuff) in /lib
|
||||||
|
./mkinstalldirs $RPM_BUILD_ROOT/%{_lib}
|
||||||
|
pushd $RPM_BUILD_ROOT%{_libdir}
|
||||||
|
for name in glib gobject gmodule gthread; do
|
||||||
|
mv lib${name}-2.0.so.* ../../%{_lib}
|
||||||
|
ln -sf ../../%{_lib}/lib${name}-2.0.so.*.* lib${name}-2.0.so
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
## glib2.sh and glib2.csh
|
## glib2.sh and glib2.csh
|
||||||
./mkinstalldirs $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
./mkinstalldirs $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
||||||
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
||||||
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{libdir}/*.la
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
|
|
||||||
%find_lang glib20
|
%find_lang glib20
|
||||||
|
|
||||||
@ -100,7 +104,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
%{libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
%{_libdir}/glib-2.0
|
%{_libdir}/glib-2.0
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_datadir}/aclocal/*
|
%{_datadir}/aclocal/*
|
||||||
@ -112,9 +116,13 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files static
|
%files static
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
%{libdir}/lib*.a
|
%{_libdir}/lib*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 9 2007 Matthias Clasen <mclasen@redhat.com> - 2.12.9-4
|
||||||
|
- More package review demands:
|
||||||
|
* keep all -devel content in /usr/lib
|
||||||
|
|
||||||
* Sun Feb 4 2007 Matthias Clasen <mclasen@redhat.com> - 2.12.9-3
|
* Sun Feb 4 2007 Matthias Clasen <mclasen@redhat.com> - 2.12.9-3
|
||||||
- More package review feedback:
|
- More package review feedback:
|
||||||
* install /etc/profile.d snipplets as 644
|
* install /etc/profile.d snipplets as 644
|
||||||
|
Loading…
Reference in New Issue
Block a user