Author: qboosh                       Date: Sun Jan 23 19:18:14 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated to 2.3.0
- added ruby patch
- project switched to cmake, so -static is gone
- package perl binding (perl-Chemistry-OpenBabel); more to do
- wx needs fixing or hacking cmake
- release 0.1, WIP

---- Files affected:
packages/openbabel:
   openbabel.spec (1.27 -> 1.28) , openbabel-ruby.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/openbabel/openbabel.spec
diff -u packages/openbabel/openbabel.spec:1.27 
packages/openbabel/openbabel.spec:1.28
--- packages/openbabel/openbabel.spec:1.27      Fri Jul 30 23:43:38 2010
+++ packages/openbabel/openbabel.spec   Sun Jan 23 20:18:08 2011
@@ -1,16 +1,24 @@
 # $Revision$, $Date$
+# TODO:
+# - eigen2
+# - wxWidgets (cmake needs hacking to use wx-gtk2-unicode-config instead of 
wx-config)
+# - install+package python, ruby, java, csharp bindings
 Summary:       A cross-platform chemistry program and library designed to 
convert file formats
 Summary(pl.UTF-8):     Międzyplatformowy program chemiczny i biblioteka do 
konwersji formatów plików
 Name:          openbabel
-Version:       2.2.2
-Release:       1
+Version:       2.3.0
+Release:       0.1
 License:       GPL v2
 Group:         Libraries
-Source0:       http://dl.sourceforge.net/openbabel/%{name}-%{version}.tar.gz
-# Source0-md5: 0d9c12c500749df7269f9e7ac742e94a
+Source0:       
http://downloads.sourceforge.net/openbabel/%{name}-%{version}.tar.gz
+# Source0-md5: effda01ed4a31d18d8e3d08191799608
+Patch0:                %{name}-ruby.patch
 URL:           http://openbabel.sourceforge.net/
+BuildRequires: cmake >= 2.4.8
 BuildRequires: libstdc++-devel
 BuildRequires: libxml2-devel >= 2.6.5
+BuildRequires: perl-devel
+#BuildRequires:        wxGTK2-devel
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -33,6 +41,7 @@
 Requires:      %{name} = %{version}-%{release}
 Requires:      libstdc++-devel
 Requires:      zlib-devel
+Obsoletes:     openbabel-static
 
 %description devel
 Header files for OpenBabel.
@@ -40,31 +49,15 @@
 %description devel -l pl.UTF-8
 Pliki nagłówkowe dla OpenBabel.
 
-%package static
-Summary:       Static OpenBabel library
-Summary(pl.UTF-8):     Statyczna biblioteka OpenBabel
-Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}-%{release}
-
-%description static
-Static OpenBabel library.
-
-%description static -l pl.UTF-8
-Statyczna biblioteka OpenBabel.
-
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-# simulate there is no libinchi installed (if openbabel is already installed),
-# so it will be build with openbabel
-# inchi is available separately at http://www.iupac.org/inchi/, but requires
-# registration to download
-%configure \
-       ac_cv_lib_inchi_GetINCHI=no \
-       --enable-shared \
-       --enable-static
-
+%cmake . \
+       -DALL_BINDINGS=ON \
+       -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
+       -DwxWIDGETS_CONFIG_EXECUTABLE=%{_bindir}/wx-gtk2-unicode-config
 %{__make}
 
 %install
@@ -73,8 +66,6 @@
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT%{_libdir}/openbabel/*/*.{la,a}
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -84,26 +75,58 @@
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README THANKS doc/*.html
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/babel
+%attr(755,root,root) %{_bindir}/obabel
+%attr(755,root,root) %{_bindir}/obchiral
+%attr(755,root,root) %{_bindir}/obconformer
+%attr(755,root,root) %{_bindir}/obenergy
+%attr(755,root,root) %{_bindir}/obfit
+%attr(755,root,root) %{_bindir}/obgen
+%attr(755,root,root) %{_bindir}/obgrep
+%attr(755,root,root) %{_bindir}/obminimize
+%attr(755,root,root) %{_bindir}/obprobe
+%attr(755,root,root) %{_bindir}/obprop
+%attr(755,root,root) %{_bindir}/obrotamer
+%attr(755,root,root) %{_bindir}/obrotate
+%attr(755,root,root) %{_bindir}/obspectrophore
+%attr(755,root,root) %{_bindir}/roundtrip
+%attr(755,root,root) %{_libdir}/libinchi.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libinchi.so.0
 %attr(755,root,root) %{_libdir}/libopenbabel.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libopenbabel.so.?
+%attr(755,root,root) %ghost %{_libdir}/libopenbabel.so.4
 %dir %{_libdir}/openbabel
-%dir %{_libdir}/openbabel/2.2.2
-%attr(755,root,root) %{_libdir}/openbabel/2.2.2/*.so
+%dir %{_libdir}/openbabel/%{version}
+%attr(755,root,root) %{_libdir}/openbabel/%{version}/*.so
 %{_datadir}/openbabel
-%{_mandir}/man1/*.1*
+%{_mandir}/man1/babel.1*
+%{_mandir}/man1/obchiral.1*
+%{_mandir}/man1/obconformer.1*
+%{_mandir}/man1/obenergy.1*
+%{_mandir}/man1/obfit.1*
+%{_mandir}/man1/obgen.1*
+%{_mandir}/man1/obgrep.1*
+%{_mandir}/man1/obminimize.1*
+%{_mandir}/man1/obprobe.1*
+%{_mandir}/man1/obprop.1*
+%{_mandir}/man1/obrotamer.1*
+%{_mandir}/man1/obrotate.1*
+%{_mandir}/man1/roundtrip.1*
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libinchi.so
 %attr(755,root,root) %{_libdir}/libopenbabel.so
-%{_libdir}/libopenbabel.la
-%{_includedir}/inchi102
+%{_libdir}/openbabel/OpenBabel2*.cmake
+%{_includedir}/inchi
 %{_includedir}/openbabel-2.0
-%{_pkgconfigdir}/*.pc
+%{_pkgconfigdir}/openbabel-2.0.pc
 
-%files static
+%files -n perl-Chemistry-OpenBabel
 %defattr(644,root,root,755)
-%{_libdir}/libopenbabel.a
+%{perl_vendorarch}/Chemistry/OpenBabel.pm
+%dir %{perl_vendorarch}/auto/Chemistry/OpenBabel
+%{perl_vendorarch}/auto/Chemistry/OpenBabel/OpenBabel.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/Chemistry/OpenBabel/OpenBabel.so
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -111,6 +134,14 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.28  2011/01/23 19:18:08  qboosh
+- updated to 2.3.0
+- added ruby patch
+- project switched to cmake, so -static is gone
+- package perl binding (perl-Chemistry-OpenBabel); more to do
+- wx needs fixing or hacking cmake
+- release 0.1, WIP
+
 Revision 1.27  2010/07/30 21:43:38  shadzik
 - 2.2.2
 

================================================================
Index: packages/openbabel/openbabel-ruby.patch
diff -u /dev/null packages/openbabel/openbabel-ruby.patch:1.1
--- /dev/null   Sun Jan 23 20:18:14 2011
+++ packages/openbabel/openbabel-ruby.patch     Sun Jan 23 20:18:08 2011
@@ -0,0 +1,15 @@
+--- openbabel-2.3.0/scripts/ruby/extconf.rb.orig       2010-10-23 
03:54:40.000000000 +0200
++++ openbabel-2.3.0/scripts/ruby/extconf.rb    2011-01-15 10:45:27.430364132 
+0100
+@@ -5,8 +5,10 @@
+ require 'rbconfig'
+ if Config::CONFIG["arch"] =~ /universal-darwin/
+   case `uname -smr`.chomp
+-  when "i386" : ENV['ARCHFLAGS'] = '-arch i386'
+-  when "ppc"  : ENV['ARCHFLAGS'] = '-arch ppc'
++  when "i386"
++      ENV['ARCHFLAGS'] = '-arch i386'
++  when "ppc"
++      ENV['ARCHFLAGS'] = '-arch ppc'
+   end
+ end
+ 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/openbabel/openbabel.spec?r1=1.27&r2=1.28&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to