Compare commits

..

66 Commits
f20 ... rawhide

Author SHA1 Message Date
Fedora Release Engineering
3b7541f408 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 02:04:07 +00:00
Sandro Mani
40551cc365 Rebuild for gdal-3.5.0 and/or openjpeg-2.5.0 2022-05-21 00:11:21 +02:00
Fedora Release Engineering
3de600f939 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 02:00:37 +00:00
Fedora Release Engineering
c4fe000360 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 22:00:49 +00:00
Fedora Release Engineering
97f3427e11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 04:37:24 +00:00
Tom Stellard
55b11d94cd Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2020-12-17 05:06:12 +00:00
Fedora Release Engineering
1647fa7cb6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 16:34:32 +00:00
sagitter
825eb46a21 Drop bogus runtime dependency (rhbz#1797268) 2020-02-02 10:16:17 +01:00
Fedora Release Engineering
e6f0895bc7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 17:20:56 +00:00
Marek Kasik
50c4f7f6fa Rebuild for poppler-0.84.0 2020-01-17 12:30:03 +01:00
sagitter
73a9dfc020 Release 12.1 2019-11-30 18:42:47 +01:00
sagitter
f1ca767e1c SPEC file enhancements 2019-08-24 14:36:25 +02:00
sagitter
60b8361695 Release 12.0 2019-08-23 19:50:59 +02:00
Fedora Release Engineering
b210960b07 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 23:30:36 +00:00
sagitter
91e8e5a0aa Release 11.3 2019-07-20 19:24:21 +02:00
sagitter
338a760444 Release 11.2 2019-05-02 20:12:36 +02:00
sagitter
4059231a6f Release 10.12 2019-03-07 12:10:20 +01:00
Fedora Release Engineering
6c6c83e833 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 18:40:46 +00:00
Igor Gnatenko
8ec4d2ad6b Remove obsolete scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-01-29 06:15:45 +01:00
Igor Gnatenko
86fc826246 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:01 +01:00
sagitter
3623e4c86a Update to 10.11 2018-10-28 12:16:58 +01:00
sagitter
e89dbe27bc Fix variables for using correctly pkgconfig 2018-08-18 11:19:19 +02:00
sagitter
d9f01cd025 Update to 10.9 2018-08-17 21:23:19 +02:00
Fedora Release Engineering
1202b9bec1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-12 23:53:22 +00:00
sagitter
35638396c3 Update to 10.7 2018-07-04 18:33:53 +02:00
sagitter
b4f53235b1 Update to 10.6 2018-05-05 23:44:57 +02:00
sagitter
9d2d9cbcda Add gcc gcc-c++ BR 2018-02-22 17:38:54 +01:00
Fedora Release Engineering
4bd9438204 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 08:30:05 +00:00
sagitter
62c0fafa8b Appdata file moved into metainfo data directory 2017-12-21 19:25:07 +01:00
sagitter
e82d504c2e Update to 10.4 2017-10-21 13:05:03 +02:00
sagitter
79da84757b Update to 10.2 2017-08-21 11:38:08 +02:00
Fedora Release Engineering
6f9a2b2780 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-02 20:03:44 +00:00
Fedora Release Engineering
99a078e6e1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 07:27:28 +00:00
sagitter
991946bebc Update to 10.1 2017-07-20 11:34:51 +02:00
Fedora Release Engineering
f775f0431b - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild 2017-05-15 20:14:39 +00:00
sagitter
f3533f2aa4 Update to 10.0 2017-04-03 12:25:40 +02:00
Fedora Release Engineering
a5438cb010 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 09:12:48 +00:00
sagitter
1e24238345 Conformed to new rules for scriptlets 2017-01-05 20:56:23 +01:00
sagitter
87e9afb2fd Update to 9.8 2016-12-11 11:31:51 +01:00
sagitter
0b4c0b0920 Update to 9.7 2016-12-01 15:27:27 +01:00
sagitter
742e923610 Update to 9.6 2016-11-22 11:48:33 +01:00
sagitter
c3769b66dc Update to 9.5 2016-10-10 11:56:40 +02:00
sagitter
c66e8648e6 Update to 9.4 2016-10-01 19:49:25 +02:00
sagitter
942c45e589 Update to 9.3 2016-09-20 21:16:46 +02:00
sagitter
0cddf0d041 Update to 9.2 2016-08-28 11:26:51 +02:00
sagitter
c765533798 Update to 9.1 2016-07-31 11:38:05 +02:00
sagitter
27061ba811 Update to 9.0 2016-07-19 12:13:57 +02:00
sagitter
307cd2c388 Update to 8.2 2016-06-09 20:41:57 +02:00
sagitter
62ada1d390 Update to 8.1 2016-05-31 11:40:09 +02:00
sagitter
1d5331a8ed Update to 7.2 2016-04-25 12:36:26 +02:00
sagitter
6041425589 Update to 7.1 2016-03-24 14:22:51 +01:00
sagitter
9fdd0cd0f6 Update of appdata file 2016-03-06 17:19:15 +01:00
sagitter
7d2914d540 Update to 7.0 2016-03-06 14:07:17 +01:00
sagitter
3db2256db0 Update to commit #b6ad5b 2016-02-04 21:20:13 +01:00
Dennis Gilmore
e826f6bf63 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-03 19:50:46 +00:00
Rex Dieter
96368e2bd8 drop -makefile qmake flag, it's already the default 2016-02-01 11:43:23 -06:00
Rex Dieter
bb730ba0be use %qmake_qt5 macro (instead of settings flags by hand) 2016-02-01 11:31:15 -06:00
sagitter
7f7d2295c3 Update to 6.2 2015-12-01 20:25:14 +01:00
sagitter
a46172164c Excluding PPC arch on EPEL6 because of missing BR packages (log4cpp) 2015-11-08 13:53:17 +01:00
sagitter
5af5dcb822 Update to 6.1 2015-10-31 23:56:58 +01:00
sagitter
07797559d3 Build first release 2015-10-25 14:40:04 +01:00
sagitter
14e1d9f2c6 Old Transpose tool obsoleted 2015-10-14 20:50:26 +02:00
sagitter
ae3bcb18dc Commit #4b8703 2015-09-29 11:14:17 +02:00
sagitter
d24ee7ec11 Bump to the new Engauge6 2015-09-28 21:22:41 +02:00
Dennis Gilmore
378c5a11e5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 05:29:41 +00:00
Kalev Lember
933c8e7f82 Rebuilt for GCC 5 C++11 ABI change 2015-05-02 13:29:27 +02:00
5 changed files with 509 additions and 116 deletions

34
.gitignore vendored
View File

@ -1,2 +1,36 @@
/engauge_5.2.tgz
/digitizer-code-28de7dcffa2585192e3118a4861e9232fbb5a09b.zip
/engauge6-a251020d73afdd675d8c15f167b20c7eafd9cb2a.zip
/engauge6-4b8703274398b3ccf4a2998131294fdcda2ff087.zip
/engauge6-77e64e19a4b81e5c8c28a4c51724b7dc328f14c6.zip
/engauge6-6.0.tar.gz
/engauge6-6.1.tar.gz
/engauge6-6.2.tar.gz
/engauge6-b6ad5b0cd3be30c52f17bf8917fe39fb28a60549.zip
/engauge-digitizer-7.0.tar.gz
/engauge-digitizer-7.1.tar.gz
/engauge-digitizer-7.2.tar.gz
/engauge-digitizer-8.1.tar.gz
/engauge-digitizer-8.2.tar.gz
/engauge-digitizer-9.0.tar.gz
/engauge-digitizer-9.1.tar.gz
/engauge-digitizer-9.2.tar.gz
/engauge-digitizer-9.3.tar.gz
/engauge-digitizer-9.4.tar.gz
/engauge-digitizer-9.5.tar.gz
/engauge-digitizer-9.6.tar.gz
/engauge-digitizer-9.7.tar.gz
/engauge-digitizer-9.8.tar.gz
/engauge-digitizer-10.0.tar.gz
/engauge-digitizer-10.1.tar.gz
/engauge-digitizer-10.2.tar.gz
/engauge-digitizer-10.4.tar.gz
/engauge-digitizer-10.6.tar.gz
/engauge-digitizer-10.7.tar.gz
/engauge-digitizer-10.9.tar.gz
/engauge-digitizer-10.11.tar.gz
/engauge-digitizer-10.12.tar.gz
/engauge-digitizer-11.2.tar.gz
/engauge-digitizer-11.3.tar.gz
/engauge-digitizer-12.tar.gz
/engauge-digitizer-12.1.tar.gz

View File

@ -0,0 +1,48 @@
--- engauge.orig.pro 2018-08-18 11:09:30.376816000 +0200
+++ engauge.pro 2018-08-18 11:11:20.963693884 +0200
@@ -848,8 +848,8 @@
jpeg2000 {
message("JPEG2000 support: yes")
- _OPENJPEG_INCLUDE = $$(OPENJPEG_INCLUDE)
- _OPENJPEG_LIB = $$(OPENJPEG_LIB)
+ _OPENJPEG_INCLUDE = $(OPENJPEG_INCLUDE)
+ _OPENJPEG_LIB = $(OPENJPEG_LIB)
isEmpty(_OPENJPEG_INCLUDE) {
error("OPENJPEG_INCLUDE and OPENJPEG_LIB environment variables must be defined")
} else {
@@ -858,9 +858,9 @@
}
}
DEFINES += "ENGAUGE_JPEG2000"
- INCLUDEPATH += $$(OPENJPEG_INCLUDE) \
+ INCLUDEPATH += $(OPENJPEG_INCLUDE) \
src/Jpeg2000
- LIBS += -L$$(OPENJPEG_LIB) -lopenjp2
+ LIBS += -L$(OPENJPEG_LIB) -lopenjp2
HEADERS += src/Jpeg2000/Jpeg2000.h \
src/Jpeg2000/Jpeg2000Callbacks.h \
src/Jpeg2000/Jpeg2000Color.h \
@@ -877,8 +877,8 @@
pdf {
message("PDF support: yes")
- _POPPLER_INCLUDE = $$(POPPLER_INCLUDE)
- _POPPLER_LIB = $$(POPPLER_LIB)
+ _POPPLER_INCLUDE = $(POPPLER_INCLUDE)
+ _POPPLER_LIB = $(POPPLER_LIB)
isEmpty(_POPPLER_INCLUDE) {
error("POPPLER_INCLUDE and POPPLER_LIB environment variables must be defined")
} else {
@@ -887,8 +887,8 @@
}
}
DEFINES += "ENGAUGE_PDF"
- LIBS += -L$$(POPPLER_LIB) -lpoppler-qt5
- INCLUDEPATH += $$(POPPLER_INCLUDE)
+ LIBS += -L$(POPPLER_LIB) -lpoppler-qt5
+ INCLUDEPATH += $(POPPLER_INCLUDE)
HEADERS += src/Dlg/DlgImportCroppingPdf.h \
src/Import/ImportCroppingUtilPdf.h \
src/Pdf/Pdf.h \

View File

@ -1,48 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> -->
<application>
<id type="desktop">engauge-digitizer.desktop</id>
<metadata_license>CC0</metadata_license>
<component type="desktop">
<id>engauge-digitizer.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+</project_license>
<name>Engauge Digitizer</name>
<name>Engauge Digitizer 10</name>
<summary>Convert an image file showing a graph or map into numbers</summary>
<description>
<p>
This open source digitizing software converts an image file
showing a graph or map into numbers. The image file can come
from a scanner, digital camera, or a screen-shot. The numbers
can be read on the screen and written or copied to a
spreadsheet. The process starts with an image file containing a
graph or map. The final result is digitized data that can be
used by other tools such as Gnumeric.
The Engauge Digitizer tool accepts image files
(like PNG, JPEG and TIFF) containing graphs,
and recovers the data points from those graphs.
The resulting data points are usually used as input
to other software applications.
Conceptually, Engauge Digitizer is the opposite of
a graphing tool that converts data points to graphs.
The process is shown below - an image file is imported,
digitized within Engauge, and exported as a table of
numeric data to a text file.
Work can be saved into an Engauge DIG file.
</p>
<p>
Here are some real-life examples:
New features already added to Engauge:
</p>
<p>
- Grid lines are displayed for fine adjustments of the axis points that define the coordinate systems
- Automated line and point extraction rapidly digitizes data
- Image processing for separating important details from background information
- Undo/redo of all operations means recovering from mistakes and experimenting with options is painless
- Installers for Windows and OSX operating systems, and repository packages for Linux make installation easy
- Wizard provides an interactive tutorial to explain the basic steps
- Wizard creates a checklist guide to interactively leads user through steps from file import to file export
- Cubic spline interpolation between points gives more accurate curves with fewer points
- Axes Checker briefly highlights the axes when they are defined or modified, to reveal entry mistakes
- Graph coordinates can be specified as date and time values, or as degrees, minutes and seconds
- File import and data export by drag-and-drop and copy/paste
- Test suite for regression testing minimizes code breakage as new features are added
- Multiple coordinate systems in the same image can be digitized in advanced mode
- Axes with only one known coordinate (floating axes) can be digitized in advanced mode
- Geometry Window displays geometric information about the selected curve
- Curve Fitting Window fits a polynomial function to the selected curve
</p>
<ul>
<li>
You need to recreate graphs in some decades-old documents in
a modern format
</li>
<li>
You are a graduate student gathering historical data from
charts for your thesis
</li>
<li>
You are a webmaster with visitor statistics charts and you
want to do statistical analyses
</li>
<li>
You made a bike trip and want to know how much distance you
covered by tracing a map
</li>
</ul>
</description>
<screenshots>
<screenshot type="default">http://in.waw.pl/~zbyszek/fedora/engauge-screenshots/engauge-screenshot-points-save-as.png</screenshot>
<screenshot>http://in.waw.pl/~zbyszek/fedora/engauge-screenshots/engauge-screenshot-axis-point.png</screenshot>
<screenshot>http://in.waw.pl/~zbyszek/fedora/engauge-screenshots/engauge-screenshot-map-points.png</screenshot>
<screenshot type="default">
<image>https://sagitter.fedorapeople.org/engauge-screenshots/engauge-screenshot1.png</image>
</screenshot>
<screenshot>
<image>https://sagitter.fedorapeople.org/engauge-screenshots/engauge-screenshot2.png</image>
</screenshot>
</screenshots>
<url type="homepage">http://digitizer.sourceforge.net/</url>
<updatecontact>zbyszek@in.waw.pl</updatecontact>
</application>
<url type="homepage">https://github.com/markummitchell/engauge-digitizer</url>
<updatecontact>sagitter_at_fedoraproject.org</updatecontact>
</component>

View File

@ -1,155 +1,459 @@
%global checkout 28de7dcffa2585192e3118a4861e9232fbb5a09b
%global date 20150115
## Define the Qt3/Qt4 qmake
%global qmake %{_libdir}/qt-3.3/bin/qmake
%global qmake4 %{_libdir}/qt4/bin/qmake-qt4
Name: engauge-digitizer
Summary: Convert graphs or map files into numbers
Version: 5.2
Release: 8.%{date}git%(echo %{checkout} | cut -c-6)%{?dist}
Group: Applications/Engineering
Version: 12.1
Release: 10%{?dist}
License: GPLv2+
URL: http://digitizer.sourceforge.net/
Source0: http://sourceforge.net/code-snapshots/git/d/di/digitizer/code.git/digitizer-code-%{checkout}.zip
URL: http://markummitchell.github.io/%{name}/
Source0: https://github.com/markummitchell/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Epoch: 1
## Proposed in https://bugzilla.redhat.com/show_bug.cgi?id=1182409
Source1: %{name}.appdata.xml
Source2: %{name}.svg
Source3: %{name}-with-name.svg
## Fix variables for using correctly pkgconfig
Patch0: %{name}-fix_path_variables.patch
## Main building
BuildRequires: qt-devel >= 1:4.6.0, fftw-devel, desktop-file-utils
## BR for 'transpose' building
BuildRequires: qt3-devel, byacc, flex
BuildRequires: gcc, gcc-c++
BuildRequires: fftw-devel, log4cpp-devel, desktop-file-utils
BuildRequires: qt5-qtbase-devel, qt5-qttools-devel
%{?fedora:BuildRequires: pkgconf-pkg-config}
%{?rhel:BuildRequires: pkgconfig}
%if 0%{?fedora}
BuildRequires: libappstream-glib
BuildRequires: openjpeg2-devel
BuildRequires: poppler-qt5-devel
%endif
%description
This open source, digitizing software converts an image file
showing a graph or map, into numbers.
The image file can come from a scanner, digital camera
or screen-shot. The numbers can be read on the screen,
and written or copied to a spreadsheet.
The process starts with an image file containing a graph or map.
The final result is digitized data that can be used by other tools
such as Gnumeric.
The Engauge Digitizer tool accepts image files
(like PNG, JPEG and TIFF) containing graphs,
and recovers the data points from those graphs.
The resulting data points are usually used as input
to other software applications.
Conceptually, Engauge Digitizer is the opposite of
a graphing tool that converts data points to graphs.
The process is shown below - an image file is imported,
digitized within Engauge, and exported as a table of
numeric data to a text file.
Work can be saved into an Engauge DIG file.
%package transpose
Summary: The %{name} transpose utility
Group: Applications/Engineering
%description transpose
This utility often proves useful for post-processing the
output of Engauge Digitizer. Specifically, this utility can transpose the output
matrices found in the export files.
New features already added to Engauge:
- Grid lines are displayed for fine adjustments of the axis points
that define the coordinate systems
- Automated line and point extraction rapidly digitizes data
- Image processing for separating important details from background information
- Undo/redo of all operations means recovering from mistakes and experimenting
with options is painless
- Installers for Windows and OSX operating systems, and repository packages for
Linux make installation easy
- Wizard provides an interactive tutorial to explain the basic steps
- Wizard creates a checklist guide to interactively leads user through steps from
file import to file export
- Cubic spline interpolation between points gives more accurate curves with
fewer points
- Axes Checker briefly highlights the axes when they are defined or modified,
to reveal entry mistakes
- Graph coordinates can be specified as date and time values, or as degrees,
minutes and seconds
- File import and data export by drag-and-drop and copy/paste
- Test suite for regression testing minimizes code breakage as
new features are added
- Multiple coordinate systems in the same image can be digitized in
advanced mode
- Axes with only one known coordinate (floating axes) can be digitized in
advanced mode
- Geometry Window displays geometric information about the selected curve
- Curve Fitting Window fits a polynomial function to the selected curve
%package samples
Summary: Sample files for %{name}
BuildArch: noarch
%description samples
This package contains several sample image files that may be imported into
Engauge Digitizer (http://digitizer.sourceforge.net).
These files are listed below, with comments:
- corners.png - Graph that lots of corners that would be painful
to digitize manually
- gridlines.gif - Graph with gridlines that are easily removed by Engauge
- gridlines_log.gif - Another graph with gridlines that are easily
removed by Engauge
- gridlines_log.src - Creates gridlines_log.gif in gnuplot using 'load'
command (not an image!)
- inverse.jpg - Image of y/x function
- inverse.png - Same as inverse.jpg but in png format
- linlog.jpg - Graph with linear/logarithmic coordinates
- linlog.png - Same as linlog.jpg but in png format
- loglin.png - Graph with logarithmic/linear coordinates
- loglog.png - Graph with logarithmic/logarithmic coordinates
- normdist.jpg - Graph of normal distribution
- normdist.png - Same as normdist.jpg but in png format
- pointmatch.jpg - Graph with fuzzy points for playing with Point Match
feature of Engauge
- pointplot.bmp - Graph with points that are easily captured by Point Match
feature of Engauge, if the Discretize settings are set to
"Intensity 90 to 99"
for the triangles, and "Intensity 10 to 50" for the diamonds
- polarcircles.jpg - Polar plot for experimenting. No coordinates are
displayed, so not very useful
- polarplot.jpg - Polar plot with cardioid pattern
- polarplot.png - Same as polarplot.jpg but in png format
- testcase.jpg - Simple graph that serves as an excellent starting point
for the new user
- testcase.png - Same as testcase.jpg but in png format
- testcoords.jpg - Advanced graph used by developers to check the affine
transformations in Engauge
- testcoords.sxd - Open Office document used to create testcoords.jpg
(not an image!)
- usgs.png - Fictional map loosely based on U.S. Geological Survey
topographic maps
%package doc
Summary: HTML documentation of %{name}
BuildArch: noarch
BuildRequires: texlive-epstopdf, ghostscript
BuildRequires: doxygen
BuildRequires: make
%description doc
HTML documentation of %{name}.
%prep
%setup -q -n digitizer-code-%{checkout}
%autosetup -p0 -n %{name}-%{version}
## Fix 'src/pointset.cpp' compilation error.
sed -i '36a #include <algorithm>' src/digitdoc.cpp
sed -i '32a #include <algorithm>' src/pointset.cpp
## Remove default -O1 optimization
sed -e 's|-O1||g' -i engauge.pro
## Set fftw library link-path
sed -e 's|-L/$$(FFTW_HOME)/lib|-L$$(FFTW_HOME)/%{_libdir}|g' -i engauge.pro
## Remove post-link task
sed --in-place '/QMAKE_POST_LINK/d' engauge.pro
## Remove rpath link
sed --in-place '/QMAKE_LFLAGS/d' engauge.pro
## Remove spurious executable permissions
find . -type f -name "*.h" -exec chmod 0644 '{}' \;
find . -type f -name "*.cpp" -exec chmod 0644 '{}' \;
%build
%qmake4 -makefile \
QMAKE_CFLAGS="$RPM_OPT_FLAGS -D_REENTRANT -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB" \
QMAKE_CXXFLAGS="$RPM_OPT_FLAGS -D_REENTRANT -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB"
make %{?_smp_mflags}
export ENGAUGE_RELEASE=1
%if 0%{?fedora}
export OPENJPEG_INCLUDE=`pkg-config --cflags libopenjp2 | sed 's/-I//'`
export OPENJPEG_LIB=%{_libdir}
export POPPLER_INCLUDE=`pkg-config --cflags poppler-qt5 | sed 's/-I//'`
export POPPLER_LIB=%{_libdir}
%{qmake_qt5} engauge.pro "CONFIG+=pdf jpeg2000" QT_SELECT=qt5 \
%else
%{qmake_qt5} engauge.pro "CONFIG+=log4cpp_null" QT_SELECT=qt5 \
%endif
QMAKE_CFLAGS_RELEASE="$RPM_OPT_FLAGS -pie -Wl,-z,now" \
QMAKE_CXXFLAGS_RELEASE="$RPM_OPT_FLAGS -pie -Wl,-z,now" \
QMAKE_LFLAGS="$RPM_LD_FLAGS -pie -Wl,-z,now" \
DEFINES+=HELPDIR=%{_datadir}/doc/%{name}/help
%make_build
pushd utility/transpose
%qmake -makefile \
QMAKE_CFLAGS="$RPM_OPT_FLAGS -D_REENTRANT -DQT_THREAD_SUPPORT" \
QMAKE_CXXFLAGS="$RPM_OPT_FLAGS -D_REENTRANT -DQT_THREAD_SUPPORT"
## Build HELP files
pushd help
qcollectiongenerator-qt5 engauge.qhcp -o engauge.qhc
rm -f build build.*
rm -rf .gitignore
popd
## Fix Qt3 destination directories
sed -i '13a QTDIR=%{_libdir}/qt-3.3' Makefile
make %{?_smp_mflags}
## Build HTML/Latex documentation files
pushd src
doxygen
popd
%install
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/samples
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/animation
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/img
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/usermanual
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_datadir}/appdata
mkdir -p %{buildroot}%{_metainfodir}
mkdir -p %{buildroot}%{_bindir}
install -p -m 755 bin/engauge %{buildroot}%{_bindir}
install -p -m 755 utility/transpose/transpose %{buildroot}%{_bindir}
install -p -m 644 samples/* %{buildroot}%{_datadir}/%{name}-%{version}/samples
pushd samples
install -p -m 644 *.gif *.jp* *.png *.bmp %{buildroot}%{_datadir}/%{name}-%{version}/samples
popd
install -p -m 644 src/img/* %{buildroot}%{_datadir}/%{name}-%{version}/img
install -p -m 644 usermanual/* %{buildroot}%{_datadir}/%{name}-%{version}/usermanual
install -p -m 644 animation/* %{buildroot}%{_datadir}/%{name}-%{version}/animation
install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps
install -p -m 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps
install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
install -p -m 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/
%if 0%{?fedora}
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/appdata
install -p -m 644 %{SOURCE1} %{buildroot}%{_metainfodir}/
%endif
## Desktop file installation
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{name}.desktop
## Make a .desktop file
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Engauge Digitizer %{version}
Type=Application
Comment=Extract data from graphs
TryExec=engauge
Exec=engauge
MimeType=text/plain
Categories=Education;Science;DataVisualization;
Icon=/usr/share/pixmaps/engauge-digitizer.xpm
Keywords=Analog-Digital Converter;
EOF
%if 0%{?fedora}
desktop-file-edit \
--set-key=Exec --set-value="env ENGAUGE_BROWSER=firefox engauge -manual %{_datadir}/%{name}-%{version}/usermanual" \
--set-icon=%{name}-with-name \
--set-key=Keywords --set-value="analog;digital;converter;" ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
--set-key=Keywords --set-value="analog;digital;converter;" %{buildroot}%{_datadir}/applications/%{name}.desktop
%else
sed -e \
's|Exec=engauge %F|Exec=env ENGAUGE_BROWSER=firefox engauge -manual %{_datadir}/%{name}-%{version}/usermanual|g' \
-i ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
sed -e \
's|Icon=%{_datadir}/pixmaps/%{name}.xpm|Icon=%{name}-with-name|g' \
-i ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
-i %{buildroot}%{_datadir}/applications/%{name}.desktop
sed -e \
's|Keywords=Analog-Digital Converter;|Keywords=analog;digital;converter;|g' \
-i ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
-i %{buildroot}%{_datadir}/applications/%{name}.desktop
%endif
%if 0%{?fedora}
%check
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata.xml
%if 0%{?fedora}
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
%endif
%if 0%{?rhel} && 0%{?rhel} <= 7
%post
/usr/bin/update-desktop-database &> /dev/null || :
%postun
/usr/bin/update-desktop-database &> /dev/null || :
%endif
%files
%doc README RELEASE
%if 0%{?fedora}
%doc README.md help
%license LICENSE
%else
%doc LICENSE
%endif
%{_bindir}/engauge
%{_datadir}/pixmaps/%{name}*.svg
%if 0%{?fedora}
%{_datadir}/appdata/*.appdata.xml
%{_metainfodir}/*.appdata.xml
%endif
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}-%{version}/
%exclude %{_datadir}/%{name}-%{version}/samples
%files transpose
%doc utility/transpose/README
%if 0%{?fedora}
%files samples
%doc samples/README
%license LICENSE
%dir %{_datadir}/%{name}-%{version}
%{_datadir}/%{name}-%{version}/samples
%files doc
%doc README.md doc/doxygen/html
%license LICENSE
%else
%doc LICENSE
%endif
%{_bindir}/transpose
%changelog
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:12.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri May 20 2022 Sandro Mani <manisandro@gmail.com> - 1:12.1-9
- Rebuild for gdal-3.5.0 and/or openjpeg-2.5.0
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:12.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:12.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:12.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:12.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun Feb 02 2020 Antonio Trande <sagitter@fedoraproject.org> - 1:12.1-4
- Drop bogus runtime dependency (rhbz#1797268)
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:12.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jan 17 2020 Marek Kasik <mkasik@redhat.com> - 1:12.1-2
- Rebuild for poppler-0.84.0
* Sat Nov 30 2019 Antonio Trande <sagitter@fedoraproject.org> - 1:12.1-1
- Release 12.1
* Sat Aug 24 2019 Antonio Trande <sagitter@fedoraproject.org> - 1:12-2
- SPEC file enhancements
* Fri Aug 23 2019 Antonio Trande <sagitter@fedoraproject.org> - 1:12-1
- Release 12.0
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:11.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Jul 20 2019 Antonio Trande <sagitter@fedoraproject.org> - 1:11.3-1
- Release 11.3
* Thu May 02 2019 Antonio Trande <sagitter@fedoraproject.org> - 1:11.2-1
- Release 11.2
* Thu Mar 07 2019 Antonio Trande <sagitter@fedoraproject.org> - 1:10.12-1
- Release 10.12
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:10.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sun Oct 28 2018 Antonio Trande <sagitter@fedoraproject.org> - 1:10.11-1
- Update to 10.11
* Mon Aug 13 2018 Antonio Trande <sagitter@fedoraproject.org> - 1:10.9-1
- Update to 10.9
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:10.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Jul 04 2018 Antonio Trande <sagitter@fedoraproject.org> - 1:10.7-1
- Update to 10.7
* Sat May 05 2018 Antonio Trande <sagitter@fedoraproject.org> - 1:10.6-1
- Update to 10.6
* Thu Feb 22 2018 Antonio Trande <sagitter@fedoraproject.org> - 1:10.4-4
- Add gcc gcc-c++ BR
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:10.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Dec 21 2017 Antonio Trande <sagitter@fedoraproject.org> - 1:10.4-2
- Appdata file moved into metainfo data directory
* Sat Oct 21 2017 Antonio Trande <sagitter@fedoraproject.org> - 1:10.4-1
- Update to 10.4
* Mon Aug 21 2017 Antonio Trande <sagitter@fedoraproject.org> - 1:10.2-1
- Update to 10.2
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:10.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:10.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Thu Jul 20 2017 Antonio Trande <sagitter@fedoraproject.org> - 1:10.1-1
- Update to 10.1
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:10.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
* Mon Apr 03 2017 Antonio Trande <sagitter@fedoraproject.org> - 1:10.0-1
- Update to 10.0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Jan 05 2017 Antonio Trande <sagitterATfedoraproject.org> 1:9.8-2
- Conformed to new rules for scriptlets
* Sun Dec 11 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:9.8-1
- Update to 9.8
* Thu Dec 01 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:9.7-1
- Update to 9.7
- qgnomeplatform required on f25+
* Tue Nov 22 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:9.6-1
- Update to 9.6
* Mon Oct 10 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:9.5-1
- Update to 9.5
* Sat Oct 01 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:9.4-1
- Update to 9.4
* Tue Sep 20 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:9.3-1
- Update to 9.3
* Sun Aug 28 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:9.2-1
- Update to 9.2
* Sun Jul 31 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:9.1-1
- Update to 9.1
* Tue Jul 19 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:9.0-2
- Fix appdata file's tags
* Tue Jul 19 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:9.0-1
- Update to 9.0
* Thu Jun 09 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:8.2-1
- Update to 8.2
* Tue May 31 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:8.1-1
- Update to 8.1
* Mon Apr 25 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:7.2-1
- Update to 7.2
* Thu Mar 24 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:7.1-1
- Update to 7.1
* Sun Mar 06 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:7.0-2
- Update of appdata file
* Sun Mar 06 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:7.0-1
- Update to 7.0
* Thu Feb 04 2016 Antonio Trande <sagitter@fedoraproject.org> - 1:6.2-4.20160204gitb6ad5b
- Update to commit #b6ad5b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Mon Feb 01 2016 Rex Dieter <rdieter@fedoraproject.org> 1:6.2-2
- use %%qmake_qt5 macro (instead of settings flags by hand)
* Tue Dec 01 2015 Antonio Trande <sagitter@fedoraproject.org> - 1:6.2-1
- Update to 6.2
* Sun Nov 08 2015 Antonio Trande <sagitter@fedoraproject.org> - 1:6.1-2
- Excluding PPC arch on EPEL6 because of missing BR packages (log4cpp)
* Sat Oct 31 2015 Antonio Trande <sagitter@fedoraproject.org> - 1:6.1-1
- Update to 6.1
* Sat Oct 24 2015 Antonio Trande <sagitter@fedoraproject.org> - 1:6.0-1
- First release
- Build release version
- Activated jpeg200 support
* Wed Oct 14 2015 Antonio Trande <sagitter@fedoraproject.org> - 1:6-0.4.20151011git77e64e
- Commit #77e64e
- Old Transpose tool obsoleted
* Tue Sep 29 2015 Antonio Trande <sagitter@fedoraproject.org> - 1:6-0.3.20150928git4b8703
- Commit #4b8703
* Mon Sep 28 2015 Antonio Trande <sagitter@fedoraproject.org> - 1:6-0.2.20150928gita25102
- Commit #a25102
- Built HTML docs
- Tests performed
* Thu Sep 24 2015 Antonio Trande <sagitter@fedoraproject.org> - 1:6-0.1.20150921git4f0c92
- Bump to the new Engauge6
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-10.20150115git28de7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.2-9.20150115git28de7d
- Rebuilt for GCC 5 C++11 ABI change
* Mon Feb 23 2015 Antonio Trande <sagitter@fedoraproject.org> - 5.2-8.20150115git28de7d
- Fixed Keywords key in .desktop file

View File

@ -1 +1 @@
d8d5a7aae0e4072c7215ffb34e11da06 digitizer-code-28de7dcffa2585192e3118a4861e9232fbb5a09b.zip
SHA512 (engauge-digitizer-12.1.tar.gz) = 54ae573eb1e82ec3a81403c3c64af43207e139a2d97eb633993ffe31e03fedb1c1a5fe63157011851ad4a89822a3109b87a2c90a71f77865b3629a517a353a61