2009-01-08 Christian Kelly <
[email protected]>
* SUNWlibunique.spec, patches/libunique-01-Wall.diff: Add libunique, as
nautilus now needs it.
--- a/ChangeLog Thu Jan 08 10:05:41 2009 +0000
+++ b/ChangeLog Thu Jan 08 11:07:55 2009 +0000
@@ -1,3 +1,8 @@
+2009-01-08 Christian Kelly <[email protected]>
+
+ * SUNWlibunique.spec, patches/libunique-01-Wall.diff: Add libunique, as
+ nautilus now needs it.
+
2009-01-08 Christian Kelly <[email protected]>
* base-specs/gtk2.spec: Remove reference to patch14.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/SUNWlibunique.spec Thu Jan 08 11:07:55 2009 +0000
@@ -0,0 +1,64 @@
+#
+# spec file for package SUNWlibunique
+#
+
+%include Solaris.inc
+%include default-depend.inc
+%define source_name unique
+
+Name: SUNWlibunique
+Summary: Library for single instance applications
+Version: 1.0.6
+SUNW_BaseDir: %{_basedir}
+SUNW_Copyright: %{name}.copyright
+Source: http://www.gnome.org/~ebassi/source/%{source_name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+URL: http://live.gnome.org/LibUnique
+Patch1: libunique-01-Wall.diff
+
+#Requires: SUNWgnome-xml-root
+#Requires: SUNWgnome-common-devel
+
+%prep
+rm -rf %name-%version
+mkdir %name-%version
+
+%setup -c -n %{name}-%{version}
+cd %{_builddir}/%name-%version/%{source_name}-%{version}
+ls `pwd`
+pwd
+%patch1 -p1
+
+%build
+cd %{_builddir}/%name-%version/%{source_name}-%{version}
+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+ CPUS=1
+fi
+
+./configure --prefix=%{_prefix} --mandir=%{_mandir} \
+ --libdir=%{_libdir} \
+ --libexecdir=%{_libexecdir} \
+ --sysconfdir=%{_sysconfdir}
+
+make -j$CPUS
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cd %{_builddir}/%name-%version/%{source_name}-%{version}
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, bin)
+%dir %attr (0755, root, sys) %{_datadir}
+%{_datadir}/gtk-doc/html/unique/*
+%{_includedir}/unique-1.0/unique/*
+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
+#%{_libdir}/pkgconfig/unique-1.0.pc
+#%{_libdir}/*
+%{_libdir}/libunique*
+%{_libdir}/pkgconfig/unique-1.0.pc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/libunique-01-Wall.diff Thu Jan 08 11:07:55 2009 +0000
@@ -0,0 +1,15 @@
+diff -ruN unique-1.0.6.orig/configure.ac unique-1.0.6/configure.ac
+--- unique-1.0.6.orig/configure.ac 2009-01-08 10:39:38.957414534 +0000
++++ unique-1.0.6/configure.ac 2009-01-08 10:39:50.946333740 +0000
+@@ -111,9 +111,9 @@
+ enable_maintainer_flags=maintainer_flags_default)
+
+ if test "x$enable_maintainer_flags" = "xyes"; then
+- CPPFLAGS="$CPPFLAGS -Werror -Wall -Wshadow -Wcast-align -Wno-uninitialized"
++ CPPFLAGS="$CPPFLAGS -Werror -Wshadow -Wcast-align -Wno-uninitialized"
+ else
+- CPPFLAGS="-g -Wall"
++ CPPFLAGS="-g"
+ fi
+
+ # enable debug flags and symbols