Hello community,
here is the log from the commit of package simias for openSUSE:Factory
checked in at Thu Mar 18 12:08:45 CET 2010.
--------
--- simias/simias.changes 2009-10-16 09:46:27.000000000 +0200
+++ /mounts/work_src_done/STABLE/simias/simias.changes 2009-10-22 12:09:44.000000000 +0200
@@ -1,0 +2,19 @@
+Thu Oct 22 09:54:52 UTC 2009 - aj@suse.de
+
+- Fix code to produce less compile warnings.
+
+-------------------------------------------------------------------
+Thu Oct 22 09:01:34 UTC 2009 - aj@suse.de
+
+- Fix permissions of config files and mark them as such.
+- SimiasDirectoryMapping is a config file, move it to default place
+ (DEFAULT_LINUX_MAPPING_DIR is /etc/simias).
+
+-------------------------------------------------------------------
+Wed Oct 21 20:10:34 UTC 2009 - aj@suse.de
+
+- Add simias-make.patch to build libsimias-manager as
+ shared library and to use RPM_OPT_FLAGS for all files.
+- Add -devel package for distros after 11.2.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
New:
----
simias-make.patch
simias-warnings.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ simias.spec ++++++
--- /var/tmp/diff_new_pack.C8F1b6/_old 2010-03-18 12:08:27.000000000 +0100
+++ /var/tmp/diff_new_pack.C8F1b6/_new 2010-03-18 12:08:27.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package simias (Version 1.8.2.9141.1)
#
-# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
Url: http://www.ifolder.com
%define prefix /usr
%define sysconfdir /etc
-License: GPL v2 only
+License: GPLv2
Group: System/Libraries
AutoReqProv: on
Requires: mono-core >= 1.2.2
@@ -34,7 +34,7 @@
Requires: xsp >= 1.2.5
#Obsoletes: %{name} < 1.8.2.9141.1
Version: 1.8.2.9141.1
-Release: 11
+Release: 12
Summary: Collection-Oriented Data Storage
Source: simias.tar.gz
Patch: Simias.cs.patch
@@ -42,6 +42,8 @@
Patch2: simias-libflaim.patch
Patch3: simias-fixes.patch
Patch4: simias-buildfix.patch
+Patch5: simias-make.patch
+Patch6: simias-warnings.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#=============================================================================
@@ -51,7 +53,21 @@
is the underlying data store for the iFolder project, although it has
potential to do much more.
+%if 0%{suse_version} > 1120
+%package devel
+License: GPLv2
+Summary: Development files for simias
+Group: Development/Libraries/C and C++
+Requires: %{name} = %{version}
+
+%description devel
+Development files for simias. Simias is a technology that will allow
+various types of data to be stored and related in what is known as a
+collection. Initially Simias is the underlying data store for the
+iFolder project, although it has potential to do much more.
+
+%endif
%prep
export BUILDNUM=%{buildnum}
@@ -65,6 +81,8 @@
%patch3 -p1
popd
%patch4
+%patch5
+%patch6
#=============================================================================
%build
@@ -73,6 +91,8 @@
export CXX=g++-4.3
export BUILDNUM=%{buildnum}
export LIBDIR=%{_lib}
+export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
+export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
./autogen.sh --prefix=%{prefix} --with-runasclient --sysconfdir=%{sysconfdir}
## re-added from code10 (begin)
rm dependencies/external/tools/gsoap/linux-2.7/soapcpp2
@@ -97,6 +117,7 @@
find $RPM_BUILD_ROOT/%{prefix}/* -type f | xargs chmod 644
find $RPM_BUILD_ROOT/%{prefix}/* -type d | xargs chmod 755
chmod a+x $RPM_BUILD_ROOT/%{prefix}/%_lib/simias/web/bin/ifdata
+mv $RPM_BUILD_ROOT/%{_bindir}/SimiasDirectoryMapping $RPM_BUILD_ROOT/%{sysconfdir}/simias
# COPYING goes to usr/src/packages/simias
rm -rf $RPM_BUILD_ROOT/%{prefix}/share/simias/
#=============================================================================
@@ -123,22 +144,31 @@
%doc COPYING
%attr(755,root,root) %{prefix}/bin/*
%dir %{sysconfdir}/simias
-%{sysconfdir}/simias/Simias.config
-%{sysconfdir}/simias/Simias.log4net
-%{sysconfdir}/simias/defaults.config
-%{prefix}/%_lib/pkgconfig/*
-%{prefix}/%_lib/libFlaimWrapper.so
+%attr(644,root,root) %config %{sysconfdir}/simias/Simias.config
+%attr(644,root,root) %config %{sysconfdir}/simias/Simias.log4net
+%attr(644,root,root) %config %{sysconfdir}/simias/defaults.config
+%attr(644,root,root) %config %{sysconfdir}/simias/SimiasDirectoryMapping
%{prefix}/%_lib/libFlaimWrapper.so.0
%{prefix}/%_lib/libFlaimWrapper.so.0.0.0
-%{prefix}/%_lib/libsimias-event.so
%{prefix}/%_lib/libsimias-event.so.0
%{prefix}/%_lib/libsimias-event.so.0.0.0
-%{prefix}/%_lib/libsimias-manager.a
-%{prefix}/%_lib/libsimias.so
+%{prefix}/%_lib/libsimias-manager.so.0
+%{prefix}/%_lib/libsimias-manager.so.0.0.0
%{prefix}/%_lib/libsimias.so.0
%{prefix}/%_lib/libsimias.so.0.0.0
%dir %{prefix}/%_lib/simias
%{prefix}/%_lib/simias/*
+
+%if 0%{suse_version} > 01120
+
+%files devel
+%defattr(-,root,root)
+%endif
+%{prefix}/%_lib/libFlaimWrapper.so
+%{prefix}/%_lib/libsimias-event.so
+%{prefix}/%_lib/libsimias-manager.so
+%{prefix}/%_lib/libsimias.so
+%{prefix}/%_lib/pkgconfig/*
%dir %{prefix}/include/simias/
%{prefix}/include/simias/*
++++++ simias-make.patch ++++++
Index: src/core/SimiasClient/libsimias-manager/Makefile.am
===================================================================
--- src/core/SimiasClient/libsimias-manager/Makefile.am.orig
+++ src/core/SimiasClient/libsimias-manager/Makefile.am
@@ -48,9 +48,9 @@ endif
else
-lib_LIBRARIES = libsimias-manager.a
+lib_LTLIBRARIES = libsimias-manager.la
-libsimias_manager_a_SOURCES = simias-manager.c \
+libsimias_manager_la_SOURCES = simias-manager.c \
simias-manager.h
pkginclude_HEADERS = \
@@ -58,13 +58,11 @@ pkginclude_HEADERS = \
if LINUX
-libsimias_manager_a_CXXFLAGS = -c
+libsimias_manager_la_CXXFLAGS = -c
-install-exec-local: libsimias-manager.a
- $(mkinstalldirs) $(DESTDIR)$(libdir)
-
-uninstall-local:
- cd $(DESTDIR)$(libdir); rm -f libsimias-manager.a
+install-exec-hook:
+ rm -f $(DESTDIR)$(libdir)/libsimias-manager.a
+ rm -f $(DESTDIR)$(libdir)/libsimias-manager.la
endif
Index: src/core/SimiasClient/simias-client-c.pc.in
===================================================================
--- src/core/SimiasClient/simias-client-c.pc.in.orig
+++ src/core/SimiasClient/simias-client-c.pc.in
@@ -10,6 +10,6 @@ exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@prefix@/include/simias
-Libs:-Wl,-rpath,${libdir} -L${libdir} -lsimias -lsimias-event ${libdir}/libsimias-manager.a
+Libs:-Wl,-rpath,${libdir} -L${libdir} -lsimias -lsimias-event -lsimias-manager
Cflags: -I${includedir}
Index: src/core/libsimias/Makefile.am
===================================================================
--- src/core/libsimias/Makefile.am.orig
+++ src/core/libsimias/Makefile.am
@@ -11,8 +11,6 @@ dist-hook:
lib_LTLIBRARIES = libsimias.la
-override CFLAGS =
-
libsimias_la_SOURCES = \
envC.c simiasClientLib.c stdsoap2.c simias.c simias.h simiasweb.c simiasweb.h
Index: src/core/SimiasClient/libsimias-event/Makefile.am
===================================================================
--- src/core/SimiasClient/libsimias-event/Makefile.am.orig
+++ src/core/SimiasClient/libsimias-event/Makefile.am
@@ -1,8 +1,5 @@
lib_LTLIBRARIES = libsimias-event.la
-# Override CFLAGS so that -nologo and -W3 are NOT included
-override CFLAGS =
-
libsimias_event_la_SOURCES = \
simias-event-client.c simias-event-client.h
@@ -14,7 +11,7 @@ libsimias_event_la_CFLAGS = \
$(XML2_CFLAGS) -DDARWIN
else
libsimias_event_la_CFLAGS = \
- $(XML2_CFLAGS)
+ $(XML2_CFLAGS) $(CFLAGS_OPTIMIZE)
endif
if !WINDOWS
++++++ simias-warnings.patch ++++++
Index: src/core/SimiasClient/libsimias-event/simias-event-client.c
===================================================================
--- src/core/SimiasClient/libsimias-event/simias-event-client.c.orig
+++ src/core/SimiasClient/libsimias-event/simias-event-client.c
@@ -47,6 +47,8 @@
#include