package review feedback
This commit is contained in:
parent
722cc21e39
commit
e91a444f8b
42
glib2.spec
42
glib2.spec
@ -3,7 +3,7 @@
|
|||||||
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: 1%{?dist}
|
Release: 2%{?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
|
||||||
@ -13,11 +13,10 @@ Patch0: glib-2.11.1-libdir.patch
|
|||||||
|
|
||||||
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 >= 0.8
|
BuildRequires: pkgconfig >= 1:0.14
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
# for patch 0
|
# for patch 0
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
Obsoletes: glib-gtkbeta
|
|
||||||
URL: http://www.gtk.org
|
URL: http://www.gtk.org
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -30,10 +29,9 @@ object system.
|
|||||||
This package provides version 2 of GLib.
|
This package provides version 2 of GLib.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: The GIMP ToolKit (GTK+) and GIMP Drawing Kit (GDK) support library
|
Summary: A library of handy utility functions
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Obsoletes: glib-gtkbeta-devel
|
Requires: pkgconfig >= 1:0.14
|
||||||
Requires: pkgconfig >= 1:0.8
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Conflicts: glib-devel <= 1:1.2.8
|
Conflicts: glib-devel <= 1:1.2.8
|
||||||
|
|
||||||
@ -41,6 +39,16 @@ Conflicts: glib-devel <= 1:1.2.8
|
|||||||
The glib2-devel package includes the header files for
|
The glib2-devel package includes the header files for
|
||||||
version 2 of the GLib library.
|
version 2 of the GLib library.
|
||||||
|
|
||||||
|
# anaconda needs static GLib libraries
|
||||||
|
%package static
|
||||||
|
Summary: A library of handy utility functions
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name}-devel = %{version}-%{release}
|
||||||
|
|
||||||
|
%description static
|
||||||
|
The glib2-static package includes static libraries
|
||||||
|
of version 2 of the GLib library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n glib-%{version}
|
%setup -q -n glib-%{version}
|
||||||
%patch0 -p1 -b .libdir
|
%patch0 -p1 -b .libdir
|
||||||
@ -52,9 +60,10 @@ done
|
|||||||
# for patch 0
|
# for patch 0
|
||||||
autoconf
|
autoconf
|
||||||
%configure --disable-gtk-doc --enable-static --libdir=%{libdir}
|
%configure --disable-gtk-doc --enable-static --libdir=%{libdir}
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
# abicheck scripts don't work on ppc
|
||||||
%ifnarch ppc ppc64
|
%ifnarch ppc ppc64
|
||||||
make check
|
make check
|
||||||
%endif
|
%endif
|
||||||
@ -65,7 +74,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
## glib2.sh and glib2.csh
|
## glib2.sh and glib2.csh
|
||||||
./mkinstalldirs $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
||||||
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
||||||
install -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
install -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
||||||
|
|
||||||
@ -81,7 +89,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -f glib20.lang
|
%files -f glib20.lang
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root, -)
|
||||||
|
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
||||||
%{libdir}/libglib-2.0.so.*
|
%{libdir}/libglib-2.0.so.*
|
||||||
@ -91,11 +99,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_sysconfdir}/profile.d/*
|
%{_sysconfdir}/profile.d/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root, -)
|
||||||
|
|
||||||
%{libdir}/lib*.so
|
%{libdir}/lib*.so
|
||||||
# we need the static library here
|
|
||||||
%{libdir}/lib*.a
|
|
||||||
%{_libdir}/glib-2.0
|
%{_libdir}/glib-2.0
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_datadir}/aclocal/*
|
%{_datadir}/aclocal/*
|
||||||
@ -105,7 +110,18 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
|
%files static
|
||||||
|
%defattr(-, root, root, -)
|
||||||
|
%{libdir}/lib*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Feb 3 2007 Matthias Clasen <mclasen@redhat.com> - 2.12.9-2
|
||||||
|
- Incorporate package review feedback:
|
||||||
|
* drop an obsolete Provides:
|
||||||
|
* add a -static subpackage
|
||||||
|
* explain %%check ppc exception
|
||||||
|
* align summaries
|
||||||
|
|
||||||
* Tue Jan 16 2007 Matthias Clasen <mclasen@redhat.com> - 2.12.9-1
|
* Tue Jan 16 2007 Matthias Clasen <mclasen@redhat.com> - 2.12.9-1
|
||||||
- Update to 2.12.9
|
- Update to 2.12.9
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user