automatic update by autodist [release 1.6.14-1mamba;Sun Aug 18 2013]

This commit is contained in:
Automatic Build System 2024-01-05 21:12:22 +01:00
parent 078687e72d
commit 662eaf75d7
6 changed files with 188 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# chemtool
Chemtool is a small program for drawing chemical structures on Linux and Unix systems using the GTK toolkit under X11

View File

@ -0,0 +1,23 @@
--- chemtool-1.6.11/kde/applnk/Graphics/chemtool.desktop 2007-08-26 13:49:26.000000000 +0200
+++ chemtool-1.6.11-gil/kde/applnk/Graphics/chemtool.desktop 2008-07-30 01:07:10.000000000 +0200
@@ -1,10 +1,17 @@
[Desktop Entry]
Comment=Molecule Drawing Program
-Exec=chemtool
-Icon=graphics_section.xpm
+Comment[cs]=Kreslení chemických vzorců
+Comment[de]=Moleküleditor
+Comment[es]=Dibuje y haga cálculos de estructuras químicas
+GenericName=Molecule Drawing Program
+GenericName[es]=Editor de estructuras químicas
+GenericName[it]=Programma per disegnare molecole
+Exec=/opt/kde3/bin/chemtool
+Icon=/opt/kde3/share/icons/hicolor/32x32/mimetypes/chemtool.png
InitialPreference=2
MimeType=application/x-chemtool;Application
Name=Chemtool
ServiceTypes=
Terminal=false
Type=Application
+Categories=Qt;KDE;Science;Chemistry;Education
\ No newline at end of file

View File

@ -0,0 +1,19 @@
--- chemtool-1.6.11/chemtool.desktop 2007-08-26 13:49:27.000000000 +0200
+++ chemtool-1.6.11-gil/chemtool.desktop 2008-07-30 00:51:51.000000000 +0200
@@ -4,9 +4,13 @@
Comment=The molecules drawing program (2D)
Comment[cs]=Kreslení chemických vzorců
Comment[de]=Moleküleditor
-Exec=chemtool
-Icon=chemtool.png
+Comment[es]=Dibuje y haga cálculos de estructuras químicas
+GenericName=Molecule Drawing Program
+GenericName[es]=Editor de estructuras químicas
+GenericName[it]=Programma per disegnare molecole
+Exec=/opt/kde3/bin/chemtool
+Icon=/opt/kde3/share/icons/hicolor/32x32/mimetypes/chemtool.png
Terminal=false
Type=Application
MimeType=application/x-chemtool
-Categories=Application;Chemistry
+Categories=Qt;KDE;Science;Chemistry;Education

View File

@ -0,0 +1,11 @@
--- chemtool-1.6.11/kde/mimelnk/application/x-chemtool.desktop 2007-08-26 13:49:26.000000000 +0200
+++ chemtool-1.6.11-gil/kde/mimelnk/application/x-chemtool.desktop 2008-07-30 01:07:49.000000000 +0200
@@ -1,7 +1,7 @@
[Desktop Entry]
Comment=Chemtool Molecule Drawing
Hidden=false
-Icon=chemtool.png
+Icon=/opt/kde3/share/icons/hicolor/32x32/mimetypes/chemtool.png
MimeType=application/x-chemtool
Patterns=*.cht
Type=MimeType

14
chemtool-1.6.7-gcc.patch Normal file
View File

@ -0,0 +1,14 @@
--- chemtool-1.6.7.orig/main.c 2005-11-10 14:24:42.000000000 +0100
+++ chemtool-1.6.7/main.c 2005-11-10 14:25:17.000000000 +0100
@@ -2977,9 +2977,9 @@
{
int i, j;
int tmplnum[125];
- char bondnums[15][3];
+ char bondnums[22][3];
char msgtmp[100];
- const char *fontsizelabel[7]={"8","10","12","14","17","20","24"};
+ static const char *fontsizelabel[7]={"8","10","12","14","17","20","24"};
GtkWidget *aboutw,*helpw,*helptext;
GtkWidget *vbox;
GtkWidget *hbox;

119
chemtool.spec Normal file
View File

@ -0,0 +1,119 @@
%define prefix %(kde-config --prefix)
Name: chemtool
Version: 1.6.14
Release: 1mamba
Summary: Chemtool is a small program for drawing chemical structures on Linux and Unix systems using the GTK toolkit under X11
Group: Graphical Desktop/Applications/Educational
Distribution: openmamba
Vendor: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://ruby.chemie.uni-freiburg.de/~martin/chemtool/
Source: http://ruby.chemie.uni-freiburg.de/~martin/chemtool/%{name}-%{version}.tar.gz
Patch0: %{name}-1.6.7-gcc.patch
Patch1: %{name}-1.6.11-desktop.patch
Patch2: %{name}-1.6.11-x-desktop.patch
Patch3: %{name}-1.6.11-applnk-desktop.patch
License: GPL
Requires: transfig
Requires: openbabel
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libglib-devel
BuildRequires: libgtk-devel
BuildRequires: libpango-devel
BuildRequires: libX11-devel
BuildRequires: openbabel-devel
BuildRequires: transfig
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Chemtool is a small program for drawing chemical structures on Linux and Unix systems using the GTK toolkit under X11
%prep
%setup -q
#%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
%configure_kde --with-kdedir=%{prefix}
%make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall DESTDIR=%{buildroot}
%{__mkdir_p} %{buildroot}%{_kdedatadir}/icons/hicolor/32x32/mimetypes
%{__mkdir_p} %{buildroot}%{_kdedatadir}/mimelnk/application
%{__mkdir_p} %{buildroot}%{_kdedatadir}/applications
%{__mkdir_p} %{buildroot}%{_kdedatadir}/applnk/Graphics
%{__mkdir_p} %{buildroot}%{_kdedatadir}/apps/%{name}-%{version}/examples
install -m 644 kde/icons/hicolor/32x32/mimetypes/chemtool.png \
%{buildroot}%{_kdedatadir}/icons/hicolor/32x32/mimetypes/chemtool.png
install -m 644 kde/mimelnk/application/x-chemtool.desktop %{buildroot}%{_kdedatadir}/mimelnk/application/x-chemtool.desktop
install -D -m 644 kde/applnk/Graphics/chemtool.desktop %{buildroot}%{_datadir}/applications/chemtool.desktop
install -m 644 examples/* %{buildroot}%{_kdedatadir}/apps/%{name}-%{version}/examples
#for lang in es_ES hu_HU it_IT ru_RU
#do
# dest=$(echo $lang | cut -d_ -f1)
# mv %{buildroot}%{_kdedatadir}/locale/$lang \
# %{buildroot}%{_kdedatadir}/locale/$dest 2>&1 > /dev/null
#done
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root)
%{_kdebindir}/chemtoolbg
%{_kdebindir}/chemtool
%{_kdebindir}/cht
%{_datadir}/applications/chemtool.desktop
%{_kdedatadir}/mimelnk/application/x-chemtool.desktop
%dir %{_kdedatadir}/apps/chemtool-%{version}/examples
%{_kdedatadir}/apps/chemtool-%{version}/examples/*.mol
%{_kdedatadir}/apps/chemtool-%{version}/examples/*.cht
%{_kdedatadir}/apps/chemtool-%{version}/examples/*.pdb
%{_kdedatadir}/apps/chemtool-%{version}/examples/Neu2
%{_kdedatadir}/apps/chemtool-%{version}/examples/labeltest
%{_kdedatadir}/apps/chemtool-%{version}/examples/*.sdf
%{_kdedatadir}/icons/hicolor/32x32/mimetypes/chemtool.png
%{_mandir}/man1/chemtool.1.gz
%{_mandir}/man1/cht.1.gz
%doc ChangeLog NEWS README TODO
%changelog
* Sun Aug 18 2013 Automatic Build System <autodist@mambasoft.it> 1.6.14-1mamba
- automatic update by autodist
* Wed Dec 28 2011 Automatic Build System <autodist@mambasoft.it> 1.6.13-1mamba
- automatic version update by autodist
* Mon Jun 29 2009 Automatic Build System <autodist@mambasoft.it> 1.6.12-1mamba
- automatic update by autodist
* Fri Jul 25 2008 gil <puntogil@libero.it> 1.6.11-1mamba
- update to 1.6.11
- removed gcc patch, edit patch desktop
- added new patches for: ../applnk/Graphics/chemtool.desktop ../mimelnk/application/x-chemtool.desktop
* Thu Nov 10 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.6.7-1qilnx
- update to version 1.6.7 by autospec
* Tue Aug 30 2005 Massimo Pintore <massimo.pintore@qilinux.it> 1.6.6-2qilnx
- added missing requirements
- rebuilt with '--with-kdedir=%{_prefix}'
* Fri Jul 08 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.6.6-1qilnx
- package created by autospec