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