- Modernise spec file
OBS-URL: https://build.opensuse.org/package/show/graphics/pagetools?expand=0&rev=7
This commit is contained in:
parent
db63c9ac89
commit
396d68719c
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 27 08:31:47 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
|
||||||
|
|
||||||
|
- Modernise spec file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 21 12:36:10 UTC 2016 - mpluskal@suse.com
|
Wed Sep 21 12:36:10 UTC 2016 - mpluskal@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package pagetools
|
# spec file for package pagetools
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
# Copyright (c) 2016 Víctor Cuadrado Juan <vcuadradojuan@suse.de>
|
# Copyright (c) 2016 Víctor Cuadrado Juan <vcuadradojuan@suse.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -13,7 +13,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -21,15 +21,16 @@ Name: pagetools
|
|||||||
Version: 0.1
|
Version: 0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Automatic de-skew and bounding box determination for scanned page images
|
Summary: Automatic de-skew and bounding box determination for scanned page images
|
||||||
License: GPL-2.0+
|
License: GPL-2.0-or-later
|
||||||
Group: Productivity/Graphics/Convertors
|
Group: Productivity/Graphics/Convertors
|
||||||
Url: http://sourceforge.net/projects/pagetools
|
URL: https://sourceforge.net/projects/pagetools
|
||||||
Source0: https://sourceforge.net/projects/pagetools/files/pagetools/%{version}/pagetools-%{version}.tar.gz
|
Source0: https://sourceforge.net/projects/pagetools/files/pagetools/%{version}/pagetools-%{version}.tar.gz
|
||||||
Patch0: 01-makefile-clean-fix.patch
|
Patch0: 01-makefile-clean-fix.patch
|
||||||
Patch1: 02-makefile-ldflags-add.patch
|
Patch1: 02-makefile-ldflags-add.patch
|
||||||
Patch2: 03-pbmfact.patch
|
Patch2: 03-pbmfact.patch
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libnetpbm-devel
|
BuildRequires: libnetpbm-devel
|
||||||
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(libtiff-4)
|
BuildRequires: pkgconfig(libtiff-4)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -40,26 +41,27 @@ program is part of the Page Layout Detection Tools project, which aims to
|
|||||||
automate the layout detection in scanned page images.
|
automate the layout detection in scanned page images.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c
|
%autosetup -c -p0
|
||||||
%patch0
|
|
||||||
%patch1
|
|
||||||
%patch2
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} C++_FLAGS="%{optflags}"
|
%make_build C++_FLAGS="%{optflags}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -D -p -m 0755 pbm_findskew/pbm_findskew %{buildroot}%{_bindir}/pbm_findskew
|
install -Dpm 0755 pbm_findskew/pbm_findskew \
|
||||||
install -D -p -m 0755 tiff_findskew/tiff_findskew %{buildroot}%{_bindir}/tiff_findskew
|
%{buildroot}%{_bindir}/pbm_findskew
|
||||||
install -D -p -m 0644 pbm_findskew/pbm_findskew.1 %{buildroot}%{_mandir}/man1/pbm_findskew.1
|
install -Dpm 0755 tiff_findskew/tiff_findskew \
|
||||||
install -D -p -m 0644 tiff_findskew/tiff_findskew.1 %{buildroot}%{_mandir}/man1/tiff_findskew.1
|
%{buildroot}%{_bindir}/tiff_findskew
|
||||||
|
install -Dpm 0644 pbm_findskew/pbm_findskew.1 \
|
||||||
|
%{buildroot}%{_mandir}/man1/pbm_findskew.1
|
||||||
|
install -Dpm 0644 tiff_findskew/tiff_findskew.1 \
|
||||||
|
%{buildroot}%{_mandir}/man1/tiff_findskew.1
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%license COPYING
|
||||||
%doc COPYING README.txt TODO
|
%doc README.txt TODO
|
||||||
%{_bindir}/pbm_findskew
|
%{_bindir}/pbm_findskew
|
||||||
%{_bindir}/tiff_findskew
|
%{_bindir}/tiff_findskew
|
||||||
%{_mandir}/man1/pbm_findskew.1%{ext_man}
|
%{_mandir}/man1/pbm_findskew.1%{?ext_man}
|
||||||
%{_mandir}/man1/tiff_findskew.1%{ext_man}
|
%{_mandir}/man1/tiff_findskew.1%{?ext_man}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user