]>
Commit | Line | Data |
---|---|---|
2b2a7a96 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without emf # Enhanced MetaFile output support | |
4 | # | |
4e717f2d | 5 | Summary: Chemtool - program for 2D drawing organic molecules |
dd8f57e2 | 6 | Summary(pl.UTF-8): Chemtool - program do rysowania 2-wymiarowych cząsteczek organicznych |
68c26d78 | 7 | Name: chemtool |
2b2a7a96 | 8 | Version: 1.6.14 |
52c982ac | 9 | Release: 3 |
68c26d78 PG |
10 | License: GPL |
11 | Group: X11/Applications/Science | |
317f602f | 12 | Source0: http://ruby.chemie.uni-freiburg.de/~martin/chemtool/%{name}-%{version}.tar.gz |
2b2a7a96 | 13 | # Source0-md5: 3a97680f0abe1327af1f0072551a68e2 |
52c982ac | 14 | Patch0: gcc10.patch |
317f602f | 15 | URL: http://ruby.chemie.uni-freiburg.de/~martin/chemtool/ |
89297f66 | 16 | BuildRequires: autoconf >= 2.50 |
fe4a0a02 | 17 | BuildRequires: gettext-tools >= 0.14.1 |
89297f66 | 18 | BuildRequires: gtk+2-devel >= 1:2.0 |
2b2a7a96 | 19 | %{?with_emf:BuildRequires: libEMF-devel} |
89297f66 JB |
20 | BuildRequires: pkgconfig |
21 | BuildRequires: xorg-lib-libX11-devel | |
68c26d78 PG |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
68c26d78 PG |
24 | %description |
25 | Chemtool is a program for drawing organic molecules easily and store | |
26 | them as a X bitmap, Xfig or EPS file. It runs under the X Window | |
527cbdd1 | 27 | System using the GTK+ widget set. |
68c26d78 | 28 | |
3672fe03 JR |
29 | %description -l pl.UTF-8 |
30 | Chemtool jest programem do rysowania cząsteczek organicznych i zapisu | |
31 | ich jako pliki X-bitmap, Xfig lub EPS. Pracuje pod X Window używając | |
527cbdd1 | 32 | bibliotek GTK+. |
68c26d78 PG |
33 | |
34 | %prep | |
35 | %setup -q | |
52c982ac | 36 | %patch0 -p1 |
68c26d78 PG |
37 | |
38 | %build | |
4306e9b0 | 39 | %{__autoconf} |
2b2a7a96 JB |
40 | %configure \ |
41 | %{?with_emf:--enable-emf} | |
68c26d78 PG |
42 | %{__make} |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
52c982ac | 46 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_iconsdir}/hicolor/32x32/mimetypes} |
68c26d78 | 47 | |
6f69a8cb PG |
48 | %{__make} install \ |
49 | DESTDIR=$RPM_BUILD_ROOT | |
68c26d78 | 50 | |
52c982ac | 51 | install %{name}.desktop $RPM_BUILD_ROOT%{_desktopdir} |
06cf5c12 | 52 | install gnome/gnome-application-chemtool.png %{name}.xpm $RPM_BUILD_ROOT%{_pixmapsdir} |
52c982ac | 53 | install kde/icons/hicolor/32x32/mimetypes/chemtool.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/mimetypes |
68c26d78 | 54 | |
1a118b3d JR |
55 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/pt{_PT,} |
56 | ||
4dab0442 JB |
57 | %find_lang %{name} |
58 | ||
68c26d78 PG |
59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
4dab0442 | 62 | %files -f %{name}.lang |
68c26d78 | 63 | %defattr(644,root,root,755) |
89297f66 JB |
64 | %doc ChangeLog NEWS README TODO examples/{Neu2,*.{cht,mol,pdb}} |
65 | %attr(755,root,root) %{_bindir}/chemtool | |
66 | %attr(755,root,root) %{_bindir}/chemtoolbg | |
67 | %attr(755,root,root) %{_bindir}/cht | |
89297f66 JB |
68 | %{_iconsdir}/hicolor/32x32/mimetypes/chemtool.png |
69 | %{_pixmapsdir}/gnome-application-chemtool.png | |
70 | %{_pixmapsdir}/chemtool.xpm | |
71 | %{_desktopdir}/chemtool.desktop | |
72 | %{_mandir}/man1/chemtool.1* | |
73 | %{_mandir}/man1/cht.1* |