Mailinglist Archive: opensuse-commit (1421 mails)

< Previous Next >
commit acpiw
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Tue, 06 May 2008 18:47:33 +0200
  • Message-id: <20080506164733.4DBF267816D@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package acpiw
checked in at Tue May 6 18:47:33 CEST 2008.


--------
--- acpiw/acpiw.changes 2006-02-19 16:46:41.000000000 +0100
+++ /mounts/work_src_done/STABLE/acpiw/acpiw.changes 2008-05-06
07:26:20.000000000 +0200
@@ -1,0 +2,6 @@
+Tue May 6 07:25:04 CEST 2008 - crrodriguez@xxxxxxx
+
+- fix for Feature No 300498 , use RPM_OPT_FLAGS everywhere.
+- correct linking order and link "as-needed"
+
+-------------------------------------------------------------------



New:
----
acpiw-0.75-optflags.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ acpiw.spec ++++++
--- /var/tmp/diff_new_pack.fS1703/_old 2008-05-06 18:46:58.000000000 +0200
+++ /var/tmp/diff_new_pack.fS1703/_new 2008-05-06 18:46:58.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package acpiw (Version 0.75)
#
-# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -10,19 +10,21 @@

# norootforbuild

+
Name: acpiw
BuildRequires: glib2-devel gtk2-devel update-desktop-files
-URL: http://www.heise.de/ct/ftp/02/25/234/
+Url: http://www.heise.de/ct/ftp/02/25/234/
Version: 0.75
-Release: 400
-License: GPL
+Release: 566
+License: GPL v2 or later
Group: System/Monitoring
-Autoreqprov: on
+AutoReqProv: on
Summary: ACPI Watch: GUI and CLI for Watching /proc/acpi/*
Source: %{name}-%{version}.tar.bz2
Source1: gtkacpiw.desktop
Patch0: %{name}-%{version}.dif
Patch1: %{name}-null.patch
+Patch2: acpiw-0.75-optflags.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build

%description
@@ -43,12 +45,13 @@
%setup -q
%patch
%patch1 -p1
+%patch2

%build
-make EXTRA_CFLAGS="$RPM_OPT_FLAGS"
+export CFLAGS="%optflags"
+make

%install
-[ "%{buildroot}" != "/" ] && [ -d %{buildroot} ] && rm -rf %{buildroot}
install -Dm 755 acpiw %{buildroot}/usr/bin/acpiw
install -Dm 755 gtkacpiw %{buildroot}/usr/bin/gtkacpiw
install -Dm 644 README %{buildroot}/%{_docdir}/%{name}/README
@@ -62,16 +65,19 @@
/usr/share/applications/gtkacpiw.desktop
%doc %{_docdir}/%{name}

-%changelog -n acpiw
-* Sun Feb 19 2006 - aj@xxxxxxx
+%changelog
+* Tue May 06 2008 crrodriguez@xxxxxxx
+- fix for Feature No 300498 , use RPM_OPT_FLAGS everywhere.
+- correct linking order and link "as-needed"
+* Sun Feb 19 2006 aj@xxxxxxx
- Reduce BuildRequires.
-* Wed Jan 25 2006 - mls@xxxxxxx
+* Wed Jan 25 2006 mls@xxxxxxx
- converted neededforbuild to BuildRequires
-* Sat Feb 05 2005 - meissner@xxxxxxx
+* Sat Feb 05 2005 meissner@xxxxxxx
- fixed gtk / glib NULL terminated args
-* Sat Jan 10 2004 - adrian@xxxxxxx
+* Sat Jan 10 2004 adrian@xxxxxxx
- build as user
-* Sat Aug 16 2003 - adrian@xxxxxxx
+* Sat Aug 16 2003 adrian@xxxxxxx
- add desktop file
-* Sat Feb 08 2003 - zoz@xxxxxxx
+* Sat Feb 08 2003 zoz@xxxxxxx
- initial package: version 0.75

++++++ acpiw-0.75-optflags.patch ++++++
Index: Makefile
===================================================================
--- Makefile.orig 2002-11-24 18:45:33.000000000 +0100
+++ Makefile 2008-05-06 07:20:36.000000000 +0200
@@ -15,18 +15,18 @@ OTHER = acpi_on Makefile HISTORY TODO RE
OLD_DIR = old

CC = gcc
-CFLAGS = -g -Wall
+CFLAGS += -g -Wall
GUI_CFLAGS = `pkg-config gtk+-2.0 --cflags`
-LDFLAGS = -g -Wall
+LDFLAGS = -Wl,--as-needed
GUI_LDFLAGS = `pkg-config gtk+-2.0 --libs`

all : gui text

gui : $(OBJ) $(GUI_OBJ)
- $(CC) $(LDFLAGS) $(GUI_LDFLAGS) -o gtkacpiw $(OBJ) $(GUI_OBJ)
+ $(CC) $(LDFLAGS) $(OBJ) $(GUI_OBJ) $(GUI_LDFLAGS) -o gtkacpiw

text : $(OBJ) $(TEXT_OBJ)
- $(CC) $(LDFLAGS) -o acpiw $(OBJ) $(TEXT_OBJ)
+ $(CC) $(LDFLAGS) $(OBJ) $(TEXT_OBJ) -o acpiw

$(OBJ) : $(H) $(C)
$(CC) $(CFLAGS) -c $(C)


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages