]> git.pld-linux.org Git - SPECS.git/blob - kemistry.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / kemistry.spec
1 Summary:        A collection of chemical applications for KDE
2 Summary(pl.UTF-8):      Kolekcja aplikacji chemicznych dla KDE
3 Name:           kemistry
4 Version:        0.7
5 Release:        5
6 License:        GPL
7 Group:          X11/Applications/Science
8 Source0:        http://dl.sourceforge.net/kemistry/%{name}-%{version}.tar.bz2
9 # Source0-md5:  daa7c379a7ac6a866fe0c63f021bbd7e
10 Patch0:         %{name}-desktop.patch
11 URL:            http://kemistry.sourceforge.net/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  fam-devel
15 BuildRequires:  gettext-tools
16 BuildRequires:  kdelibs-devel >= 3.0.3
17 BuildRequires:  kdesdk-po2xml
18 BuildRequires:  libtool
19 BuildRequires:  rpmbuild(macros) >= 1.129
20 Requires:       openbabel
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Kemistry is a collection of chemical applications for the K Desktop
25 Environment. The included applications are:
26
27 - KMolCalc - a molecular weight calculator,
28 - KemBabel - a conversion program for chemical file formats based on
29   Open Babel,
30 - KDrawchem - a molecular structure drawing program based on XDrawChem.
31
32 %description -l pl.UTF-8
33 Kemistry jest kolekcją aplikacji chemicznych dla KDE. Zawiera
34 aplikacje:
35
36 - KMolCalc - kalkulator wagi molowej,
37 - KemBabel - program do konwersji między chemicznymi formatami
38   plików, oparty na Open Babel,
39 - KDrawchem - program do rysowania struktury molekularnej, oparty na
40   XDrawChem.
41
42 %package kdrawchem
43 Summary:        Molecular structure drawing program based on XDrawChem
44 Summary(pl.UTF-8):      Program do rysowania struktury molekularnej, bazowany na XDrawChem
45 Group:          X11/Applications/Science
46 Requires:       %{name} = %{version}-%{release}
47 Provides:       kdrawchem
48
49 %description kdrawchem
50 A molecular structure drawing program based on XDrawChem.
51
52 %description kdrawchem -l pl.UTF-8
53 Program do rysowania struktury molekularnej, oparty na XDrawChem.
54
55 %package kembabel
56 Summary:        Conversion program for chemical file formats
57 Summary(pl.UTF-8):      Program do konwersji między chemicznymi formatami plików
58 Group:          X11/Applications/Science
59 Requires:       %{name} = %{version}-%{release}
60 Provides:       kembabel
61
62 %description kembabel
63 A conversion program for chemical file formats based on Open Babel.
64
65 %description kembabel -l pl.UTF-8
66 Program do konwersji między chemicznymi formatami plików, oparty na
67 Open Babel.
68
69 %package kmolcalc
70 Summary:        Molecular weight calculator
71 Summary(pl.UTF-8):      Kalkulator wagi molowej
72 Group:          X11/Applications/Science
73 Requires:       %{name} = %{version}-%{release}
74 Provides:       kmolcalc
75
76 %description kmolcalc
77 A molecular weight calculator.
78
79 %description kmolcalc -l pl.UTF-8
80 Kalkulator wagi molowej.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85
86 # kill libtool.m4
87 # -Wbad-function-cast (invalid in C++) causes -fPIC misdetection
88 head -n 4875 acinclude.m4 | grep -v Wbad-function-cast > acinclude.m4.tmp
89 mv -f acinclude.m4.tmp acinclude.m4
90
91 %build
92 kde_htmldir="%{_kdedocdir}"; export kde_htmldir
93 %{__libtoolize}
94 %{__aclocal}
95 %{__autoconf}
96 %{__autoheader}
97 %{__automake}
98 %{__perl} admin/am_edit
99 # doesn't work with am > 1.6
100 #%{__make} -f admin/Makefile.common cvs
101 %configure \
102         --with-qt-libraries=%{_libdir}
103 %{__make}
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT%{_desktopdir}
108
109 %{__make} install \
110         DESTDIR=$RPM_BUILD_ROOT
111 mv $RPM_BUILD_ROOT{%{_datadir}/applnk/Applications/Kemistry/*,%{_desktopdir}}
112
113 cp openbabel/ChangeLog ChangeLog.openbabel
114
115 %find_lang kdrawchem    --with-kde
116 %find_lang kembabel     --with-kde
117 %find_lang kmolcalc     --with-kde
118
119 %clean
120 rm -rf $RPM_BUILD_ROOT
121
122 %post   -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
124
125 %post   kdrawchem -p /sbin/ldconfig
126 %postun kdrawchem -p /sbin/ldconfig
127
128 %files
129 %defattr(644,root,root,755)
130 %doc README ChangeLog* openbabel/CHANGES.openbabel
131 %attr(755,root,root) %{_libdir}/libopenbabel_kemistry.so*
132 %attr(755,root,root) %{_libdir}/libkemistry.so*
133 %{_libdir}/libopenbabel_kemistry.la
134 %{_libdir}/libkemistry.la
135 %{_iconsdir}/*/*/*/kemistry.png
136
137 %files kdrawchem -f kdrawchem.lang
138 %defattr(644,root,root,755)
139 %doc kdrawchem/ChangeLog
140 %attr(755,root,root) %{_bindir}/kdrawchem
141 %attr(755,root,root) %{_libdir}/libkdrawchem.so*
142 %{_libdir}/libkdrawchem.la
143 %{_datadir}/apps/kdrawchem
144 %{_iconsdir}/*/*/*/kdrawchem.png
145 %{_desktopdir}/kdrawchem.desktop
146
147 %files kembabel -f kembabel.lang
148 %defattr(644,root,root,755)
149 %doc kembabel/ChangeLog
150 %attr(755,root,root) %{_bindir}/kembabel
151 %{_datadir}/mimelnk/chemical/*openbabel*
152 %{_iconsdir}/*/*/*/kembabel.png
153 %{_desktopdir}/kembabel.desktop
154
155 %files kmolcalc -f kmolcalc.lang
156 %defattr(644,root,root,755)
157 %doc kmolcalc/ChangeLog
158 %attr(755,root,root) %{_bindir}/kmolcalc
159 %dir %{_datadir}/apps/kmolcalc/*
160 %{_iconsdir}/*/*/*/kmolcalc.png
161 %{_desktopdir}/kmolcalc.desktop
This page took 0.149101 seconds and 3 git commands to generate.