Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MadCAD
gwyddion
gwyddion.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gwyddion.spec of Package gwyddion
# @(#) $Id: gwyddion.spec.in 8982 2009-01-09 15:18:07Z yeti-dn $ # Optional features: # --with-kde4-thumbnailer Enables the kde4-thumbnailer subpackage (and # introduces lots of new dependencies). %{expand:%global distro_is_fedora %(test ! -f /etc/fedora-release; echo $?)} %{expand:%global distro_is_suse %(test ! -f /etc/SuSE-release; echo $?)} %{expand:%global distro_is_mdk %(test ! -f /etc/mandriva-release; echo $?)} #%define enable_kde4_thumbnailer %{?_with_kde4_thumbnailer:1}%{!?_with_kde4_thumbnailer:0} Name: gwyddion Version: 2.16 Release: 1 Summary: An SPM data visualization and analysis tool Group: Applications/Engineering License: GNU GPL URL: http://gwyddion.net/ Source0: http://gwyddion.net/download/%{version}/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -un) Requires(pre): /sbin/ldconfig Requires(postun): /sbin/ldconfig Requires: %{name}-lang = %{version} BuildRequires: gtk2-devel >= 2.8 BuildRequires: glib2-devel >= 2.8 BuildRequires: libtiff-devel >= 3.6 BuildRequires: pango-devel >= 1.10 BuildRequires: gtkglext-devel BuildRequires: libxml2-devel BuildRequires: python-devel >= 2.2 BuildRequires: ruby >= 1.8 BuildRequires: gettext BuildRequires: desktop-file-utils >= 0.9 BuildRequires: pkgconfig BuildRequires: findutils BuildRequires: update-desktop-files BuildRequires: xorg-x11-Mesa-devel BuildRequires: xorg-x11-libXmu-devel BuildRequires: python-gtk-devel BuildRequires: gtksourceview-devel BuildRequires: gconf2 %gconf_schemas_prereq BuildRequires: libkde4-devel >= 4.0 BuildRequires: fam-devel BuildRequires: fftw3 >= 3.1 BuildRequires: fftw3-devel >= 3.1 # Fedora guarantees these two, other may not BuildRequires: perl >= 5.005 BuildRequires: sed # The only packaged perl module is private, don't expose it. %define __perl_provides %{nil} %define pkglibdir %{_libdir}/%{name} %define pkglibexecdir %{_libexecdir}/%{name} %define pkgdatadir %{_datadir}/%{name} %define pkgincludedir %{_includedir}/%{name} %define gtkdocdir %{_datadir}/gtk-doc/html %define gconfdir %{_sysconfdir}/gconf/schemas # gconftool-2 is executed in a silly manner, make macros for that. #%define gconftool GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) gconftool-2 #%define schemas %{gconfdir}/gwyddion-thumbnailer.schemas %package devel Summary: Headers, libraries and tools for Gwyddion module development Group: Development/Libraries Requires: %{name} = %{version} # This pulls everything else Requires: gtk2-devel >= 2.8 %if %{distro_is_fedora} Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]") %endif #%package thumbnailer-gconf #Summary: GConf schemas for gwyddion-thumbnailer integration #Group: System Environment/Libraries #Requires: %{name} = %{version} #Requires(pre): GConf2 #Requires(post): GConf2 #Requires(preun): GConf2 %package thumbnailer-kde4 Summary: KDE4 gwyddion thumbnailer module Group: System Environment/Libraries Requires: %{name} = %{version} # We do not actually link with them, but they own the module directory. Requires: libkde4-devel >= 4.0 %description Gwyddion is a modular SPM (Scanning Probe Microsopy) data visualization and analysis tool written with Gtk+. It can be used for all most frequently used data processing operations including: leveling, false color plotting, shading, filtering, denoising, data editing, integral transforms, grain analysis, profile extraction, fractal analysis, and many more. The program is primarily focused on SPM data analysis (e.g. data obtained from AFM, STM, NSOM, and similar microscopes). However, it can also be used for analysis of SEM (Scanning Electron Microscopy) data or any other 2D data. %description devel Header files, libraries and tools for Gwyddion module and plug-in development. This package also contains the API docmentation and sample plug-ins in various programming languages. #%description thumbnailer-gconf #GConf schemas that register gwyddion-thumbnailer as thumbnailer for SPM files #in GNOME and XFce. %description thumbnailer-kde4 Gwyddion-thumbnailer based KDE thumbnail creator extension module for SPM files. %lang_package %prep %setup -q # Don't install .la files. sed -i -e '/# Install the pseudo-library/,/^$/d' ltmain.sh # Replace universal /usr/bin/env shbang with the real thing. sed -i -e '1s/env *//' plugins/process/*.{py,rb,pl} %build %configure --with-kde4-thumbnailer --without-pascal --disable-rpath make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %find_lang %{name} #NEW SECTION %find_gconf_schemas %{__rm} -f %{buildroot}%{_libdir}/*.la cat %{name}.schemas_list > %{name}.lst # Get rid of .la files if some silly distros (hello Mandriva) overwrote our # fixed libtool with some crap. #find $RPM_BUILD_ROOT -name \*.la -print0 | xargs -0 rm -f # I cannot express this as %%files in a sensible manner, especially not when # python byte-compilation kicks in. Set permissions in the filesystem. find $RPM_BUILD_ROOT%{pkglibexecdir} -type f -print0 | xargs -0 chmod 755 find $RPM_BUILD_ROOT%{pkglibexecdir} -type f -name \*.rgi -print0 | xargs -0 chmod 644 # Perl, Python, and Ruby modules are private, remove the Perl man page. rm -f $RPM_BUILD_ROOT%{_mandir}/man3/Gwyddion::dump.* %suse_update_desktop_file -c %{name} "gwyddion" "SPM data analysis tool" %{name} "%{name}" Education Science GTK Physics Engineering RasterGraphics 2DGraphics Graphics %post /sbin/ldconfig update-mime-database %{_datadir}/mime &>/dev/null || : update-desktop-database &>/dev/null || : %postun /sbin/ldconfig update-mime-database %{_datadir}/mime &>/dev/null || : update-desktop-database &>/dev/null || : #%pre thumbnailer-gconf #if [ "$1" -gt 1 ]; then # %{gconftool} --makefile-uninstall-rule %{schemas} >/dev/null || : #fi # # #%post thumbnailer-gconf #%{gconftool} --makefile-install-rule %{schemas} >/dev/null || : #%preun thumbnailer-gconf #if [ "$1" -eq 0 ]; then # %{gconftool} --makefile-uninstall-rule %{schemas} >/dev/null || : #fi #ANOTHER NEW SECTION %pre -f %{name}.schemas_pre %preun -f %{name}.schemas_preun %posttrans -f %{name}.schemas_posttrans %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lst %defattr(755,root,root) %{_bindir}/%{name} %{_bindir}/%{name}-thumbnailer %defattr(-,root,root) %doc AUTHORS COPYING INSTALL.%{name} NEWS README THANKS %{pkgdatadir}/pixmaps/*.png %{pkgdatadir}/pixmaps/*.ico %{pkgdatadir}/gradients/* %{pkgdatadir}/glmaterials/* %{pkgdatadir}/pygwy/* %{pkgdatadir}/ui/* %dir %{pkgdatadir}/pixmaps %dir %{pkgdatadir}/gradients %dir %{pkgdatadir}/glmaterials %dir %{pkgdatadir}/pygwy %dir %{pkgdatadir}/ui %dir %{pkgdatadir} %{_mandir}/man1/%{name}.1* %{_mandir}/man1/%{name}-thumbnailer.1* %{_datadir}/icons/hicolor/48x48/apps/%{name}.png %{pkglibdir}/modules/file/*.so %{pkglibdir}/modules/graph/*.so %{pkglibdir}/modules/layer/*.so %{pkglibdir}/modules/process/*.so %{pkglibdir}/modules/tool/*.so %{pkglibdir}/modules/*.so %dir %{pkglibdir}/modules/file %dir %{pkglibdir}/modules/graph %dir %{pkglibdir}/modules/layer %dir %{pkglibdir}/modules/process %dir %{pkglibdir}/modules/tool %dir %{pkglibdir}/modules %dir %{pkglibdir} %{_libdir}/*.so.* %{_datadir}/applications/%{name}.desktop %{_datadir}/mime/packages/%{name}.xml %files lang -f %{name}.lang %files devel %defattr(-,root,root) %doc devel-docs/CODING-STANDARDS %doc data/%{name}.vim %{pkgincludedir}/app/*.h %{pkgincludedir}/libdraw/*.h %{pkgincludedir}/libprocess/*.h %{pkgincludedir}/libgwyddion/*.h %{pkgincludedir}/libgwydgets/*.h %{pkgincludedir}/libgwymodule/*.h %dir %{pkgincludedir}/app %dir %{pkgincludedir}/libdraw %dir %{pkgincludedir}/libprocess %dir %{pkgincludedir}/libgwyddion %dir %{pkgincludedir}/libgwydgets %dir %{pkgincludedir}/libgwymodule %dir %{pkgincludedir} %{_libdir}/*.so %{_libdir}/pkgconfig/gwyddion.pc #%dir %{_libdir}/pkgconfig # Documentation %doc %{gtkdocdir}/libgwyapp/* %doc %{gtkdocdir}/libgwydraw/* %doc %{gtkdocdir}/libgwyprocess/* %doc %{gtkdocdir}/libgwyddion/* %doc %{gtkdocdir}/libgwydgets/* %doc %{gtkdocdir}/libgwymodule/* %doc %dir %{gtkdocdir}/libgwyapp %doc %dir %{gtkdocdir}/libgwydraw %doc %dir %{gtkdocdir}/libgwyprocess %doc %dir %{gtkdocdir}/libgwyddion %doc %dir %{gtkdocdir}/libgwydgets %doc %dir %{gtkdocdir}/libgwymodule %doc %dir %{gtkdocdir} %doc %dir %{_datadir}/gtk-doc %{pkglibdir}/include/gwyconfig.h %dir %{pkglibdir}/include # Plug-ins and plug-in devel stuff %{pkglibdir}/perl/Gwyddion/* %dir %{pkglibdir}/perl/Gwyddion %dir %{pkglibdir}/perl %{pkglibdir}/python/Gwyddion/* %dir %{pkglibdir}/python/Gwyddion %dir %{pkglibdir}/python %{pkglibdir}/ruby/gwyddion/* %dir %{pkglibdir}/ruby/gwyddion %dir %{pkglibdir}/ruby # Use filesystem permissions here. %defattr(-,root,root,755) %{pkglibexecdir}/plugins/file/* %{pkglibexecdir}/plugins/process/* %dir %{pkglibexecdir}/plugins/file %dir %{pkglibexecdir}/plugins/process %dir %{pkglibexecdir}/plugins %dir %{pkglibexecdir} # maybe %files #%files thumbnailer-gconf #%defattr(-,root,root) # %dir %{gconfdir} # %{gconfdir}/*.schemas #%dir %{_datadir}/gconf #%dir %{_datadir}/gconf/schemas #%dir %{_datadir}/gconf/schemas/* %files thumbnailer-kde4 %defattr(-,root,root) %{_libdir}/kde4/gwythumbcreator.so
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor