From b835b4f04dfc17c78ac9c5595dc3f64a014ec9ea19821a536f67a0b1e6930727 Mon Sep 17 00:00:00 2001 From: Kyrill Detinov Date: Tue, 28 Feb 2012 09:55:44 +0000 Subject: [PATCH] split off lang package OBS-URL: https://build.opensuse.org/package/show/Publishing/pdf2djvu?expand=0&rev=16 --- pdf2djvu.changes | 6 ++++++ pdf2djvu.spec | 22 +++++++++++++++------- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/pdf2djvu.changes b/pdf2djvu.changes index d84b6b9..1c6d2b3 100644 --- a/pdf2djvu.changes +++ b/pdf2djvu.changes @@ -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 diff --git a/pdf2djvu.spec b/pdf2djvu.spec index 11d8089..3addf2f 100644 --- a/pdf2djvu.spec +++ b/pdf2djvu.spec @@ -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