File simias.spec of Package simias

#
# spec file for package simias (Version 1.8.2.9141.1)
#
# Copyright (c) 2009 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           simias
BuildRequires:  bison dos2unix e2fsprogs e2fsprogs-devel flex gcc-c++ gconf2 glib2 glib2-devel libflaim libflaim-devel libxml2 libxml2-devel log4net mono-core mono-data mono-devel mono-web ncurses-devel pkgconfig xsp
%define buildnum 9141
Url:            http://www.ifolder.com
%define prefix /usr
%define sysconfdir /etc
License:        GPL v2 only
Group:          System/Libraries
AutoReqProv:    on
Requires:       mono-core >= 1.2.2
Requires:       mono-data >= 1.2.2
Requires:       mono-web >= 1.2.2
Requires:       log4net >= 1.2.9
Requires:       xsp >= 1.2.5
#Obsoletes:      %{name} < 1.8.2.9141.1
Version:        1.8.2.9141.1
Release:        3.<RELEASE2>
Summary:        Collection-Oriented Data Storage
Source:         simias.tar.gz
Patch:          Simias.cs.patch
Patch1:         simias-lib64.patch
Patch2:         simias-libflaim.patch
Patch3:         simias-fixes.patch
Patch4:         simias-buildfix.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#=============================================================================

%description
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.



%prep
export BUILDNUM=%{buildnum}
%setup -n %{name}
%if %{suse_version} > 1110
%patch -p1
%endif
%patch1
%patch2
pushd dependencies/external
%patch3 -p1
popd
%patch4 
#=============================================================================

%build
export BUILDNUM=%{buildnum}
export LIBDIR=%{_lib}
./autogen.sh --prefix=%{prefix} --with-runasclient --sysconfdir=%{sysconfdir}
## re-added from code10 (begin)
rm dependencies/external/tools/gsoap/linux-2.7/soapcpp2
rm dependencies/external/tools/gsoap/linux-2.7/wsdl2h
pushd dependencies/external/tools/gsoap/linux-2.7
        cd src
                make -f MakefileMacOSX COFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" LIBS=""
                cp soapcpp2 ..
        cd ..
        cd wsdl
                make -f MakefileSolaris COFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" LIBS="-lnsl"
        cd ..
popd
## re-added from code10 (end)
make
#make dist
#=============================================================================

%install
export BUILDNUM=%{buildnum}
%{__rm} -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
find $RPM_BUILD_ROOT/%{prefix}/* -type f | xargs chmod 644
find $RPM_BUILD_ROOT/%{prefix}/* -type d | xargs chmod 755
#=============================================================================

%clean
%{__rm} -rf $RPM_BUILD_ROOT
#=============================================================================

%post
#=============================================================================

%preun
if [ -d %{prefix}/%_lib/simias/web/bin/\$\{HOME\}/ ]
then
        rm -rf %{prefix}/%_lib/simias/web/bin/\$\{HOME\}/
fi
if [ -d %{prefix}/%_lib/simias/web/bin/\$\{APPDATA\}/ ]
then
        rm -rf %{prefix}/%_lib/simias/web/bin/\$\{APPDATA\}/
fi
#=============================================================================

%postun
#=============================================================================

%files
%defattr(755,root,root)
%{prefix}/bin/*
%dir %{sysconfdir}/simias
%{sysconfdir}/simias/Simias.config
%{sysconfdir}/simias/Simias.log4net
%{sysconfdir}/simias/defaults.config
%{prefix}/include/*
%{prefix}/%_lib/pkgconfig/*
%{prefix}/%_lib/libFlaimWrapper.so
%{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.so.0
%{prefix}/%_lib/libsimias.so.0.0.0
%dir %{prefix}/%_lib/simias
%{prefix}/%_lib/simias/*
%{prefix}/share/*
%attr(644,root,root) %{prefix}/include/simias/*

%changelog
* Tue Jun 02 2009 sbipin@novell.com
- #507245 : Updated with GPL v2 license text file
- #506097 : Removed a "./" from file list in configure. This reduced
  the warnings in build process.
- #492733 : Fixed the sync problem with Chinese characters.
- #507461 : Cleaned up Windows & Mac sources from tarball.
- Applied patch to build only linux sources.
* Mon May 25 2009 ro@suse.de
- build helper binaries soapcpp2 and wsdl2h from source
  to allow all platforms. Fixed the function return warnings.
  (from may 2006)
- link libflaim dynaimcally (from feb 2006)
- fix lib64 hack in configure.in
* Fri May 22 2009 sbipin@novell.com
- Removed empty changelog entry from last submission.
- Renamed Simias.cs.diff to Simias.cs.patch
* Thu May 21 2009 sbipin@novell.com
- Included patch for fixing build failure in Factory.
- #505924 : Changes are done to avoid OBS build failure by adding IO
  header file.
* Wed May 20 2009 sbipin@novell.com
- #488621 : merging of encrypted ifolders enabled
- Member sync verification
- Updated Server spec file for build service . Server needs mono 1.2.6
- Added spec file for Build Service. To build on 11.0 and 11.1
- Removed Debug options from building in Simias
- Merge wsdl command code to work for SLED11 and OpenSUSE11.1
- Made changes to fix 64bit crash issue
- Changes are done to fix "1 item not sync" Issue. By handling exception
  and removing unwanted nodes.
- Non-authorised conflict resolution
- Updated configure.in and spec files
- Updated spec and configure.in for SLE11 build
- Reverting the Mono Configure and SPEC file changes. This is done to make
  sure that SVN iFolder trunk can be used to build iFolder in autobuild.
- Changes are done to make code compatible.
- Changes are done to remove old/unused RAcertificate from
  database.
- Patch to make client work in Debian - <mog@rldn.net>
- autoconf fails - ChangeLog missing
- Trunk code update from 3.6 to 3.7.2
  Major features:
	- Folder client for Macintosh and Vista
	- SSL Communication
	- iFolder Merge
	- Enhanced Web administration
- #287799: Changes to strings for localization. Changes to provide
  notification message after importing the keys.
- #288727: Accept RAName during reset passphrase Changes to some
  strings. Missing strings added to en.po file.
- #288727, 284683: Fix for removing domain from the thick clients. Fix
  for addressing the exception while connecting to a server,even though
  the domain is created.
- #290718: Problem 1: Sync doesnot work after the import key operation.
  It says the ket doesnot match Description: Encryption key hash is re
  assigned with the hash of original key, which was not required causes
  this issue. This is fixed Problem 2: RA agent reselection is enabled in
  the reset passphrase.
- #282720: 1. For Only Revertion: In place of poping error message,
  returning null value to calling function. 2. For Revertion and
  Deletion: In case of Deletion exception message(Invalid CollectionID)
  is generating. So whenever an error message of -"Invalid
  CollectionID", returning null value to calling function.
- #287473: Linux thick client related changes for displaying proper info
  in export key dialog boxes .
- #260442: now no need to do a refresh on linux thick client to show all
  the iFolders.
- #81615: Versioning mess for dll was sorted & updated. Related files
  are updated. It is done for both iFolder and simias modules.
- #235305: AccountWizardCompletionPage.cs and FormsTrayApp.resx - Add
  user information for finish page
- #283661: Picker.resx - Added "<<" for remove button CreateiFolder.resx
  - Corrected spelling "Location" (not filed in bugzilla)
- #284654: Removing the Console.WriteLine statements on Linux. Change in
  top-level makefile.am to show the new help files.
- #285501,285499: New help files has been added to svn
- #283124: client version rolled back to previous version for data
  change conflicts.
- #277699: Added new apis for Upgrade and version handshake between
  client and server. Changes to collectionInfo objest to hold User id
- #277699, 278152: Changes to use version handshake apis for client
  updates. Changes to default ifolder related issues. Fix for migration
  UI issue.
- #287175: Enabled File Monitoring in Linux, so that the file system
  will not be dredged always during synchronization. This is for
  performance enhancement.
- #272132: Bug related to AssemblyInfo.cs. Now no need to do a make
  clean before doing make for iFolder client.
- #273097, 274479, 277698: Fix for accepting certificate and setting
  passphrase when no recovery agent is selected.( linux & windows)
  creation of Default iFolder. (Linux & windows) Error message when
  iFolder is not completely synced.(linux & windows).
- #256381: MoreOptions expanded by default
- Recovery utility changes in simias will give later
- #272132: Build problem in ifolder - AssemblyInfo.cs
- #272273: Added startup screen and new encryption icon for Linux
  client. Restored the export and import key bindings
- #267289: Logout still shows iFolders on the domain.
- #270300, 272615: Conflict fixes and slave provisiong exception fix
- #259792,272615: Export import key bindings. Refresh on timeout, domain
  logged in logout. Encryption icon change. Splash screen.
- #261222: Changes for displaying a pop-up message to disconnect from
  2.x server after migration
- #265132: First 16K is not synced to the server. Other sizes are synced
  happily, this happens if the simias server runs behind apache. If the
  simias server runs behind the problem doesnot appear. As a work around
  16K is broken into two eight 8k and sent to the server. sine the work
  around is available moving the priority to low
- #256364: Filter out host nodes out of user list in the client
- #267021: Discovery code is optimized for fetching the catalog
  information
- #266095:  * Added CertificateDialog.cs to show certificate while
  setting passphrase * Changes for migration wizard and account wizard
  for accepting certificate * Prompt for migration at the time of
  initial login
- #257380: Changed the help link in migration wizard
- #255243: Linux UI - During download Action, UI will update
  immediately.
- #255243: Fixes for iFolder Webservice.
- Updated help files for ifolder UI.
- Provides migration from iFolder2.x to iFolder3.x on the
  client side.
  due to Encryption changes. It is fixed now
- Encryption gui review comments
- Encryption UI Unit test case fixes
- Encryption UI UT fixes for web-access
- Removed the post-install and post-uninstall scriptlet (this is
  just a clean-up. We probably be including the new scriptlets soon)
- Corrected simiasdatadir env path in simias.conf
- Fixed the issue of webbindir path not getting correctly set in the
  simias-server script
- Included xsp in BuildRequires and Requires tags.
- Changes to web-access and web-services to enable encryption
  feature.
- fix for non-interactive mode configuration for LDAP in
  simiasserversetup.
- DomainService used an incorrect UnmanagedPath variable causing the
  build to break due to that variables protection level.
- Added files for setting up security policy
- Fixed the non interactive mode of command line utility simias-server-setup.
- Check for host_cpu for 32/64 bit arch
- Avoid expansion and hardcoding of $HOME when
  substituting simiaslogdir.
- Inserted a missing '/' for mappingpath for linux.
- Added DiscoveryWS/Makefile and DiscoveryWS/Assemblyinfo.cs
- Inserted a missing '/' for mappingpath.
* Thu May 14 2009 sbipin@novell.com
- Initial submission to SLE11 and openSuSE11.1.
openSUSE Build Service is sponsored by