]> git.pld-linux.org Git - packages/qpdf.git/commitdiff
- pl, completed dependencies
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 30 Nov 2013 22:00:19 +0000 (23:00 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 30 Nov 2013 22:00:19 +0000 (23:00 +0100)
qpdf.spec

index eb89e392b928a91d6ebc67d96b1d98dff0d09acd..3d4859b5b4b385abbf2bc0f758ca807f856a0d74 100644 (file)
--- a/qpdf.spec
+++ b/qpdf.spec
@@ -1,18 +1,25 @@
+#
+# Conditional build:
+%bcond_without static_libs     # static library build
+#
 Summary:       Command-line tools and library for transforming PDF files
+Summary(pl.UTF-8):     Narzędzia linii poleceń i biblioteka do przekształcania plików PDF
 Name:          qpdf
 Version:       5.0.1
 Release:       2
 # MIT: e.g. libqpdf/sha2.c
-License:       Artistic 2.0 and MIT
+License:       Artistic v2.0, some parts MIT
 Group:         Applications/Publishing
 Source0:       http://downloads.sourceforge.net/qpdf/%{name}-%{version}.tar.gz
 # Source0-md5: 6efd89c18461cb73f77bb60cb2da4bce
 URL:           http://qpdf.sourceforge.net/
+BuildRequires: libstdc++-devel
+BuildRequires: make >= 3.81
 BuildRequires: pcre-devel
-BuildRequires: perl
-BuildRequires: perl(Digest::MD5)
+BuildRequires: perl-Digest-MD5
+BuildRequires: perl-base
 BuildRequires: zlib-devel
-Requires:      qpdf-libs = %{version}-%{release}
+Requires:      %{name}-libs = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -23,8 +30,16 @@ splitting PDFs and to manipulate the list of pages in a PDF file. It
 is not a PDF viewer or a program capable of converting PDF into other
 formats.
 
+%description -l pl.UTF-8
+QPDF to działający z linii poleceń program wykonujący strukturalne,
+zachowujące treść przekształcenia plików PDF. Można by go nazwać czymś
+w rodzaju pdf-to-pdf. Zawiera obsługę łączenia i dzielenia PDF-ów oraz
+operacji na liście stron w pliku PDF. Nie jest to przeglądarka plików
+PDF ani konwerter PDF-ów do innych formatów.
+
 %package libs
 Summary:       QPDF library for transforming PDF files
+Summary(pl.UTF-8):     Biblioteka QPDF do przekształcania plików PDF
 Group:         Libraries
 
 %description libs
@@ -32,14 +47,38 @@ QPDF is a C++ library that inspect and manipulate the structure of PDF
 files. It can encrypt and linearize files, expose the internals of a
 PDF file, and do many other operations useful to PDF developers.
 
+%description libs -l pl.UTF-8
+QPDF to biblioteka C++ analizująca i operująca na strukturze plików
+PDF. Potrafi szyfrować i linearyzować pliki, udostępniać wnętrzności
+plików PDF oraz wykonywać inne operacje przydatne programistom PDF.
+
 %package devel
 Summary:       Development files for QPDF library
+Summary(pl.UTF-8):     Pliki programistyczne biblioteki QPDF
 Group:         Development/Libraries
-Requires:      qpdf-libs = %{version}-%{release}
+Requires:      %{name}-libs = %{version}-%{release}
+Requires:      libstdc++-devel
+Requires:      pcre-devel
+Requires:      zlib-devel
 
 %description devel
-Header files and libraries necessary for developing programs using the
-QPDF library.
+Header files necessary for developing programs using the QPDF library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe niezbędne do tworzenia programów wykorzystujących
+bibliotekę QPDF.
+
+%package static
+Summary:       Static QPDF library
+Summary(pl.UTF-8):     Statyczna biblioteka QPDF
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static QPDF library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka QPDF.
 
 %prep
 %setup -q
@@ -49,10 +88,12 @@ QPDF library.
 %build
 %configure \
        --docdir=%{_docdir}/%{name}-%{version} \
-       --disable-static \
+       %{!?with_static_libs:--disable-static} \
        --enable-show-failed-test-output
 
-%{__make} SHELL=/bin/sh
+# SHELL= is workaround for some build failures
+%{__make} \
+       SHELL=/bin/sh
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -70,17 +111,18 @@ cp -a examples/*.c* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post libs -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
-%doc doc/*.{pdf,html,css}
-%doc README TODO ChangeLog
+%doc ChangeLog README TODO doc/*.{pdf,html,css}
 %attr(755,root,root) %{_bindir}/fix-qdf
 %attr(755,root,root) %{_bindir}/qpdf
 %attr(755,root,root) %{_bindir}/zlib-flate
-%{_mandir}/man1/*
+%{_mandir}/man1/fix-qdf.1*
+%{_mandir}/man1/qpdf.1*
+%{_mandir}/man1/zlib-flate.1*
 
 %files libs
 %defattr(644,root,root,755)
@@ -89,7 +131,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/qpdf
 %attr(755,root,root) %{_libdir}/libqpdf.so
+%{_includedir}/qpdf
 %{_pkgconfigdir}/libqpdf.pc
 %{_examplesdir}/%{name}-%{version}
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libqpdf.a
+%endif
This page took 0.414964 seconds and 4 git commands to generate.