- Revert rpath change; Fedora's libtool is supposed to not generate them
for system paths. - Add changes to spec file to support being built from snapshot as well as "make dist"-ball. This includes BuildRequires and autogen.sh handling, and gtk-doc enabling if we're bootstrapping.
This commit is contained in:
parent
9ac6cf9f5e
commit
b388bdb3b0
20
glib2.spec
20
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.25.10
|
Version: 2.25.10
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://www.gtk.org
|
URL: http://www.gtk.org
|
||||||
@ -20,9 +20,9 @@ BuildRequires: libselinux-devel
|
|||||||
# for sys/inotify.h
|
# for sys/inotify.h
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
# Bootstrap build requirements
|
||||||
BuildRequires: automake autoconf libtool
|
BuildRequires: automake autoconf libtool
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
BuildRequires: chrpath
|
|
||||||
|
|
||||||
# required for GIO content-type support
|
# required for GIO content-type support
|
||||||
Requires: shared-mime-info
|
Requires: shared-mime-info
|
||||||
@ -59,9 +59,11 @@ The glib2-static package includes static libraries of the GLib library.
|
|||||||
%patch0 -p1 -b .free-mismatch
|
%patch0 -p1 -b .free-mismatch
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-gtk-doc \
|
# Support builds of both git snapshots and tarballs packed with autogoo
|
||||||
--enable-static \
|
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
|
||||||
--with-runtime-libdir=../../%{_lib}
|
%configure $CONFIGFLAGS \
|
||||||
|
--enable-static \
|
||||||
|
--with-runtime-libdir=../../%{_lib})
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -73,7 +75,6 @@ awk '/^Overview of Changes/ { seen+=1 }
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
(cd $RPM_BUILD_ROOT; find | while read f; do if file $f | grep -q ': ELF .*executable,'; then chrpath --delete $f; fi; done)
|
|
||||||
|
|
||||||
## glib2.sh and glib2.csh
|
## glib2.sh and glib2.csh
|
||||||
./mkinstalldirs $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
./mkinstalldirs $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
||||||
@ -161,6 +162,13 @@ gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
|
|||||||
%{_libdir}/lib*.a
|
%{_libdir}/lib*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 28 2010 Colin Walters <walters@verbum.org> - 2.25.10-3
|
||||||
|
- Revert rpath change; Fedora's libtool is supposed to not generate
|
||||||
|
them for system paths.
|
||||||
|
- Add changes to spec file to support being built from snapshot as
|
||||||
|
well as "make dist"-ball. This includes BuildRequires and autogen.sh
|
||||||
|
handling, and gtk-doc enabling if we're bootstrapping.
|
||||||
|
|
||||||
* Sun Jun 27 2010 Matthias Clasen <mclasen@redhat.com> - 2.25.10-2
|
* Sun Jun 27 2010 Matthias Clasen <mclasen@redhat.com> - 2.25.10-2
|
||||||
- Fix an evince crash
|
- Fix an evince crash
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user