diff --git a/.gitignore b/.gitignore index e69de29..81b59ef 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/zathura-djvu-0.2.1.tar.gz diff --git a/sources b/sources index e69de29..e04af26 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c3525b43b74bb0777a2b3561f7dcde06 zathura-djvu-0.2.1.tar.gz diff --git a/zathura-djvu-0.2.1-use-stdlib-instead-stddef-header.patch b/zathura-djvu-0.2.1-use-stdlib-instead-stddef-header.patch new file mode 100644 index 0000000..0366ffa --- /dev/null +++ b/zathura-djvu-0.2.1-use-stdlib-instead-stddef-header.patch @@ -0,0 +1,9 @@ +--- zathura-djvu-0.2.1-orig/page-text.c 2013-01-02 17:55:16.567766492 -0430 ++++ zathura-djvu-0.2.1/page-text.c 2013-01-02 20:55:47.514511728 -0430 +@@ -1,5 +1,6 @@ + /* See LICENSE file for license and copyright information */ + ++#include + #include + #include + #include diff --git a/zathura-djvu-fix_install.patch b/zathura-djvu-fix_install.patch new file mode 100644 index 0000000..aa0f1c7 --- /dev/null +++ b/zathura-djvu-fix_install.patch @@ -0,0 +1,13 @@ +--- Makefile.orig 2012-09-09 22:14:57.873155346 +0200 ++++ Makefile 2012-09-09 22:13:32.916945999 +0200 +@@ -70,9 +70,9 @@ + + doc: clean + $(QUIET)doxygen Doxyfile + +-install: all ++install: + $(ECHO) installing ${PLUGIN} plugin + $(QUIET)mkdir -p ${DESTDIR}${PLUGINDIR} + $(QUIET)cp -f ${PLUGIN}.so ${DESTDIR}${PLUGINDIR} + diff --git a/zathura-djvu.spec b/zathura-djvu.spec new file mode 100644 index 0000000..058b5ec --- /dev/null +++ b/zathura-djvu.spec @@ -0,0 +1,53 @@ +Name: zathura-djvu +Version: 0.2.1 +Release: 2%{?dist} +Summary: DjVu support for zathura + +Group: Applications/Publishing +License: zlib +URL: http://pwmt.org/projects/zathura/plugins/%{name} +Source0: http://pwmt.org/projects/zathura/plugins/download/%{name}-%{version}.tar.gz + +Patch0: zathura-djvu-0.2.1-use-stdlib-instead-stddef-header.patch +Patch1: zathura-djvu-fix_install.patch + +BuildRequires: djvulibre-devel +BuildRequires: zathura-devel >= 0.2.1 + + +%description +The zathura-djvu plugin adds DjVu support to zathura by +using the djvulibre library. + + +%prep +%setup -q +%if 0%{?fedora} <= 17 +%patch0 -p1 +%patch1 +%else +%patch1 +%endif + + +%build +CFLAGS='%{optflags}' make %{?_smp_mflags} LIBDIR=%{_libdir} debug +mv djvu-debug.so djvu.so + + +%install +make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} install + + +%files +%doc AUTHORS LICENSE +%{_libdir}/zathura/djvu.so + + +%changelog +* Tue Jan 08 2013 François Cami - 0.2.1-2 +- Add fix for djvulibre-devel < 3.5.25 - Thanks to M. Schwendt and E. Echeverria + +* Tue Jan 01 2013 François Cami - 0.2.1-1 +- Initial package. +