inchi-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. %define inchi_so_ver 1.04.00
  2. Summary: The IUPAC International Chemical Identifier library
  3. Summary(ja): IUPAC International Chemical Identifier (InChI)ライブラリ
  4. Name: inchi
  5. Version: 1.0.4
  6. Release: 1%{?_dist_release}
  7. Group: System Environment/Libraries
  8. License: LGPLv2+
  9. URL: http://www.iupac.org/inchi/
  10. Source0: http://www.inchi-trust.org/fileadmin/user_upload/software/inchi-v1.04/INCHI-1-API.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-API
  32. %patch0 -p1 -b .r
  33. %build
  34. pushd INCHI_API/gcc_so_makefile
  35. make ISLINUX=1 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. install -pm644 INCHI_API/inchi_dll/inchi_api.h $RPM_BUILD_ROOT%{_includedir}/inchi
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %post -p /sbin/ldconfig
  47. %postun -p /sbin/ldconfig
  48. %files
  49. %defattr(-,root,root,-)
  50. %doc LICENSE readme.txt Software-1-02-beta.pdf
  51. %{_libdir}/libinchi.so.*
  52. %files devel
  53. %defattr(-,root,root,-)
  54. %{_includedir}/inchi
  55. %{_libdir}/libinchi.so
  56. %changelog
  57. * Sun Dec 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.4-1
  58. - update to 1.0.4
  59. - update Patch0
  60. * Wed Aug 26 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.2-1
  61. - Initial build for Vine Linux
  62. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-0.5
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  64. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-0.4
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  66. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.2-0.3
  67. - Autorebuild for GCC 4.3
  68. * Mon Oct 01 2007 Dominik Mierzejewski <rpm@greysector.net> 1.0.2-0.2
  69. - updated license tag
  70. - fixed non-Unix EOLs in docs
  71. - fixed dangling symlinks
  72. * Thu Sep 06 2007 Dominik Mierzejewski <rpm@greysector.net> 1.0.2-0.1
  73. - updated to 1.02b
  74. - dropped WDI patch (upstream'd)
  75. - updated license tag
  76. * Sun Jul 01 2007 Dominik Mierzejewski <rpm@greysector.net> 1.0.1-8
  77. - initial build