[10715] | 1 | %define pkg_name xyscan |
---|
[11601] | 2 | %define pkg_version 4.3.0 |
---|
| 3 | %define pkg_version_s 4.30 |
---|
[12270] | 4 | %define pkg_release 2%{?_dist_release} |
---|
[10715] | 5 | |
---|
| 6 | Summary: A data thief for scientist |
---|
| 7 | Name: %{pkg_name} |
---|
| 8 | Version: %{pkg_version} |
---|
| 9 | Release: %{pkg_release} |
---|
| 10 | |
---|
| 11 | License: GPLv3 or later |
---|
| 12 | Group: Applications/Edutainment |
---|
| 13 | URL: http://rhig.physics.yale.edu/~ullrich/software/xyscan/ |
---|
[11246] | 14 | Source0: http://rhig.physics.yale.edu/~ullrich/software/xyscan/Distributions/%{pkg_version_s}/%{name}-%{pkg_version_s}-src.tgz |
---|
[10715] | 15 | Source1: xyscan.desktop |
---|
| 16 | |
---|
| 17 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | |
---|
[11246] | 19 | BuildRequires: qt5-qtbase-devel |
---|
| 20 | BuildRequires: qt5-qtmultimedia-devel |
---|
| 21 | BuildRequires: poppler-qt5-devel |
---|
| 22 | Requires: qt5-qtbase |
---|
| 23 | Requires: qt5-qtmultimedia |
---|
| 24 | Requires: poppler-qt5 |
---|
[10715] | 25 | |
---|
| 26 | Vendor: Project Vine |
---|
| 27 | Distribution: Vine Linux |
---|
| 28 | Packager: ara_t |
---|
| 29 | |
---|
[11246] | 30 | |
---|
[10715] | 31 | %description |
---|
| 32 | xyscan is a tool for scientists in need to extract values of data points |
---|
| 33 | from a plot that is available in electronic format. It can handle plots |
---|
| 34 | with linear and logarithmic scales, tilted (distorted plots), and allows |
---|
| 35 | to "scan" error bars as well. In fact xyscan can be used for extracting |
---|
| 36 | numeric values from any kind of 2D technical drawings. |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %prep |
---|
| 40 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 41 | %setup -q -n %{name} |
---|
| 42 | |
---|
| 43 | %build |
---|
[11246] | 44 | qmake-qt5 xyscan.pro INCPATH="%{_includedir}/poppler/qt5" |
---|
| 45 | %{__perl} -pi -e 's|/usr/local/bin/|/usr/bin/|g' Makefile |
---|
| 46 | %{__perl} -pi -e 's|/usr/local/share/|/usr/share/|g' Makefile |
---|
[10715] | 47 | %{__make} %{?_smp_mflags} |
---|
| 48 | |
---|
| 49 | %install |
---|
[11246] | 50 | %{__make} install INSTALL_ROOT=${RPM_BUILD_ROOT} |
---|
[10715] | 51 | |
---|
[11246] | 52 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/applications/ |
---|
| 53 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/icons/ |
---|
[10715] | 54 | %{__cp} -a %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/applications/ |
---|
| 55 | %{__cp} images/xyscanIcon.png ${RPM_BUILD_ROOT}%{_datadir}/icons/ |
---|
| 56 | |
---|
| 57 | %clean |
---|
| 58 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | %files |
---|
| 62 | %defattr(-,root,root) |
---|
[11246] | 63 | %doc license.txt |
---|
[10715] | 64 | %{_bindir}/xyscan |
---|
[11246] | 65 | # %{_libdir}/xyscan-%{version}/ |
---|
[10715] | 66 | %{_datadir}/applications/xyscan.desktop |
---|
| 67 | %{_datadir}/icons/xyscanIcon.png |
---|
[11246] | 68 | %{_datadir}/xyscan/ |
---|
[10715] | 69 | |
---|
| 70 | |
---|
| 71 | %changelog |
---|
[12270] | 72 | * Mon Oct 14 2019 Toshiaki Ara <ara_t@384.jp> 4.3.0-2 |
---|
| 73 | - rebuild wiith poppler-0.81.0 |
---|
| 74 | |
---|
[11601] | 75 | * Sun Apr 01 2018 Toshiaki Ara <ara_t@384.jp> 4.3.0-1 |
---|
| 76 | - update to 4.3.0 |
---|
| 77 | |
---|
[11315] | 78 | * Wed Jan 03 2018 Toshiaki Ara <ara_t@384.jp> 4.2.1-2 |
---|
| 79 | - rebuild under poppler-0.61.1 |
---|
| 80 | |
---|
[11246] | 81 | * Sat Dec 02 2017 Toshiaki Ara <ara_t@384.jp> 4.2.1-1 |
---|
| 82 | - update to 4.2.1 for VineSeed |
---|
| 83 | |
---|
[10715] | 84 | * Sat Jul 30 2016 Toshiaki Ara <ara_t@384.jp> 3.3.0-1 |
---|
| 85 | - new package |
---|
| 86 | |
---|