diff --git a/.cvsignore b/.cvsignore index c5e7821..88e4567 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -calibre-0.6.42-nofonts.tar.gz +calibre-0.6.47-nofonts.tar.bz2 diff --git a/calibre-manpages.patch b/calibre-manpages.patch index 38f6f85..8cf30e7 100644 --- a/calibre-manpages.patch +++ b/calibre-manpages.patch @@ -1,32 +1,37 @@ diff -up calibre/src/calibre/linux.py.manpages calibre/src/calibre/linux.py ---- calibre/src/calibre/linux.py.manpages 2009-10-11 20:11:44.926081363 +0300 -+++ calibre/src/calibre/linux.py 2009-10-11 20:11:55.616050312 +0300 -@@ -331,7 +331,7 @@ class PostInstall: +--- calibre/src/calibre/linux.py.manpages 2010-04-10 19:34:42.632332811 +0300 ++++ calibre/src/calibre/linux.py 2010-04-10 19:34:50.404207554 +0300 +@@ -339,7 +339,7 @@ class PostInstall: continue parser = parser() raw = create_man_page(prog, parser) -- manfile = os.path.join(manpath, prog+'.1'+__appname__+'.bz2') -+ manfile = os.path.join(manpath, prog+'.1') - self.info('\tInstalling MAN page for', prog) - open(manfile, 'wb').write(raw) - self.manifest.append(manfile) +- if isfreebsd: ++ if isfreebsd or islinux: + manfile = os.path.join(manpath, prog+'.1') + else: + manfile = os.path.join(manpath, prog+'.1'+__appname__+'.bz2') diff -up calibre/src/calibre/utils/help2man.py.manpages calibre/src/calibre/utils/help2man.py ---- calibre/src/calibre/utils/help2man.py.manpages 2009-10-11 20:12:24.795952999 +0300 -+++ calibre/src/calibre/utils/help2man.py 2009-10-11 20:12:52.463949704 +0300 -@@ -3,7 +3,7 @@ __license__ = 'GPL 3' - __copyright__ = '2009, Kovid Goyal ' +--- calibre/src/calibre/utils/help2man.py.manpages 2010-04-10 19:30:51.670926847 +0300 ++++ calibre/src/calibre/utils/help2man.py 2010-04-10 19:32:27.842332121 +0300 +@@ -4,7 +4,7 @@ __copyright__ = '2009, Kovid Goyal = 2.6 @@ -36,6 +37,8 @@ BuildRequires: python-dateutil BuildRequires: python-imaging BuildRequires: xdg-utils BuildRequires: python-BeautifulSoup +BuildRequires: chmlib-devel +BuildRequires: python-cssutils Requires: PyQt4 Requires: pyPdf @@ -62,8 +65,8 @@ i.e. a single entry in the database that may correspond to ebooks in several formats. It also supports conversion to and from a dozen different ebook formats. -Supported input formats are: MOBI, LIT, PRC, EPUB, ODT, HTML, CBR, CBZ, RTF, -TXT, PDF and LRS. +Supported input formats are: MOBI, LIT, PRC, EPUB, CHM, ODT, HTML, CBR, CBZ, +RTF, TXT, PDF and LRS. %prep %setup -q -n %{name} @@ -75,10 +78,6 @@ TXT, PDF and LRS. # don't check for new upstream version (that's what packagers do) %patch1 -p1 -b .no-update -# we've moved the profiles so we don't have to redistribute cssutils -# until 0.9.6 comes to fedora -%patch2 -p1 -b .cssprofiles - # dos2unix newline conversion %{__sed} -i 's/\r//' src/calibre/web/feeds/recipes/* @@ -102,9 +101,6 @@ OVERRIDE_CFLAGS="%{optflags}" python setup.py build %install rm -rf %{buildroot} -# this is the only file we need from the provided cssutils package -cp -p src/cssutils/profiles.py src/calibre/css_profiles.py - mkdir -p %{buildroot}%{_datadir} # create directories for xdg-utils @@ -116,6 +112,10 @@ mkdir -p %{buildroot}%{_datadir}/mime/packages mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/desktop-directories +# create directory for calibre environment module +# the install script assumes it's there. +mkdir -p %{buildroot}%{python_sitelib} + XDG_DATA_DIRS="%{buildroot}%{_datadir}" \ XDG_UTILS_INSTALL_MODE="system" \ LIBPATH="%{_libdir}" \ @@ -123,7 +123,10 @@ python setup.py install --root=%{buildroot}%{_prefix} \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --staging-libdir=%{buildroot}%{_libdir} \ - +# remove shebang from init_calibre.py here because +# it just got spawned by the install script +%{__sed} -i -e '/^#!\//, 1d' %{buildroot}%{python_sitelib}/init_calibre.py + # icons mkdir -p %{buildroot}%{_datadir}/pixmaps/ cp -p resources/images/library.png \ @@ -240,9 +243,17 @@ fi %{_datadir}/mime/packages/* %{_datadir}/icons/hicolor/scalable/mimetypes/* %{_datadir}/icons/hicolor/scalable/apps/* +%{python_sitelib}/init_calibre.py* %{_mandir}/man1/* %changelog +* Sat Apr 10 2010 Ionuț C. Arțăriși - 0.6.47-1 +- new upstream release 0.6.47 +- new chmlib requirement +- create directory for calibre's environment module +- use bzip2 instead of gzip when preparing tarball in generate-tarball.sh +- remove cssutils patches (we now have python-cssutils 0.9.6 in Fedora) + * Fri Feb 26 2010 Ionuț C. Arțăriși - 0.6.42-1 - new upstream release 0.6.42 - remove shebang from default_tweaks.py diff --git a/generate-tarball.sh b/generate-tarball.sh index 78236d6..68d6392 100644 --- a/generate-tarball.sh +++ b/generate-tarball.sh @@ -2,8 +2,9 @@ VERSION=$1 +rm -rf calibre tar -xvzf calibre-$VERSION.tar.gz rm -f calibre/resources/fonts/liberation/* rm -f calibre/resources/fonts/prs500/* -tar -cvzf calibre-$VERSION-nofonts.tar.gz calibre +tar -cvjf calibre-$VERSION-nofonts.tar.bz2 calibre diff --git a/sources b/sources index ddc23f9..9385e8b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d964a1a0907b24573aafc7de94b32c83 calibre-0.6.42-nofonts.tar.gz +6367195fc90386583963dc966258df60 calibre-0.6.47-nofonts.tar.bz2