add desktop file for the GUI
This commit is contained in:
parent
257aff8dfa
commit
b3400f9d4f
|
@ -0,0 +1,11 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=OpenBabel
|
||||||
|
GenericName=Molecule Format Converter
|
||||||
|
Comment=Convert between many known molecule data formats
|
||||||
|
Exec=obgui
|
||||||
|
Icon=babel
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
StartupNotify=true
|
||||||
|
Categories=Education;Science;Chemistry;Physics;Biology;
|
||||||
|
|
|
@ -15,12 +15,14 @@ Summary: Chemistry software file format converter
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: Applications/File
|
Group: Applications/File
|
||||||
URL: http://openbabel.org/
|
URL: http://openbabel.org/
|
||||||
Source: http://downloads.sourceforge.net/sourceforge/openbabel/%{name}-%{version}%{beta_str}.tar.gz
|
Source0: http://downloads.sourceforge.net/sourceforge/openbabel/%{name}-%{version}%{beta_str}.tar.gz
|
||||||
|
Source1: obgui.desktop
|
||||||
Patch1: %{name}-rpm.patch
|
Patch1: %{name}-rpm.patch
|
||||||
# fix plugin directory location (#680292, patch by lg)
|
# fix plugin directory location (#680292, patch by lg)
|
||||||
Patch4: openbabel-2.3.0-plugindir.patch
|
Patch4: openbabel-2.3.0-plugindir.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: eigen2-devel
|
BuildRequires: eigen2-devel
|
||||||
BuildRequires: inchi-devel >= 1.0.3
|
BuildRequires: inchi-devel >= 1.0.3
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
|
@ -32,6 +34,7 @@ BuildRequires: ruby-devel
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
BuildRequires: wxGTK-devel
|
BuildRequires: wxGTK-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
BuildRequires: %{_bindir}/convert
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Open Babel is a free, open-source version of the Babel chemistry file
|
Open Babel is a free, open-source version of the Babel chemistry file
|
||||||
|
@ -49,6 +52,7 @@ software.
|
||||||
%package gui
|
%package gui
|
||||||
Summary: Chemistry software file format converter - GUI version
|
Summary: Chemistry software file format converter - GUI version
|
||||||
Group: Applications/File
|
Group: Applications/File
|
||||||
|
Requires: hicolor-icon-theme
|
||||||
|
|
||||||
%description gui
|
%description gui
|
||||||
Open Babel is a free, open-source version of the Babel chemistry file
|
Open Babel is a free, open-source version of the Babel chemistry file
|
||||||
|
@ -123,6 +127,7 @@ Ruby wrapper for the Open Babel library.
|
||||||
chmod 644 src/formats/{fchk,genbank,mmcif}format.cpp
|
chmod 644 src/formats/{fchk,genbank,mmcif}format.cpp
|
||||||
chmod 644 src/math/align.cpp
|
chmod 644 src/math/align.cpp
|
||||||
chmod 644 include/openbabel/{graphsym.h,math/align.h}
|
chmod 644 include/openbabel/{graphsym.h,math/align.h}
|
||||||
|
convert src/GUI/babel.xpm -transparent white babel.png
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake \
|
%cmake \
|
||||||
|
@ -145,6 +150,10 @@ rm $RPM_BUILD_ROOT%{_libdir}/perl5/perllocal.pod
|
||||||
rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Chemistry/OpenBabel/{.packlist,OpenBabel.bs}
|
rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Chemistry/OpenBabel/{.packlist,OpenBabel.bs}
|
||||||
chmod 755 $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Chemistry/OpenBabel/OpenBabel.so
|
chmod 755 $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Chemistry/OpenBabel/OpenBabel.so
|
||||||
|
|
||||||
|
desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
|
||||||
|
install -Dpm644 babel.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/babel.png
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
@ -167,6 +176,8 @@ chmod 755 $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Chemistry/OpenBabel/OpenBabel.s
|
||||||
%files gui
|
%files gui
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/obgui
|
%{_bindir}/obgui
|
||||||
|
%{_datadir}/applications
|
||||||
|
%{_datadir}/icons/hicolor/32x32/apps/babel.png
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
@ -204,6 +215,7 @@ chmod 755 $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Chemistry/OpenBabel/OpenBabel.s
|
||||||
* Fri Oct 21 2011 Dominik Mierzejewski <rpm@greysector.net> 2.3.0-1
|
* Fri Oct 21 2011 Dominik Mierzejewski <rpm@greysector.net> 2.3.0-1
|
||||||
- update to 2.3.1
|
- update to 2.3.1
|
||||||
- drop obsolete patches (merged upstream)
|
- drop obsolete patches (merged upstream)
|
||||||
|
- add desktop file for the GUI
|
||||||
|
|
||||||
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.3.0-5
|
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.3.0-5
|
||||||
- Perl mass rebuild
|
- Perl mass rebuild
|
||||||
|
|
Loading…
Reference in New Issue