diff --git a/.cvsignore b/.cvsignore index e69de29..12b0306 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pdf2djvu_0.4.13.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..346025d --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +pdf2djvu-0_4_13-3_fc10:HEAD:pdf2djvu-0.4.13-3.fc10.src.rpm:1226407417 diff --git a/pdf2djvu-strerror.patch b/pdf2djvu-strerror.patch new file mode 100644 index 0000000..34f305c --- /dev/null +++ b/pdf2djvu-strerror.patch @@ -0,0 +1,10 @@ +--- pdf2djvu-0.4.13.org/system.cc 2008-11-04 13:04:07.000000000 +0100 ++++ pdf2djvu-0.4.13/system.cc 2008-11-04 13:04:31.000000000 +0100 +@@ -11,6 +11,7 @@ + #include + #include + #include ++#include + + #include + #include diff --git a/pdf2djvu.spec b/pdf2djvu.spec new file mode 100644 index 0000000..727f2ac --- /dev/null +++ b/pdf2djvu.spec @@ -0,0 +1,51 @@ +Name: pdf2djvu +Version: 0.4.13 +Release: 3%{?dist} +Summary: PDF to DjVu converter +Group: Applications/Publishing +License: GPLv2+ +URL: http://pdf2djvu.googlecode.com/ +Source0: http://pdf2djvu.googlecode.com/files/%{name}_%{version}.tar.gz +Patch0: pdf2djvu-strerror.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: djvulibre-devel +BuildRequires: libjpeg-devel +BuildRequires: pkgconfig +BuildRequires: poppler-devel +BuildRequires: pstreams-devel + +%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 +%patch0 -p1 -b .stderr + +%build +make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS" + +%install +rm -rf $RPM_BUILD_ROOT +install -p -m 644 -D {doc,%{buildroot}%{_mandir}/man1}/pdf2djvu.1 +install -p -m 755 -D {,%{buildroot}%{_bindir}/}pdf2djvu + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{_bindir}/%{name} +%{_mandir}/man1/* + +%changelog +* Mon Nov 10 2008 Rakesh Pandit 0.4.13-3 +- Cleaned useless permissions in %%files section + +* Sat Nov 08 2008 Rakesh Pandit 0.4.13-2 +- Saving timestamp, fixed buildrequires, corrected license and did some cleaning. + +* Tue Nov 04 2008 Rakesh Pandit 0.4.13-1 +- Initial package. diff --git a/sources b/sources index e69de29..db6d4be 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +96c971cadb696f15167f892aa8a4b8c9 pdf2djvu_0.4.13.tar.gz