source: projects/specs/branches/6/i/inchi/inchi-vl.spec @ 6267

Revision 6267, 3.3 KB checked in by inagaki, 12 years ago (diff)

update: librpcsecgss, cagibi, inchi, kio_sysinfo

Line 
1%define inchi_so_ver 1.04.00
2%define url_ver 1.04
3
4Summary: The IUPAC International Chemical Identifier library
5Summary(ja): IUPAC International Chemical Identifier (InChI)ライブラリ
6Name: inchi
7Version: 1.0.4
8Release: 1%{?_dist_release}
9
10Group: System Environment/Libraries
11License: LGPLv2+
12URL: http://www.inchi-trust.org/?q=node/14
13
14Source0: http://www.inchi-trust.org/sites/default/files/inchi-%{url_ver}/INCHI-1-API.ZIP
15Patch0: %{name}-rpm.patch
16
17BuildRoot: %{_tmppath}/%{name}-%{version}-root
18BuildRequires: dos2unix
19
20%description
21The IUPAC International Chemical Identifier (InChITM) is a non-proprietary
22identifier for chemical substances that can be used in printed and
23electronic data sources thus enabling easier linking of diverse data
24compilations. It was developed under IUPAC Project 2000-025-1-800 during
25the period 2000-2004. Details of the project and the history of its
26progress are available from the project web site.
27
28%package devel
29Summary: Development headers for the InChI library
30Group: Development/Libraries
31Requires: %{name} = %{version}-%{release}
32
33%description devel
34The inchi-devel package includes the header files and libraries
35necessary for developing programs using the InChI library.
36
37If you are going to develop programs which will use this library
38you should install inchi-devel.  You'll also need to have the
39inchi package installed.
40
41%prep
42%setup -q -n INCHI-1-API
43%patch0 -p1 -b .r
44rm INCHI_API/gcc_so_makefile/result/{libinchi,inchi}*
45for file in INCHI_API/inchi_dll/inchi_api.h LICENCE readme.txt ; do
46  dos2unix -k $file
47done
48
49%build
50pushd INCHI_API/gcc_so_makefile
51make ISLINUX=1 OPTFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
52popd
53
54%install
55rm -rf $RPM_BUILD_ROOT
56mkdir -p $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/inchi}
57install -p INCHI_API/gcc_so_makefile/result/libinchi.so.%{inchi_so_ver} $RPM_BUILD_ROOT%{_libdir}
58ln -s libinchi.so.%{inchi_so_ver} $RPM_BUILD_ROOT%{_libdir}/libinchi.so.1
59ln -s libinchi.so.1               $RPM_BUILD_ROOT%{_libdir}/libinchi.so
60install -pm644 INCHI_API/inchi_dll/inchi_api.h $RPM_BUILD_ROOT%{_includedir}/inchi
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%post -p /sbin/ldconfig
66
67%postun -p /sbin/ldconfig
68
69%files
70%defattr(-,root,root,-)
71%doc LICENCE readme.txt
72%{_libdir}/libinchi.so.*
73
74%files devel
75%defattr(-,root,root,-)
76%{_includedir}/inchi
77%{_libdir}/libinchi.so
78
79%changelog
80* Sat Jun  2 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.4-1
81- updated to 1.0.4
82
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
Note: See TracBrowser for help on using the repository browser.