]> git.pld-linux.org Git - packages/chemtool.git/blame - chemtool.spec
- drop KDE3 support (mimelnk/application/*.desktop)
[packages/chemtool.git] / chemtool.spec
CommitLineData
2b2a7a96
JB
1#
2# Conditional build:
3%bcond_without emf # Enhanced MetaFile output support
4#
4e717f2d 5Summary: Chemtool - program for 2D drawing organic molecules
dd8f57e2 6Summary(pl.UTF-8): Chemtool - program do rysowania 2-wymiarowych cząsteczek organicznych
68c26d78 7Name: chemtool
2b2a7a96 8Version: 1.6.14
52c982ac 9Release: 3
68c26d78
PG
10License: GPL
11Group: X11/Applications/Science
317f602f 12Source0: http://ruby.chemie.uni-freiburg.de/~martin/chemtool/%{name}-%{version}.tar.gz
2b2a7a96 13# Source0-md5: 3a97680f0abe1327af1f0072551a68e2
52c982ac 14Patch0: gcc10.patch
317f602f 15URL: http://ruby.chemie.uni-freiburg.de/~martin/chemtool/
89297f66 16BuildRequires: autoconf >= 2.50
fe4a0a02 17BuildRequires: gettext-tools >= 0.14.1
89297f66 18BuildRequires: gtk+2-devel >= 1:2.0
2b2a7a96 19%{?with_emf:BuildRequires: libEMF-devel}
89297f66
JB
20BuildRequires: pkgconfig
21BuildRequires: xorg-lib-libX11-devel
68c26d78
PG
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
68c26d78
PG
24%description
25Chemtool is a program for drawing organic molecules easily and store
26them as a X bitmap, Xfig or EPS file. It runs under the X Window
527cbdd1 27System using the GTK+ widget set.
68c26d78 28
3672fe03
JR
29%description -l pl.UTF-8
30Chemtool jest programem do rysowania cząsteczek organicznych i zapisu
31ich jako pliki X-bitmap, Xfig lub EPS. Pracuje pod X Window używając
527cbdd1 32bibliotek 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
45rm -rf $RPM_BUILD_ROOT
52c982ac 46install -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 51install %{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}
06cf5c12 52install gnome/gnome-application-chemtool.png %{name}.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
52c982ac 53install 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
60rm -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*
This page took 0.090132 seconds and 4 git commands to generate.