#
# spec file for package tellico (Version 1.2.11)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           tellico
BuildRequires:  kdemultimedia3-CD kdemultimedia3-devel libyaz-devel taglib-devel tcpd-devel
%if %suse_version < 1010
BuildRequires:  libgcrypt-devel openssl-devel update-desktop-files
%endif
%if %suse_version < 1000
BuildRequires:  libjpeg-devel
%endif
Summary:        A book collection manager
Version:        1.2.11
Release:        1
License:        GNU General Public License (GPL)
Group:          Productivity/Other
Source:         %{name}-%{version}.tar.gz
Provides:       bookcase
Obsoletes:      bookcase
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Prefix:         /opt/kde3
URL:            http://www.periapsis.org/tellico/
Patch:          fix-compile.diff

%description
Tellico is an KDE application for keeping track of your collections. It
provides default templates for books, bibliographies, videos, music,
coins, stamps, trading cards, comic books, and wines.



%prep
%setup -q
%patch
. /etc/opt/kde3/common_options
update_admin --no-unsermake

%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final
do_make %{?jobs:-j %jobs}

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
kde_post_install
%suse_update_desktop_file %name Office Database
cd $RPM_BUILD_ROOT
find . -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs
find . -type f -fprint $RPM_BUILD_DIR/file.list.%{name}.files.tmp
sed '/\/man\//s/$/.gz/g' $RPM_BUILD_DIR/file.list.%{name}.files.tmp > $RPM_BUILD_DIR/file.list.%{name}.files
find . -type l -fprint $RPM_BUILD_DIR/file.list.%{name}.libs
sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' $RPM_BUILD_DIR/file.list.%{name}.dirs > $RPM_BUILD_DIR/file.list.%{name}
sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.files >> $RPM_BUILD_DIR/file.list.%{name}
sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.libs >> $RPM_BUILD_DIR/file.list.%{name}

%clean
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/file.list.%{name}
rm -rf $RPM_BUILD_DIR/file.list.%{name}.libs
rm -rf $RPM_BUILD_DIR/file.list.%{name}.files
rm -rf $RPM_BUILD_DIR/file.list.%{name}.files.tmp
rm -rf $RPM_BUILD_DIR/file.list.%{name}.dirs

%files -f ../file.list.%{name}
%defattr(-,root,root,0755)

%changelog
* Wed May 09 2007 - stbinner@suse.de
- update to version 1.2.11:
  * Improved save time by caching image info on load.
  * Fixed crashing bug for OpenOffice.org connection.
  * Fixed bug that could lose images when loading from XML.
  * Fixed sorting for Dependent fields to match on subfields.
  * Updated IMDb search.
  * Fixed CDDB lookup for OpenBSD, patch from Marc Espie.
* Tue Apr 10 2007 - stbinner@suse.de
- update to version 1.2.10:
  * Fixed crashing bug when undoing collection import.
  * Fixed hanging bug when stopping a z39.50 search.
  * Fixed bug that hid some Amazon search results.
  * Fixed ONIX export to validate.
  * Fixed Alexandria export and cover image import.
  * Updated Amazon search for newer API.
  * Fixed error handling for ISBN-13 searches.
  * Updated ibs.it searching.
  * Fixed searching to properly replace all HTML entities.
  * Added Blu-ray and HD DVD to video media.
  * Improved collection merging.
* Mon Mar 05 2007 - stbinner@suse.de
- update to version 1.2.9:
  * Updated IMDb search.
  * Fixed sorting for entries with rating = 10.
  * Fixed bug with formatting dependent fields.
  * Fixed bug with adding spaces following a comma in the editor.
  * Changed MODS import to allow any result with typeOfResult = text.
  * Fixed several bugs with i18n issues.
* Tue Feb 06 2007 - stbinner@suse.de
- fix build on < 10.1
* Mon Feb 05 2007 - stbinner@suse.de
- update to version 1.2.8:
  * Fixed bug with secondary and tertiary sorting.
  * Fixed bug with some z39.50 search results not showing up.
  * Fixed bug with comparing relative URLs when importing a file catalog.
  * Fixed “ISBN Not Found” dialog to have selectable text.
  * Fixed “busy cursor doesn’t go away” in the download stuff dialog.
  * Fixed the newstuff download to uninstall cleanly.
  * Fixed compilation error in yaz include, patch from Markus Brueffer.
  * Updated CDDB import to grab extd data as comments, and category
  as keyword.
  * Updated audio file importer to take disc number into account for
  mp3, ogg, and flac files.
  * Changed IMDB rating to allow float values.
* Mon Dec 11 2006 - stbinner@suse.de
- update to version 1.2.7:
  * Fixed bug that could cause images to be lost when loading from
  data file.
  * Fixed bug with saving URL values without the protocol.
  * Fixed bug with editing ISBN-13 values.
  * Updated sorting to take title articles into account.
  * Updated Amazon.com search to allow ISBN-13 values.
  * Changed file listing import to match on URL only.
  * Improved performance when copying or deleting multiple entries
  at once.
* Mon Dec 04 2006 - stbinner@suse.de
- update to version 1.2.6:
  * Fixed intermittent crashing bug when doing updates.
  * Improved update matching for some types of entries.
  * Improved IMDB cast search for TV shows.
- update to version 1.2.5
  * Improved performance for loading large (> 10Mb) images.
  * Fixed another bug with over-writing images on entry update.
  * Fixed crashing bug for some Amazon and Yahoo searches.
  * Updated yahoo audio search webservice url.
  * Updated allocine script.
* Sun Oct 15 2006 - stbinner@suse.de
- update to version 1.2.4:
  * improved performance on loading and unloading collection files
  * fixed bug with Internet search dialog showing data sources for
  all types
  * fixed bug with overwriting images when updating entries
  * Updated allocine.fr script
* Thu Oct 05 2006 - wstephenson@suse.de
- Fix off by one bug in file listing importer (#207685)
* Tue Sep 26 2006 - stbinner@suse.de
- update to version 1.2.3:
  * Fixed the HTML export to properly copy included files and use
  relative links.
  * Added a button to the Internet search to fetch additional
  results for some data sources (Amazon, IMDb, z39.50).
* Fri Sep 08 2006 - stbinner@suse.de
- update to version 1.2.2:
  * Fixed a bug that caused the wrong temporary directory to be
  used for images, which could hide or lose them
* Thu Sep 07 2006 - stbinner@suse.de
- update to version 1.2.1:
  * Fixed CDDB bug that read everything as Pink Floyd :).
  * Improved image cache performance a bit more, and fixed another
  memory leak.
  * Fixed a crashing bug in the file listing importer.
  * Fixed a rendering bug with the image gradients used in the
  entry templates.
  * Fixed a bug with some fields not showing auto-completion in
  the filter dialog.
  * Fixed CDDB cache importer to use UTF-8, as done in libkcddb.
  * Changed bibtex exporter to add braces or quotations around
  \url{...} values.
* Fri Sep 01 2006 - stbinner@suse.de
- update to version 1.2:
  * Added dialog for downloading new entry templates from
  kde-files.org
  * Added dialog for downloading new scripts (requires gpg)
  * Added config options for fonts and colors for entry templates
  * Added preset z39.50 server list
  * Added auto-completion to filter dialog
  * Added scripts for allocine.fr, Spanish Ministry of Culture and
  Dark Horse Comics, from Mathias Monnerville
  * Added ‘next’ and ‘prev’ buttons to entry editor.
  * Added isbndb.com as a data source
  * Added Ant Movie Catalog file importer
  * Added dialog to choose from multiple CDDB search responses
  * Fields can have default values
  * Data sources can be set to overwrite existing data when
  updating entries.
  * Added parser for unmodified CueCat bar code scanner
* Thu Jun 15 2006 - dmueller@suse.de
- build parallel
* Thu Jun 01 2006 - stbinner@suse.de
- fix build for < 10.0
* Tue May 30 2006 - adrian@suse.de
- fix build for < 10.1
* Fri May 12 2006 - stbinner@suse.de
- Update to version 1.1.6
  * Fixed bug that prevented images from being saved in certain
  situations.
  * Fixed bug that caused a crash when importing some RIS files.
  * Added french documentation, from Regis Boudin.
* Thu Apr 20 2006 - stbinner@suse.de
- Update to version 1.1.5
  * Fixed bug with writing too many temporary image files.
  * Fixed bug in multiple ISBN search for z39.50.
  * Fixed "disappearing paragraph" bug in Fancy template.
  * Fixed name ordering for IBS searching.
  * Added "Xbox 360" to Amazon.com game searching.
  * Fixed crashing bug when deleting and re-adding fields by same
  name.
  * Fixed HTML decoding bug in IMDb plot summary.
  * Fixed bug that re-created default fields when adding search
  results.
  * Updated Spanish translation.
  * Changed CD-Text support to Linux-only, since it doesn't
  actually work on other platforms.
* Tue Apr 04 2006 - stbinner@suse.de
- Update to version 1.1.4
  * Fixed bug that prevented XSLT files with spaces or other
  non-encoded characters from being opened.
  * Fixed bug with incorrectly setting document as modified when
  loading images.
  * Fixed bug with loading loans for entries with non-consecutive
  ids.
  * Fixed bug that caused crashes when changing grouping options
  for some fields.
  * Fixed bug that prevented files saved with versions < 0.8 from
  being opened.
  * Fixed image fetching for IBS.
  * Fixed compilation for OpenOffice.org SDK 2.0.2.
  * Updated French translation.
* Tue Mar 28 2006 - stbinner@suse.de
- Update to version 1.1.3
  * Fixed bug that prevented the comic book template from showing
  up in config options or importers.
  * Fixed z39.50 search to use same character encoding for query
  as for search results.
  * Changed ISO 5426 converter to treat umlaut and diaeresis
  identically.
  * Fixed intermittent crash when exporting HTML and overwriting
  files.
  * Fixed bug with empty groups showing up after deleting entries.
  * Updated ru translation.
* Sun Feb 19 2006 - stbinner@suse.de
- Update to version 1.1.1
* Thu Feb 09 2006 - stbinner@suse.de
- Update to version 1.1
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Dec 01 2005 - stbinner@suse.de
- Update to version 1.0.3
* Wed Oct 19 2005 - kukuk@suse.de
- Remove unsermake
- Update to version 1.0.2
* Tue Oct 18 2005 - stbinner@suse.de
- remove extra qualification for gcc 4.1 compilation
* Wed Jul 20 2005 - kukuk@suse.de
- Update to version 0.13.8
* Wed May 25 2005 - adrian@suse.de
- update to version 0.13.6
* Tue Apr 19 2005 - adrian@suse.de
- fix build
* Mon Feb 28 2005 - adrian@suse.de
- update to version 0.13.4
  * bugfixes and translation updates
* Thu Feb 17 2005 - adrian@suse.de
- desktop file got moved to xdg dir
* Mon Jan 03 2005 - coolo@suse.de
- fix build
* Tue Dec 21 2004 - kukuk@suse.de
- Update to 0.13.1
* Wed Dec 08 2004 - ro@suse.de
- hack to build on x86_64
* Mon Dec 06 2004 - kukuk@suse.de
- Update to version 0.13
- Add yaz support
* Tue Nov 16 2004 - adrian@suse.de
- rename package from bookcase to tellico
- update to version 0.12
- add packages to nfb to support audio CDs
* Mon Sep 06 2004 - kukuk@suse.de
- Update to version 0.11
* Sun Jun 13 2004 - kukuk@suse.de
- Initial version