Accepting request 108346 from Publishing

use pkgconfig(*) build dependencies, split off lang package

OBS-URL: https://build.opensuse.org/request/show/108346
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pdf2djvu?expand=0&rev=12
This commit is contained in:
Stephan Kulow 2012-03-07 19:10:02 +00:00 committed by Git OBS Bridge
commit c1d56a063c
2 changed files with 21 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Feb 28 09:52:18 UTC 2012 - lazy.kent@opensuse.org
- Split off language package.
- Use pkgconfig(*) build dependencies.
-------------------------------------------------------------------
Sun Jan 22 07:42:41 UTC 2012 - lazy.kent@opensuse.org

View File

@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: pdf2djvu
Version: 0.7.12
Release: 0
@ -25,13 +26,14 @@ Url: http://pdf2djvu.googlecode.com/
Source0: http://pdf2djvu.googlecode.com/files/%{name}_%{version}.tar.gz
BuildRequires: djvulibre
BuildRequires: gcc-c++
BuildRequires: libGraphicsMagick++-devel
BuildRequires: libdjvulibre-devel
BuildRequires: libpoppler-devel
BuildRequires: libxslt-devel
BuildRequires: pkgconfig(GraphicsMagick++)
BuildRequires: pkgconfig(ddjvuapi)
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(poppler)
# Requires to run tests correctly.
BuildRequires: ghostscript-fonts-std
Requires: djvulibre
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -39,6 +41,8 @@ pdf2djvu creates DjVu files from PDF files. It's able to extract:
graphics, text layer, hyperlinks, document outline (bookmarks) and
metadata.
%lang_package
%prep
%setup -q
@ -48,17 +52,21 @@ make %{?_smp_mflags}
%install
%make_install
%find_lang %{name}
%find_lang %{name} --with-man
%check
make test
%files -f %{name}.lang
%files
%defattr(-,root,root,-)
%doc COPYING doc/changelog doc/cjk.txt doc/credits.txt
%doc doc/djvudigital.txt
%{_bindir}/%{name}
%doc %{_mandir}/man?/*
%doc %{_mandir}/??
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%doc %dir %{_mandir}/??
%doc %dir %{_mandir}/??/man1
%changelog