split off lang package

OBS-URL: https://build.opensuse.org/package/show/Publishing/pdf2djvu?expand=0&rev=16
This commit is contained in:
Kyrill Detinov 2012-02-28 09:55:44 +00:00 committed by Git OBS Bridge
parent ea22af5cc3
commit b835b4f04d
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 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/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: pdf2djvu Name: pdf2djvu
Version: 0.7.12 Version: 0.7.12
Release: 0 Release: 0
@ -25,13 +26,14 @@ Url: http://pdf2djvu.googlecode.com/
Source0: http://pdf2djvu.googlecode.com/files/%{name}_%{version}.tar.gz Source0: http://pdf2djvu.googlecode.com/files/%{name}_%{version}.tar.gz
BuildRequires: djvulibre BuildRequires: djvulibre
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libGraphicsMagick++-devel BuildRequires: pkgconfig(GraphicsMagick++)
BuildRequires: libdjvulibre-devel BuildRequires: pkgconfig(ddjvuapi)
BuildRequires: libpoppler-devel BuildRequires: pkgconfig(libxslt)
BuildRequires: libxslt-devel BuildRequires: pkgconfig(poppler)
# Requires to run tests correctly. # Requires to run tests correctly.
BuildRequires: ghostscript-fonts-std BuildRequires: ghostscript-fonts-std
Requires: djvulibre Requires: djvulibre
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %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 graphics, text layer, hyperlinks, document outline (bookmarks) and
metadata. metadata.
%lang_package
%prep %prep
%setup -q %setup -q
@ -48,17 +52,21 @@ make %{?_smp_mflags}
%install %install
%make_install %make_install
%find_lang %{name} %find_lang %{name} --with-man
%check %check
make test make test
%files -f %{name}.lang %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING doc/changelog doc/cjk.txt doc/credits.txt %doc COPYING doc/changelog doc/cjk.txt doc/credits.txt
%doc doc/djvudigital.txt %doc doc/djvudigital.txt
%{_bindir}/%{name} %{_bindir}/%{name}
%doc %{_mandir}/man?/* %doc %{_mandir}/man?/*
%doc %{_mandir}/??
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%doc %dir %{_mandir}/??
%doc %dir %{_mandir}/??/man1
%changelog %changelog