]> git.pld-linux.org Git - packages/openbabel.git/blob - openbabel.spec
a71e626b6f941610bb1f0e58a7f2cc165570d776
[packages/openbabel.git] / openbabel.spec
1 Summary:        A cross-platform chemistry program and library designed to convert file formats
2 Summary(pl.UTF-8):      Międzyplatformowy program chemiczny i biblioteka do konwersji formatów plików
3 Name:           openbabel
4 Version:        2.1.1
5 Release:        1
6 License:        GPL v2
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/openbabel/%{name}-%{version}.tar.gz
9 # Source0-md5:  a2a002c6913d6fb94fdc7dede2166194
10 URL:            http://openbabel.sourceforge.net/
11 BuildRequires:  libstdc++-devel
12 BuildRequires:  libxml2-devel >= 2.6.5
13 BuildRequires:  zlib-devel
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Open Babel is a project designed to pick up where Babel left off, as a
18 cross-platform program and library designed to interconvert between
19 many file formats used in molecular modeling and computational
20 chemistry.
21
22 %description -l pl.UTF-8
23 Open Babel to projekt mający pozbierać to, co zostało po zaniechaniu
24 projektu Babel, jako międzyplatformowy program i biblioteka służące do
25 konwersji między wieloma formatami używanymi w modelowaniu cząsteczek
26 i chemii obliczeniowej.
27
28 %package devel
29 Summary:        Header files for OpenBabel
30 Summary(pl.UTF-8):      Pliki nagłówkowe dla OpenBabel
31 Group:          Development/Libraries
32 Requires:       %{name} = %{version}-%{release}
33 Requires:       libstdc++-devel
34 Requires:       zlib-devel
35
36 %description devel
37 Header files for OpenBabel.
38
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe dla OpenBabel.
41
42 %package static
43 Summary:        Static OpenBabel library
44 Summary(pl.UTF-8):      Statyczna biblioteka OpenBabel
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 Static OpenBabel library.
50
51 %description static -l pl.UTF-8
52 Statyczna biblioteka OpenBabel.
53
54 %prep
55 %setup -q
56
57 %build
58 # simulate there is no libinchi installed (if openbabel is already installed),
59 # so it will be build with openbabel
60 # inchi is available separately at http://www.iupac.org/inchi/, but requires
61 # registration to download
62 %configure \
63         ac_cv_lib_inchi_GetINCHI=no \
64         --enable-shared
65
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %{__make} install \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 rm -f $RPM_BUILD_ROOT%{_libdir}/openbabel/*.{la,a}
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post   -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %files
83 %defattr(644,root,root,755)
84 %doc AUTHORS ChangeLog README THANKS doc/*.html
85 %attr(755,root,root) %{_bindir}/*
86 %attr(755,root,root) %{_libdir}/libinchi.so.*.*.*
87 %attr(755,root,root) %{_libdir}/libinchi.so.?
88 %attr(755,root,root) %{_libdir}/libopenbabel.so.*.*.*
89 %attr(755,root,root) %{_libdir}/libopenbabel.so.?
90 %dir %{_libdir}/openbabel
91 %attr(755,root,root) %{_libdir}/openbabel/*.so
92 %{_datadir}/openbabel
93 %{_mandir}/man1/*.1*
94
95 %files devel
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libinchi.so
98 %attr(755,root,root) %{_libdir}/libopenbabel.so
99 %{_libdir}/libinchi.la
100 %{_libdir}/libopenbabel.la
101 %{_includedir}/inchi
102 %{_includedir}/openbabel-2.0
103 %{_pkgconfigdir}/*.pc
104
105 %files static
106 %defattr(644,root,root,755)
107 %{_libdir}/libinchi.a
108 %{_libdir}/libopenbabel.a
This page took 0.049516 seconds and 2 git commands to generate.