|
|
@ -1,19 +1,21 @@
|
|
|
|
Summary: DjVu viewers, encoders, and utilities
|
|
|
|
Summary: DjVu viewers, encoders, and utilities
|
|
|
|
Name: djvulibre
|
|
|
|
Name: djvulibre
|
|
|
|
Version: 3.5.22
|
|
|
|
Version: 3.5.24
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPLv2+
|
|
|
|
Group: Applications/Publishing
|
|
|
|
Group: Applications/Publishing
|
|
|
|
URL: http://djvu.sourceforge.net/
|
|
|
|
URL: http://djvu.sourceforge.net/
|
|
|
|
Source: http://dl.sf.net/djvu/djvulibre-%{version}.tar.gz
|
|
|
|
Source: http://dl.sf.net/djvu/djvulibre-%{version}.tar.gz
|
|
|
|
Patch0: djvulibre-3.5.22-cdefs.patch
|
|
|
|
Patch0: djvulibre-3.5.22-cdefs.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
|
|
Requires(post): xdg-utils, /sbin/ldconfig
|
|
|
|
Requires(post): xdg-utils
|
|
|
|
Requires(preun): xdg-utils
|
|
|
|
Requires(preun): xdg-utils
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libjpeg-turbo-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: qt3-devel
|
|
|
|
BuildRequires: xdg-utils chrpath
|
|
|
|
BuildRequires: xdg-utils, chrpath
|
|
|
|
|
|
|
|
|
|
|
|
Provides: %{name}-mozplugin = %{version}
|
|
|
|
|
|
|
|
Obsoletes: %{name}-mozplugin < 3.5.24
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
DjVu is a web-centric format and software platform for distributing documents
|
|
|
|
DjVu is a web-centric format and software platform for distributing documents
|
|
|
@ -37,17 +39,6 @@ Group: System Environment/Libraries
|
|
|
|
Library files for DjVuLibre.
|
|
|
|
Library files for DjVuLibre.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package mozplugin
|
|
|
|
|
|
|
|
Summary: Mozilla plugin for DjVuLibre
|
|
|
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
|
|
|
|
Provides: mozilla-djvulibre = %{version}-%{release}
|
|
|
|
|
|
|
|
# The plugin isn't library based, it seems to fork the viewer application
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description mozplugin
|
|
|
|
|
|
|
|
Mozilla plugin for DjVuLibre.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for DjVuLibre
|
|
|
|
Summary: Development files for DjVuLibre
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
@ -62,29 +53,19 @@ Development files for DjVuLibre.
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1 -b .cdefs
|
|
|
|
%patch0 -p1 -b .cdefs
|
|
|
|
|
|
|
|
|
|
|
|
# Convert ISO8859-1 ja man pages to UTF-8 (still as of 3.5.20-2)
|
|
|
|
|
|
|
|
#for manpage in i18n/ja/*.1*; do
|
|
|
|
|
|
|
|
# iconv -f iso8859-1 -t utf-8 -o tmp ${manpage}
|
|
|
|
|
|
|
|
# mv tmp ${manpage}
|
|
|
|
|
|
|
|
#done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%configure --with-qt=%{_libdir}/qt-3.3 --enable-threads
|
|
|
|
%configure --with-qt=%{_libdir}/qt-3.3 --enable-threads
|
|
|
|
# Disable rpath on 64bit - NOT! It makes the build fail (still as of 3.5.20-2)
|
|
|
|
# Disable rpath on 64bit - NOT! It makes the build fail (still as of 3.5.20-2)
|
|
|
|
#sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
#sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
#sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
#sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
# In 3.5.14 %{?_smp_mflags} broke the build - still in 3.5.20-2
|
|
|
|
|
|
|
|
%{__make} OPTS="%{optflags}"
|
|
|
|
#%{__make} OPTS="%{optflags}"
|
|
|
|
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
%{__make} install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
# Move plugin from the netscape directory to the main mozilla one
|
|
|
|
|
|
|
|
%{__mkdir_p} %{buildroot}%{_libdir}/mozilla/plugins/
|
|
|
|
|
|
|
|
%{__mv} %{buildroot}%{_libdir}/netscape/plugins/nsdejavu.so \
|
|
|
|
|
|
|
|
%{buildroot}%{_libdir}/mozilla/plugins/nsdejavu.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Fix for the libs to get stripped correctly (still required in 3.5.20-2)
|
|
|
|
# Fix for the libs to get stripped correctly (still required in 3.5.20-2)
|
|
|
|
find %{buildroot}%{_libdir} -name '*.so*' | xargs %{__chmod} +x
|
|
|
|
find %{buildroot}%{_libdir} -name '*.so*' | xargs %{__chmod} +x
|
|
|
@ -104,16 +85,11 @@ chrpath --delete $RPM_BUILD_ROOT%{_bindir}/cpaldjvu
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvuextract
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvuextract
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/c44
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/c44
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvups
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvups
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djview3
|
|
|
|
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvudump
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvudump
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvmcvt
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvmcvt
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/bzz
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/bzz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
# Menu entry (icons and desktop file)
|
|
|
|
# Menu entry (icons and desktop file)
|
|
|
|
%{_datadir}/djvu/djview3/desktop/register-djview-menu install || :
|
|
|
|
%{_datadir}/djvu/djview3/desktop/register-djview-menu install || :
|
|
|
@ -147,10 +123,6 @@ fi
|
|
|
|
%doc README COPYRIGHT COPYING NEWS TODO
|
|
|
|
%doc README COPYRIGHT COPYING NEWS TODO
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
|
|
|
|
%files mozplugin
|
|
|
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%{_libdir}/mozilla/plugins/nsdejavu.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc/*.*
|
|
|
|
%doc doc/*.*
|
|
|
@ -161,6 +133,11 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Aug 8 2011 Peter Robinson <pbrobinson@gmail.com> 3.5.24-1
|
|
|
|
|
|
|
|
- 3.5.24
|
|
|
|
|
|
|
|
- Obsolete mozplugin, dropped upstream
|
|
|
|
|
|
|
|
- Dropped djview3, use djview4
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 31 2011 Karsten Hopp <karsten@redhat.com> 3.5.22-2
|
|
|
|
* Mon Jan 31 2011 Karsten Hopp <karsten@redhat.com> 3.5.22-2
|
|
|
|
- add include cstddefs for size_t
|
|
|
|
- add include cstddefs for size_t
|
|
|
|
|
|
|
|
|
|
|
|