2009-07-28 Alfred Peng <
[email protected]>
* SFEmenu-cache.spec: Added for LXDE.
* patches/menu-cache-01-Werror.diff: Added.
--- a/ChangeLog Mon Jul 27 13:48:27 2009 +0000
+++ b/ChangeLog Tue Jul 28 06:40:02 2009 +0000
@@ -1,3 +1,8 @@
+2009-07-28 Alfred Peng <[email protected]>
+
+ * SFEmenu-cache.spec: Added for LXDE.
+ * patches/menu-cache-01-Werror.diff: Added.
+
2009-07-27 Gilles Dauphin
* SFEopenal.spec: install with DESTDIR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/SFEmenu-cache.spec Tue Jul 28 06:40:02 2009 +0000
@@ -0,0 +1,65 @@
+#
+# spec file for package SFEmenu-cache
+#
+# includes module(s): menu-cache
+#
+%include Solaris.inc
+
+Name: SFEmenu-cache
+Summary: LXDE menu cache
+Version: 0.2.4
+Source: http://downloads.sourceforge.net/lxde/menu-cache-%{version}.tar.gz
+URL: http://sourceforge.net/projects/lxde/
+
+# owner:alfred date:2009-03-13 type:bug
+Patch1: menu-cache-01-Werror.diff
+
+SUNW_BaseDir: %{_basedir}
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+%include default-depend.inc
+
+%prep
+%setup -q -n menu-cache-%version
+%patch1 -p1
+
+%build
+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+ CPUS=1
+fi
+
+export LDFLAGS="-lsocket"
+
+autoconf
+./configure --prefix=%{_prefix} --libdir=%{_libdir} --libexecdir=%{_libexecdir}
+make -j$CPUS
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+rm -rf $RPM_BUILD_ROOT/%{_libdir}/*a
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*.so*
+%{_libdir}/menu-cached
+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
+%{_libdir}/pkgconfig/*
+%dir %attr (0755, root, bin) %{_includedir}
+%{_includedir}/*
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, bin) %{_datadir}/man
+%{_datadir}/man/*
+
+%changelog
+* Tue Jul 28 2009 - [email protected]
+- Bump to 0.2.4
+* Mon Mar 16 2009 - [email protected]
+- Initial version
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/menu-cache-01-Werror.diff Tue Jul 28 06:40:02 2009 +0000
@@ -0,0 +1,60 @@
+--- menu-cache-0.2.2/menu-cache-gen/Makefile.am.orig 2009-03-13 00:07:36.049956094 +0800
++++ menu-cache-0.2.2/menu-cache-gen/Makefile.am 2009-03-13 00:08:07.044465690 +0800
+@@ -7,7 +7,6 @@
+ $(MONITOR_CFLAGS) \
+ $(DEBUG_CFLAGS) \
+ $(WARN_CFLAGS) \
+- -Werror-implicit-function-declaration \
+ $(NULL)
+
+ bin_PROGRAMS = menu-cache-gen
+--- menu-cache-0.2.2/menu-cache-daemon/Makefile.in.orig 2009-03-13 00:11:01.664774827 +0800
++++ menu-cache-0.2.2/menu-cache-daemon/Makefile.in 2009-03-13 00:11:39.273738026 +0800
+@@ -192,7 +192,6 @@
+ $(DEBUG_CFLAGS) \
+ $(WARN_CFLAGS) \
+ -DBINDIR=\"$(bindir)\" \
+- -Werror-implicit-function-declaration \
+ $(NULL)
+
+ menu_cached_SOURCES = \
+--- menu-cache-0.2.2/menu-cache-gen/Makefile.in.orig 2009-03-13 00:11:08.069214225 +0800
++++ menu-cache-0.2.2/menu-cache-gen/Makefile.in 2009-03-13 00:12:02.814650364 +0800
+@@ -198,7 +198,6 @@
+ $(MONITOR_CFLAGS) \
+ $(DEBUG_CFLAGS) \
+ $(WARN_CFLAGS) \
+- -Werror-implicit-function-declaration \
+ $(NULL)
+
+ menu_cache_gen_SOURCES = \
+--- menu-cache-0.2.4/libmenu-cache/Makefile.am.orig 2009-07-28 12:09:38.140740492 +0800
++++ menu-cache-0.2.4/libmenu-cache/Makefile.am 2009-07-28 12:09:44.659178487 +0800
+@@ -3,7 +3,6 @@
+ INCLUDES = \
+ $(GLIB_CFLAGS) \
+ $(MONITOR_CFLAGS) \
+- -Werror-implicit-function-declaration \
+ -DMENUCACHED_LIBEXECDIR="\"$(libexecdir)\"" \
+ $(NULL)
+
+--- menu-cache-0.2.4/menu-cache-daemon/Makefile.am.orig 2009-07-28 12:10:17.650876282 +0800
++++ menu-cache-0.2.4/menu-cache-daemon/Makefile.am 2009-07-28 12:10:21.853390268 +0800
+@@ -9,7 +9,6 @@
+ $(DEBUG_CFLAGS) \
+ $(WARN_CFLAGS) \
+ -DBINDIR=\"$(bindir)\" \
+- -Werror-implicit-function-declaration \
+ $(NULL)
+
+ libexec_PROGRAMS = menu-cached
+--- menu-cache-0.2.4/libmenu-cache/Makefile.in.orig 2009-07-28 12:10:50.514163077 +0800
++++ menu-cache-0.2.4/libmenu-cache/Makefile.in 2009-07-28 12:10:55.491805528 +0800
+@@ -205,7 +205,6 @@
+ INCLUDES = \
+ $(GLIB_CFLAGS) \
+ $(MONITOR_CFLAGS) \
+- -Werror-implicit-function-declaration \
+ -DMENUCACHED_LIBEXECDIR="\"$(libexecdir)\"" \
+ $(NULL)
+