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