Name: fityk Summary: Non-linear curve fitting and data analysis Version: 1.3.1 Release: 7%{?dist} Source0: https://github.com/wojdyr/fityk/releases/download/v%{version}/%{name}-%{version}.tar.bz2 # patch to check for cmpfit dependency Patch0: cmpfit_config.patch Patch1: wxgui-gtk2-version-check.patch URL: http://fityk.nieto.pl/ License: GPLv2+ Group: Applications/Engineering BuildRequires: readline-devel >= 4.2 BuildRequires: ncurses-devel BuildRequires: desktop-file-utils BuildRequires: xylib-devel BuildRequires: zlib-devel BuildRequires: boost-devel >= 1.35 BuildRequires: compat-wxGTK3-gtk2-devel BuildRequires: lua-devel >= 5.1 BuildRequires: libtool BuildRequires: swig BuildRequires: python-sphinx BuildRequires: cmpfit-devel Requires: gnuplot %description Fityk is a program for nonlinear curve-fitting of analytical functions (especially peak-shaped) to data (usually experimental data). It can also be used for visualization of x-y data only. %package devel Summary: Header files, libraries and development documentation for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the header files, static libraries and development documentation for %{name}. If you like to develop programs that make use of %{name}, you will need to install %{name}-devel. %prep %setup -q %patch0 -p0 %patch1 -p0 #mv {S:1} doc/ #tar xf {S:2} #mv img doc/ # rmeove pre-built documentation rm -fr doc/html # building against wxGTK3 sed -i 's/\=wx-config/\=wx-config-3.0-gtk2/' m4/wxwin.m4 # change lua version in configure file # sed -i 's/AX_LUA_HEADERS_VERSION(501, 503)/AX_LUA_HEADERS_VERSION(501, 504)/' configure.ac #unbundle cmpfit rm -fr fityk/cmpfit sed -i 's/\#include \"cmpfit\/mpfit.h\"/\#include \"mpfit.h\"/' fityk/CMPfit.h #sed -i 's/swig\/luarun.h \\/swig\/luarun.h/' fityk/Makefile.am sed -i 's/cmpfit\/mpfit.c cmpfit\/mpfit.h/mpfit.h/' fityk/Makefile.am %build export CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" LDFLAGS="%{optflags} -lmpfit" autoreconf -iv %configure --disable-xyconvert # remove rpath #sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool #sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make V=1 %{?_smp_mflags} # Temporarily disable building documentation # needs python-sphinx >=1.5 # build html documentation #pushd doc #make pdf #popd %install make install DESTDIR=%{buildroot} # get rid of libtool archives find %{buildroot} -name '*.la' -exec rm -f {} ';' find %{buildroot} -name '*.a' -exec rm -f {} ';' #rm -f $RPM_BUILD_ROOT%{_libdir}/*.la # SWIG bindings are not packaged, remove samples #rm -f %#{buildroot}%#{_datadir}/%#{name}/samples/*.py* #rm -f %#{buildroot}%#{_datadir}/%#{name}/samples/*.lua #rm -f %#{buildroot}%#{_datadir}/%#{name}/samples/*.pl #ln -s fityk.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/cfityk.1.gz desktop-file-validate %{buildroot}/%{_datadir}/applications/fityk.desktop %post update-desktop-database &> /dev/null || : /sbin/ldconfig 2>/dev/null touch --no-create %{_datadir}/mime/packages &> /dev/null || : %postun update-desktop-database &> /dev/null || : /sbin/ldconfig 2>/dev/null if [ $1 -eq 0 ]; then update-mime-database %{_datadir}/mime &> /dev/null || : fi %posttrans update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %files %doc COPYING NEWS %dir %{_datadir}/%{name} %{_datadir}/%{name}/samples/ %{_bindir}/* %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg #{_datadir}/%{name}/html/ %{_datadir}/applications/*.desktop %{_libdir}/*.so.* %{_mandir}/man1/* ## %{_datadir}/pixmaps/* %{_datadir}/mime/packages/* %files devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/*.so %{_datadir}/%{name}/samples/*.cc %changelog * Mon May 15 2017 Fedora Release Engineering - 1.3.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.3.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Jan 27 2017 Jonathan Wakely - 1.3.1-5 - Rebuilt for Boost 1.63 * Fri Jan 27 2017 Jonathan Wakely - 1.3.1-4 - Rebuilt for Boost 1.63 * Thu Jan 12 2017 Igor Gnatenko - 1.3.1-3 - Rebuild for readline 7.x * Tue Dec 20 2016 Mukundan Ragavan - 1.3.1-2 - Disable building docs temporarily (needs python-sphinx >=1.5) * Tue Dec 20 2016 Mukundan Ragavan - 1.3.1-1 - Update to 1.3.1 * Wed Feb 03 2016 Fedora Release Engineering - 1.3.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jan 15 2016 Jonathan Wakely - 1.3.0-7 - Rebuilt for Boost 1.60 * Thu Aug 27 2015 Jonathan Wakely - 1.3.0-6 - Rebuilt for Boost 1.59 * Tue Aug 04 2015 Mukundan Ragavan - 1.3.0-5 - Built against GTK2 built wx widgets - BR: compat-wxGTK3-gtk2 - patch for wx-config version check - removed lua version patch - added icons and removed README and TODO * Wed Jul 29 2015 Fedora Release Engineering - 1.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159 * Wed Jul 22 2015 David Tardon - 1.3.0-3 - rebuild for Boost 1.58 * Wed Jun 17 2015 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon May 25 2015 Mukundan Ragavan - 1.3.0-1 - Update to 1.3.0 - bugfix update * Sat May 02 2015 Kalev Lember - 1.2.9-6 - Rebuilt for GCC 5 C++11 ABI change * Sat Jan 31 2015 Mukundan Ragavan - 1.2.9-5 - Fix configure file for lua 5.3 building * Tue Jan 27 2015 Petr Machata - 1.2.9-4 - Rebuild for boost 1.57.0 * Thu Oct 02 2014 Rex Dieter 1.2.9-3 - update mime scriptlet * Sat Aug 16 2014 Fedora Release Engineering - 1.2.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Thu Jun 05 2014 Mukundan Ragavan - 1.2.9-1 - updated to latest upstream version - built against patched cmpfit - Added BuildRequires for cmpfit-devel * Fri Feb 28 2014 Mukundan Ragavan - 1.2.1-1 - updated to latest upstream version - disabled using MPfit for now (removed bundling) * Sat Aug 03 2013 Fedora Release Engineering - 0.9.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jul 30 2013 Petr Machata - 0.9.8-6 - Rebuild for boost 1.54.0 * Wed Feb 13 2013 Fedora Release Engineering - 0.9.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 0.9.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Feb 28 2012 Fedora Release Engineering - 0.9.8-3 - Rebuilt for c++ ABI breakage * Fri Jan 13 2012 Fedora Release Engineering - 0.9.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Jun 15 2011 Marcin Wojdyr - 0.9.8-1 - update to 0.9.8 - removed configure flag --with-samples - removed minimal boost version - updated URL * Tue Feb 08 2011 Fedora Release Engineering - 0.9.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Oct 12 2010 Marcin Wojdyr - 0.9.4-1 - update to 0.9.4 - update BuildRequires and files - add configure flag --disable-xyconvert and remove -DNDEBUG - symlink man page for cfityk * Wed Jul 14 2010 Dan HorĂ¡k - 0.8.8-2 - rebuilt against wxGTK-2.8.11-2 * Tue Aug 18 2009 Marcin Wojdyr - 0.8.8-1 - upstream license was changed from GPLv2 to GPLv2+ - install mime files and call update-mime-database - use configure flag --with-samples to install samples - update %%doc - do not move program's icon from pixmaps/ to icons/ - add xylib-devel to BuildRequires - add minimal wxGTK version - remove not needed CXX and CC variables from configure and make - drop obsolete changes to desktop file - drop obsolete patch - update to 0.8.8. Closes Red Hat Bugzilla bug #511758. Closes Red Hat Bugzilla bug #511307. * Fri Jul 24 2009 Fedora Release Engineering - 0.8.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering - 0.8.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Jul 18 2008 Tom "spot" Callaway - 0.8.1-14 - fix license tag * Mon Apr 07 2008 Jesse Keating - 0.8.1-13 - Patch for GCC 4.3 * Tue Feb 19 2008 Fedora Release Engineering - 0.8.1-11 - Autorebuild for GCC 4.3 * Wed Aug 29 2007 Fedora Release Engineering - 0.8.1-10 - Rebuild for selinux ppc32 issue. * Thu Jul 19 2007 John Pye 0.8.1-9 - First import to Fedora package management system * Sun Jun 24 2007 John Pye 0.8.1-8 - Remove 'INSTALL' - Remove 'tips.txt', kepts 'fityk_tips.txt' * Sun Jun 24 2007 John Pye 0.8.1-7 - Taking suggestions from Mamoru Tasaka: - Removing unneeded install steps - Removing "LDFLAGS='-s'"; can't recall why it was there... - Fixing timestamps with 'install -p' - Remove mime-database update * Sun Jun 24 2007 John Pye 0.8.1-6 - fixing for build on Mandrive 2006 - added missing dependencies following testing on openSUSE Build Service * Mon May 07 2007 Tom "spot" Callaway 0.8.1-5 - minor spec file cleanups (drop %%{vendor}) - fix up the included desktop file, get rid of the broken one - get rid of rpath with libtool override * Sun May 06 2007 John Pye 0.8.1-4 - Fixed file 02755 file permissions * Wed May 02 2007 John Pye 0.8.1-3 - Separated -devel files into new package - Added ldconfig lines - Remove Makefiles from doc dirs. * Tue May 01 2007 John Pye 0.8.1-2 - Corrected according to suggestions from Comrade Tom Callaway: - makeinstall macro removed and replaced with 'make DESTDIR=' - _smp_mflags added - removed .la file - use of ccache is now conditional only - removed runtime deps that will be autodetected - removed unnecc buildtime deps * Fri Apr 27 2007 John Pye 0.8.1-1 - Using .desktop file from the tarball - Updating to new icon given in the tarball - Fix _mandir - Wildcard on .so.0.* - Got rid of CVS file purge - Install fityk_tips.txt * Fri Apr 27 2007 John Pye 0.8.1-0 - 0.8.1 - Converted to Fedora * Thu Jul 1 2004 Austin Acton 0.4.2-1mdk - 0.4.2 * Wed Jun 16 2004 Austin Acton 0.4.1-1mdk - 0.4.1 - configure 2.5 - new menu # -*- coding: UTF-8 -*-