Add patch to remove '-std=gnu++98', fixing build with new poppler
Add %%license and %%doc Add BR: GraphicsMagick-c++-devel exiv2-devel libuuid-devel Adapt spec to recent guidelines
This commit is contained in:
parent
c0e6c1abef
commit
e4d8947956
File diff suppressed because it is too large
Load Diff
|
@ -2,7 +2,7 @@
|
|||
|
||||
Name: pdf2djvu
|
||||
Version: 0.9.5
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: PDF to DjVu converter
|
||||
Group: Applications/Publishing
|
||||
License: GPLv2+
|
||||
|
@ -14,36 +14,52 @@ BuildRequires: pkgconfig
|
|||
BuildRequires: poppler-devel
|
||||
BuildRequires: pstreams-devel
|
||||
BuildRequires: fontconfig-devel
|
||||
BuildRequires: GraphicsMagick-c++-devel
|
||||
BuildRequires: exiv2-devel libuuid-devel
|
||||
|
||||
Requires: djvulibre
|
||||
|
||||
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
||||
Patch0: pdf2djvu-0.9.5-remove_std_gnu98.patch
|
||||
%endif
|
||||
|
||||
%description
|
||||
pdf2djvu creates DjVu files from PDF files. It's able to extract:
|
||||
graphics, text layer, hyperlinks, document outline (bookmarks) and
|
||||
metadata.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p 1
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
|
||||
%make_install INSTALL="install -p"
|
||||
install -p -m 644 -D {doc,%{buildroot}%{_mandir}/man1}/%{name}.1
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc doc/changelog
|
||||
%doc doc/credits.txt
|
||||
%license doc/COPYING
|
||||
%{_bindir}/%{name}
|
||||
%{_mandir}/man1/%{name}.1.gz
|
||||
%{_mandir}/de/man1/%{name}.1.gz
|
||||
%{_mandir}/fr/man1/%{name}.1.gz
|
||||
%{_mandir}/pl/man1/%{name}.1.gz
|
||||
%{_mandir}/pt/man1/%{name}.1.gz
|
||||
%{_mandir}/ru/man1/%{name}.1.gz
|
||||
%{_mandir}/man1/%{name}.1*
|
||||
%{_mandir}/de/man1/%{name}.1*
|
||||
%{_mandir}/fr/man1/%{name}.1*
|
||||
%{_mandir}/pl/man1/%{name}.1*
|
||||
%{_mandir}/pt/man1/%{name}.1*
|
||||
%{_mandir}/ru/man1/%{name}.1*
|
||||
|
||||
%changelog
|
||||
* Sat Aug 05 2017 Björn Esser <besser82@fedoraproject.org> - 0.9.5-8
|
||||
- Add patch to remove '-std=gnu++98', fixing build with new poppler
|
||||
- Add %%license and %%doc
|
||||
- Add BR: GraphicsMagick-c++-devel exiv2-devel libuuid-devel
|
||||
- Adapt spec to recent guidelines
|
||||
|
||||
* Thu Aug 03 2017 David Tardon <dtardon@redhat.com> - 0.9.5-7
|
||||
- rebuild for poppler 0.57.0
|
||||
|
||||
|
|
Loading…
Reference in New Issue