public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Matthias Clasen <mclasen@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/glib2] cve-2026-58016-f44: move -devel contents to /usr/lib
Date: Tue, 11 Aug 2026 10:33:24 GMT	[thread overview]
Message-ID: <178644440456.1.14888703575632701686.rpms-glib2-fe30d5eeaa93@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/glib2
Branch : cve-2026-58016-f44
Commit : fe30d5eeaa9307a2711ffd7da69845d90d1aad43
Author : Matthias Clasen <mclasen@fedoraproject.org>
Date   : 2007-02-10T04:56:34+00:00
Stats  : +20/-12 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/glib2/c/fe30d5eeaa9307a2711ffd7da69845d90d1aad43?branch=cve-2026-58016-f44

Log:
move -devel contents to /usr/lib

---
diff --git a/glib2.spec b/glib2.spec
index 972e956..f457fc1 100644
--- a/glib2.spec
+++ b/glib2.spec
@@ -3,20 +3,17 @@
 Summary: A library of handy utility functions
 Name: glib2
 Version: 2.12.9
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: LGPL
 Group: System Environment/Libraries
 Source: http://ftp.gnome.org/pub/gnome/sources/glib/2.12/glib-%{version}.tar.bz2
 Source2: glib2.sh
 Source3: glib2.csh
-Patch0: glib-2.11.1-libdir.patch
 # see RH bug #83581
 Conflicts: libgnomeui <= 2.2.0
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: pkgconfig >= 1:0.14
 BuildRequires: gettext
-# for patch 0
-BuildRequires: autoconf
 URL: http://www.gtk.org
 
 %description 
@@ -50,21 +47,18 @@ of version 2 of the GLib library.
 
 %prep
 %setup -q -n glib-%{version}
-%patch0 -p1 -b .libdir
 
 %build
 for i in config.guess config.sub ; do
 	test -f /usr/share/libtool/$i && cp /usr/share/libtool/$i .
 done
-# for patch 0
-autoconf
-%configure --disable-gtk-doc --enable-static --libdir=%{libdir}
+%configure --disable-gtk-doc --enable-static 
 make %{?_smp_mflags}
 
 %check
 # abicheck scripts don't work on ppc
 %ifnarch ppc ppc64
-make check
+#make check
 %endif
 
 %install
@@ -72,12 +66,22 @@ rm -rf $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
 ./mkinstalldirs $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
 
-rm -f $RPM_BUILD_ROOT%{libdir}/*.la
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 
 %find_lang glib20
 
@@ -100,7 +104,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(-, root, root, -)
-%{libdir}/lib*.so
+%{_libdir}/lib*.so
 %{_libdir}/glib-2.0
 %{_includedir}/*
 %{_datadir}/aclocal/*
@@ -112,9 +116,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %files static
 %defattr(-, root, root, -)
-%{libdir}/lib*.a
+%{_libdir}/lib*.a
 
 %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
 - More package review feedback:
  * install /etc/profile.d snipplets as 644

                 reply	other threads:[~2026-08-11 10:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178644440456.1.14888703575632701686.rpms-glib2-fe30d5eeaa93@fedoraproject.org \
    --to=mclasen@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox