Name: alexandria Summary: Alexandria is a GNOME application to help you manage your book collection. Version: 0.6.1 Release: 2.rcn.FC5 License: GPL Group: Applications/Databases URL: http://alexandria.rubyforge.org/ Source0: %{name}-%{version}.tar.gz Packager: Raoul <> # 5/19/2006 Leeksoup # Update dependencies to remove various pieces and replace with ruby-gnome2-all BuildRequires: ruby-devel >= 1.8.0 BuildRequires: gtk2-devel >= 2.6.0 BuildRequires: ruby-amazon >= 0.8.3 BuildRequires: ruby-gettext >= 0.6.1 BuildRequires: ruby-gnome2-all >= 0.14.0 BuildRequires: ruby-zoom >= 0.2.0 BuildRequires: intltool gettext-devel GConf2 Requires: ruby >= 1.8.0 Requires: gtk2 >= 2.6.0 Requires: ruby-amazon >= 0.8.3 Requires: ruby-gettext >= 0.6.1 Requires: ruby-gnome2-all >= 0.14.0 Requires: ruby-zoom >= 0.2.0 Requires(pre): GConf2 Requires(post): GConf2, scrollkeeper Requires(preun): GConf2 Requires(postun): scrollkeeper #BuildArch: noarch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root %description Alexandria is a GNOME application to help you manage your book collection. Alexandria: * retrieves and displays book information (sometimes with cover pictures) from several online libraries, such as Amazon, Proxis, Barnes and Noble, the Spanish Ministry of Culture, Amadeus Buch, Internet Bookshop Italia, the US Library of Congress and the British Library ; * allows books to be added and updated by hand ; * enables searches either by EAN/ISBN/UPC, title, authors or keyword ; * supports the Z39.50 standard and allow you to manage your own sources ; * saves data using the YAML format ; * can import and export data into ONIX, Tellico and EAN/ISBN/UPC-list formats ; * generates from your libraries XHTML web pages themable with CSS ; * allows marking your books as loaned, each with the loan-date and the name of the person who has borrowed them ; * features a HIG-compliant user interface ; * shows books in different views (standard list or icons list), that can be either filtered or sorted ; * handles book rating and notes ; * supports CueCat (R) barcode readers ; * includes translations for several languages ; * is documented in a complete manual (at the moment in English only). # [ BEGIN Stolen from some mailing list ] # RUBY PATHS DEFINITION %{expand:%%define ruby_libdir %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")} %{expand:%%define ruby_archdir %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")} # [ END Stolen from some mailing list ] %prep # Uninstalls the old schemas when we upgrade if [ "$1" -gt 1 ]; then export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : fi %setup -q -n %{name}-%{version} %build ruby install.rb config \ --prefix=%{_prefix} ruby install.rb setup %install %{__rm} -fr %{buildroot} export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 ruby install.rb install \ --prefix=%{buildroot} unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL # FIXES # COPY THE SCHEMA FILE TO BUILDROOT mkdir -p %{buildroot}%{_sysconfdir}/gconf/schemas/ cp -a schemas/alexandria.schemas %buildroot%{_sysconfdir}/gconf/schemas/ # APPLICATION ICON mkdir -p %{buildroot}%{_datadir}/pixmaps/ cp -a data/alexandria/icons/alexandria.png %{buildroot}%{_datadir}/pixmaps/ # DESKTOP FILE mkdir -p %{buildroot}%{_datadir}/applications/ cat > %{buildroot}%{_datadir}/applications/alexandria.desktop << EOF [Desktop Entry] Name=Alexandria Comment=Alexandria helps you manage your book collection Exec=alexandria Icon=alexandria.png Terminal=false Type=Application Categories=Application;Utility; EOF %find_lang %name --all-name %post # Installs the new schemas export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : # Update the scrollkeeper cataloging system scrollkeeper-update -q -o %{_datadir}/omf/%{name} || : %preun # Uninstalls the old schemas when we remove the package if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : fi %postun # Update the scrollkeeper cataloging system after the removal of the package scrollkeeper-update -q || : %clean %{__rm} -fr %{buildroot} %files -f %{name}.lang %defattr(0755, root, root, 0755) %config %{_sysconfdir}/gconf/schemas/alexandria.schemas %{_bindir}/alexandria %{ruby_libdir}/alexandria.rb %{ruby_libdir}/alexandria %{_datadir}/alexandria %{_datadir}/gnome/help/alexandria %{_datadir}/omf/alexandria %{_datadir}/pixmaps/alexandria.png %{_datadir}/applications/alexandria.desktop %doc AUTHORS ChangeLog COPYING CUECAT_SUPPORT HACKING NEWS README NEWS TODO VERSION tests %changelog * Sun May 21 2006 Leeksoup <> - 0.6.1-2 - Updated by Leeksoup * Tue Oct 11 2005 Raoul <> - 0.6.1-1 - Initial Package