inchi-vl.spec 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. %define inchi_so_ver 1.02.00
  2. Summary: The IUPAC International Chemical Identifier library
  3. Summary(ja): IUPAC International Chemical Identifier (InChI)ライブラリ
  4. Name: inchi
  5. Version: 1.0.2
  6. Release: 1%{?_dist_release}
  7. Group: System Environment/Libraries
  8. License: LGPLv2+
  9. URL: http://www.iupac.org/inchi/
  10. Source0: http://www.iupac.org/inchi/download/inchi102b.zip
  11. Patch0: %{name}-rpm.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. %description
  14. The IUPAC International Chemical Identifier (InChITM) is a non-proprietary
  15. identifier for chemical substances that can be used in printed and
  16. electronic data sources thus enabling easier linking of diverse data
  17. compilations. It was developed under IUPAC Project 2000-025-1-800 during
  18. the period 2000-2004. Details of the project and the history of its
  19. progress are available from the project web site.
  20. %package devel
  21. Summary: Development headers for the InChI library
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. %description devel
  25. The inchi-devel package includes the header files and libraries
  26. necessary for developing programs using the InChI library.
  27. If you are going to develop programs which will use this library
  28. you should install inchi-devel. You'll also need to have the
  29. inchi package installed.
  30. %prep
  31. %setup -q -n InChI-1-software-1-02-beta
  32. %patch0 -p1 -b .r
  33. %build
  34. pushd INCHI_API/gcc_so_makefile
  35. make OPTFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
  36. popd
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. mkdir -p $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/inchi}
  40. install -p INCHI_API/gcc_so_makefile/result/libinchi.so.%{inchi_so_ver} $RPM_BUILD_ROOT%{_libdir}
  41. ln -s libinchi.so.%{inchi_so_ver} $RPM_BUILD_ROOT%{_libdir}/libinchi.so.1
  42. ln -s libinchi.so.1 $RPM_BUILD_ROOT%{_libdir}/libinchi.so
  43. sed -i 's/\r//' INCHI_API/INCHI_DLL/inchi_api.h
  44. install -pm644 INCHI_API/INCHI_DLL/inchi_api.h $RPM_BUILD_ROOT%{_includedir}/inchi
  45. sed -i 's/\r//' LICENSE readme.txt
  46. %clean
  47. rm -rf $RPM_BUILD_ROOT
  48. %post -p /sbin/ldconfig
  49. %postun -p /sbin/ldconfig
  50. %files
  51. %defattr(-,root,root,-)
  52. %doc LICENSE readme.txt Software-1-02-beta.pdf
  53. %{_libdir}/libinchi.so.*
  54. %files devel
  55. %defattr(-,root,root,-)
  56. %{_includedir}/inchi
  57. %{_libdir}/libinchi.so
  58. %changelog
  59. * Wed Aug 26 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.2-1
  60. - Initial build for Vine Linux
  61. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-0.5
  62. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  63. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-0.4
  64. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  65. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.2-0.3
  66. - Autorebuild for GCC 4.3
  67. * Mon Oct 01 2007 Dominik Mierzejewski <rpm@greysector.net> 1.0.2-0.2
  68. - updated license tag
  69. - fixed non-Unix EOLs in docs
  70. - fixed dangling symlinks
  71. * Thu Sep 06 2007 Dominik Mierzejewski <rpm@greysector.net> 1.0.2-0.1
  72. - updated to 1.02b
  73. - dropped WDI patch (upstream'd)
  74. - updated license tag
  75. * Sun Jul 01 2007 Dominik Mierzejewski <rpm@greysector.net> 1.0.1-8
  76. - initial build