|
|
fa71873 |
%{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
|
|
|
a7344d9 |
%define rubyabi 1.8
|
|
|
5ac1380 |
%define repoid 62178
|
|
|
822b0a6 |
|
|
|
5ac1380 |
%define majorver 0.6.5
|
|
|
a8bddf5 |
%undefine minorver
|
|
|
822b0a6 |
|
|
|
5ac1380 |
%define fedorarel 1
|
|
|
822b0a6 |
%define rel %{?minorver:0.}%{fedorarel}%{?minorver:.%minorver}
|
|
|
822b0a6 |
|
|
|
822b0a6 |
|
|
|
a7344d9 |
|
|
|
a7344d9 |
Name: alexandria
|
|
|
822b0a6 |
Version: %{majorver}
|
|
|
822b0a6 |
Release: %{rel}%{?dist}
|
|
|
a7344d9 |
Summary: Book collection manager
|
|
|
a7344d9 |
|
|
|
a7344d9 |
Group: Applications/Productivity
|
|
|
b0be43b |
License: GPLv2+
|
|
|
a7344d9 |
URL: http://alexandria.rubyforge.org/
|
|
|
822b0a6 |
Source0: http://rubyforge.org/frs/download.php/%{repoid}/%{name}-%{version}%{?minorver}.tar.gz
|
|
|
9cd0a7c |
# Trial fix for hang up when importing list containing invalid isdn
|
|
|
9cd0a7c |
# ref: alexandria-Bugs-25348
|
|
|
9cd0a7c |
Patch2: alexandria-0.6.4.1-hang-importing-invalid-isdn.patch
|
|
|
5ac1380 |
# Need ask to upstream
|
|
|
5ac1380 |
# perhaps there is some confusion about GLib.convert...
|
|
|
5ac1380 |
Patch3: alexandria-0.6.5-glib_convert-syntax.patch
|
|
|
5ac1380 |
# Need ask to upstream
|
|
|
5ac1380 |
# Sometimes search result has empty book or cover entry
|
|
|
5ac1380 |
Patch4: alexandria-0.6.5-search-result-sanity-check.patch
|
|
|
a7344d9 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
a7344d9 |
|
|
|
a7344d9 |
BuildArch: noarch
|
|
|
a7344d9 |
BuildRequires: ruby(abi) = %{rubyabi}
|
|
|
822b0a6 |
BuildRequires: rubygem(rake)
|
|
|
a7344d9 |
BuildRequires: desktop-file-utils
|
|
|
a7344d9 |
BuildRequires: gettext
|
|
|
a7344d9 |
BuildRequires: intltool
|
|
|
a7344d9 |
BuildRequires: scrollkeeper
|
|
|
a7344d9 |
|
|
|
a7344d9 |
BuildRequires: ImageMagick
|
|
|
a7344d9 |
|
|
|
a7344d9 |
Requires: ruby
|
|
|
a7344d9 |
Requires: ruby(abi) = %{rubyabi}
|
|
|
a7344d9 |
|
|
|
e525df9 |
# Amazon AWS v3 -> v4 switch
|
|
|
e525df9 |
# AWS v4 is supported by alexandria itself
|
|
|
7189522 |
# But hpricot is still needed
|
|
|
e525df9 |
#Requires: ruby(amazon)
|
|
|
a7344d9 |
Requires: ruby(gettext-package)
|
|
|
7189522 |
Requires: ruby(hpricot)
|
|
|
87186a7 |
Requires: ruby(htmlentities)
|
|
|
67310c8 |
Requires: ruby(imagesize)
|
|
|
59f4462 |
# Dependency removed on 0.6.4b1
|
|
|
59f4462 |
#Requires: ruby(mechanize)
|
|
|
abe4aa9 |
Requires: ruby(revolution)
|
|
|
67310c8 |
|
|
|
67310c8 |
# ruby(zoom) -> rubygem(zoom) switch
|
|
|
67310c8 |
#Requires: ruby(zoom)
|
|
|
67310c8 |
Requires: rubygem(zoom) >= 0.3.0
|
|
|
67310c8 |
Requires: ruby(marc)
|
|
|
67310c8 |
|
|
|
a7344d9 |
Requires: ruby(gconf2)
|
|
|
a7344d9 |
Requires: ruby(gdkpixbuf2)
|
|
|
a7344d9 |
Requires: ruby(glib2)
|
|
|
a7344d9 |
Requires: ruby(gnome2)
|
|
|
a7344d9 |
Requires: ruby(libglade2)
|
|
|
a7344d9 |
|
|
|
a7344d9 |
Requires(post): scrollkeeper
|
|
|
a7344d9 |
Requires(postun): scrollkeeper
|
|
|
a7344d9 |
Requires(pre): GConf2
|
|
|
a7344d9 |
Requires(post): GConf2
|
|
|
a7344d9 |
Requires(preun): GConf2
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%description
|
|
|
a7344d9 |
Alexandria is a GNOME application to help you manage your book collection.
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%prep
|
|
|
822b0a6 |
%setup -q -n %{name}-%{majorver}%{?minorver}
|
|
|
9cd0a7c |
%patch2 -p0 -b .up25348
|
|
|
5ac1380 |
%patch3 -p0 -b .glib
|
|
|
5ac1380 |
%patch4 -p0 -b .result
|
|
|
a7344d9 |
|
|
|
f20047c |
# Embed Fedora EVR
|
|
|
f20047c |
%{__sed} -i.evr \
|
|
|
f20047c |
-e "s|\(b.display_version = \).*$|\1'%{version}-%{release}'|" \
|
|
|
f20047c |
Rakefile
|
|
|
f20047c |
|
|
|
a7344d9 |
%build
|
|
|
822b0a6 |
rake build
|
|
|
a7344d9 |
|
|
|
2605d4b |
|
|
|
a7344d9 |
%install
|
|
|
a7344d9 |
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
a7344d9 |
|
|
|
a7344d9 |
# disable scrollkeeper
|
|
|
67310c8 |
%{__rm} -rf tmpbin
|
|
|
a7344d9 |
%{__mkdir} tmpbin
|
|
|
a7344d9 |
%{__ln_s} -f /bin/true tmpbin/scrollkeeper-update
|
|
|
822b0a6 |
%{__ln_s} -f /bin/true tmpbin/gconftool-2
|
|
|
822b0a6 |
%{__ln_s} -f /bin/true tmpbin/gtk-update-icon-cache
|
|
|
822b0a6 |
|
|
|
a7344d9 |
export PATH="$(pwd)/tmpbin:$PATH"
|
|
|
822b0a6 |
#export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
|
822b0a6 |
export PREFIX=$RPM_BUILD_ROOT%{_prefix}
|
|
|
a7344d9 |
|
|
|
822b0a6 |
rake install
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/applications/
|
|
|
a7344d9 |
desktop-file-install \
|
|
|
a7344d9 |
--vendor fedora \
|
|
|
a7344d9 |
--dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
|
|
|
822b0a6 |
--delete-original \
|
|
|
822b0a6 |
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
|
|
|
a7344d9 |
|
|
|
a7344d9 |
# create 64x64, 128x128 icon
|
|
|
a7344d9 |
for s in 64 128 ; do
|
|
|
a7344d9 |
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/
|
|
|
a7344d9 |
convert -scale ${s}x${s} \
|
|
|
a7344d9 |
data/alexandria/icons/%{name}.png \
|
|
|
a7344d9 |
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png
|
|
|
a7344d9 |
done
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/
|
|
|
a7344d9 |
%{__install} -c -p -m 0644 schemas/%{name}.schemas \
|
|
|
a7344d9 |
$RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/
|
|
|
a7344d9 |
|
|
|
822b0a6 |
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/locale/
|
|
|
822b0a6 |
%{__cp} -pr data/locale/* $RPM_BUILD_ROOT%{_datadir}/locale/
|
|
|
822b0a6 |
|
|
|
c1a0f47 |
# Clean up documents
|
|
|
c1a0f47 |
%{__rm} -rf $RPM_BUILD_ROOT%{_defaultdocdir}
|
|
|
c1a0f47 |
|
|
|
a1941f7 |
# %%{_datadir}/menu seems to be used for debian
|
|
|
a1941f7 |
# Removing for Fedora
|
|
|
a1941f7 |
%{__rm} -rf $RPM_BUILD_ROOT%{_datadir}/menu/
|
|
|
a1941f7 |
|
|
|
a7344d9 |
%find_lang %{name}
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%clean
|
|
|
a7344d9 |
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%pre
|
|
|
a7344d9 |
if [ "$1" -gt 1 ]; then
|
|
|
a7344d9 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
|
a7344d9 |
gconftool-2 --makefile-uninstall-rule \
|
|
|
822b0a6 |
%{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null
|
|
|
a7344d9 |
fi
|
|
|
822b0a6 |
exit 0
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%post
|
|
|
822b0a6 |
touch --no-create %{_datadir}/icons/hicolor/
|
|
|
a7344d9 |
|
|
|
822b0a6 |
%{_bindir}/scrollkeeper-update -q -o %{_datadir}/omf/%{name}
|
|
|
a7344d9 |
|
|
|
a7344d9 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
|
a7344d9 |
gconftool-2 --makefile-install-rule \
|
|
|
822b0a6 |
%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null
|
|
|
822b0a6 |
exit 0
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%preun
|
|
|
a7344d9 |
if [ "$1" -eq 0 ]; then
|
|
|
a7344d9 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
|
a7344d9 |
gconftool-2 --makefile-uninstall-rule \
|
|
|
822b0a6 |
%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null
|
|
|
a7344d9 |
fi
|
|
|
822b0a6 |
exit 0
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%postun
|
|
|
fa71873 |
%{_bindir}/scrollkeeper-update -q
|
|
|
fa71873 |
[ "$1" -eq 0 ] || exit 0
|
|
|
fa71873 |
|
|
|
822b0a6 |
touch --no-create %{_datadir}/icons/hicolor/
|
|
|
822b0a6 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
|
a7344d9 |
|
|
|
fa71873 |
exit 0
|
|
|
fa71873 |
|
|
|
fa71873 |
%posttrans
|
|
|
fa71873 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
|
822b0a6 |
exit 0
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%files -f %{name}.lang
|
|
|
a7344d9 |
%defattr(-,root,root,-)
|
|
|
822b0a6 |
%doc COPYING
|
|
|
822b0a6 |
%doc ChangeLog
|
|
|
a05ef9d |
%doc INSTALL
|
|
|
c1a0f47 |
%doc README*
|
|
|
822b0a6 |
%doc TODO
|
|
|
c1a0f47 |
%doc doc/[A-Z]*
|
|
|
c1a0f47 |
%doc doc/cuecat_support.rdoc
|
|
|
c1a0f47 |
|
|
|
c1a0f47 |
%{_mandir}/man1/%{name}.1*
|
|
|
822b0a6 |
|
|
|
a7344d9 |
%{_bindir}/%{name}
|
|
|
a7344d9 |
%{ruby_sitelib}/%{name}.rb
|
|
|
a7344d9 |
%{ruby_sitelib}/%{name}/
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%{_sysconfdir}/gconf/schemas/%{name}.schemas
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%{_datadir}/%{name}/
|
|
|
a7344d9 |
%{_datadir}/gnome/help/%{name}/
|
|
|
a7344d9 |
%{_datadir}/omf/%{name}/
|
|
|
a8bddf5 |
%{_datadir}/sounds/%{name}/
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%{_datadir}/applications/fedora-%{name}.desktop
|
|
|
822b0a6 |
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%changelog
|
|
|
5ac1380 |
* Thu Aug 20 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.5-1
|
|
|
5ac1380 |
- Update to 0.6.5
|
|
|
5ac1380 |
- Remove 2 upstreamed patches (1 patch still unremoved)
|
|
|
5ac1380 |
- Add 2 patches, will report upstream
|
|
|
5ac1380 |
|
|
|
5ac1380 |
* Sat Jul 25 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp>
|
|
|
5ac1380 |
- F-12: Mass rebuild
|
|
|
5ac1380 |
|
|
|
9cd0a7c |
* Mon Apr 13 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.4.1-6
|
|
|
9cd0a7c |
- Trial fix to fix hang when importing list containing invalid
|
|
|
9cd0a7c |
isdn (alexandria-Bugs-25348)
|
|
|
9cd0a7c |
|
|
|
f20047c |
* Wed Apr 8 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.4.1-5
|
|
|
f20047c |
- Embed Fedora EVR
|
|
|
f20047c |
|
|
|
ffb6a57 |
* Tue Apr 7 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.4.1-4
|
|
|
ffb6a57 |
- Fix for strange behavior with right click on left pane
|
|
|
9f05cbb |
(alexandria-Bugs-25021)
|
|
|
9f05cbb |
|
|
|
2605d4b |
* Thu Mar 26 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.4.1-2
|
|
|
2605d4b |
- Fix arguments of bindtextdomain() for ruby(gettext) 2.0.0
|
|
|
9f05cbb |
(alexandria-Bugs-24882)
|
|
|
2605d4b |
|
|
|
1e7aa6b |
* Mon Mar 16 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.4.1-1
|
|
|
9cd0a7c |
- 0.6.4.1 (fixing alexandria-Bugs-24568)
|
|
|
1e7aa6b |
|
|
|
a8bddf5 |
* Sun Mar 15 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.4-1
|
|
|
a8bddf5 |
- 0.6.4
|
|
|
a8bddf5 |
- Patch from upstream to fix issue when book entry is once sorted
|
|
|
9cd0a7c |
(alexandria-Bugs-24568)
|
|
|
a8bddf5 |
|
|
|
87186a7 |
* Fri Mar 6 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.4-0.2.b1
|
|
|
87186a7 |
- Add ruby(htmlentities) dependency
|
|
|
87186a7 |
|
|
|
87186a7 |
* Tue Mar 3 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.4-0.1.b1
|
|
|
59f4462 |
- Update to 0.6.4 beta 1
|
|
|
59f4462 |
- Drop all patches, merged into upstream
|
|
|
59f4462 |
|
|
|
fa71873 |
* Fri Feb 27 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.3-11
|
|
|
fa71873 |
- library UTF-8 patch update
|
|
|
fa71873 |
|
|
|
fa71873 |
* Thu Feb 26 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.3-10
|
|
|
fa71873 |
- Use upstreamed patch for UTF-8 strings issue
|
|
|
fa71873 |
|
|
|
fa71873 |
* Thu Feb 26 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.3-9
|
|
|
fa71873 |
- Attempt to handle UTF-8 strings in library names correctly
|
|
|
9cd0a7c |
(alexandria-Bugs-20168)
|
|
|
fa71873 |
|
|
|
fa71873 |
* Tue Feb 24 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp>
|
|
|
fa71873 |
- F-11: Mass rebuild
|
|
|
fa71873 |
|
|
|
fa71873 |
* Tue Feb 24 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.3-8
|
|
|
fa71873 |
- Global-ize "nested" macro
|
|
|
fa71873 |
- GTK icon cache update scripts update
|
|
|
fa71873 |
|
|
|
7189522 |
* Wed Feb 4 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.3-7
|
|
|
7189522 |
- Add hpricot dependency again (for Amazon provider)
|
|
|
7189522 |
|
|
|
7189522 |
* Sun Jan 11 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.3-6
|
|
|
7189522 |
- Rebuild to restore ARCHIVESIZE
|
|
|
7189522 |
|
|
|
bc8ba86 |
* Wed Jul 16 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.3-5
|
|
|
bc8ba86 |
- Remove workaround for bug 436697 (tooltips crash).
|
|
|
bc8ba86 |
This was a bug on ruby-gnome2 which is fixed in 0.17.0 rc1
|
|
|
9cd0a7c |
(ref: alexandria-Bugs-19042)
|
|
|
bc8ba86 |
|
|
|
e525df9 |
* Thu Apr 3 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.3-4
|
|
|
e525df9 |
- Drop ruby(amazon) dependency (Amazon no longer provides AWSv3,
|
|
|
e525df9 |
AWSv4 is supported by alexandria itself)
|
|
|
e525df9 |
|
|
|
378d89b |
* Sun Mar 23 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.3-2
|
|
|
378d89b |
- Disable tooltips on_motion func for now to workaround for
|
|
|
378d89b |
bug 436697
|
|
|
378d89b |
|
|
|
a1941f7 |
* Sat Feb 23 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.3-1
|
|
|
a1941f7 |
- 0.6.3
|
|
|
a1941f7 |
- One patch removed (applied by upstream)
|
|
|
a1941f7 |
|
|
|
b19da84 |
* Mon Dec 31 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.2-2
|
|
|
b19da84 |
- Trial workaround patch for bug 427070
|
|
|
b19da84 |
|
|
|
c1a0f47 |
* Thu Dec 20 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.2-1
|
|
|
c1a0f47 |
- 0.6.2
|
|
|
c1a0f47 |
- Two patches for 0.6.2b2 are removed.
|
|
|
c1a0f47 |
|
|
|
a05ef9d |
* Sun Dec 16 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.2-0.6.b2
|
|
|
d641c4f |
- Pass exception when user don't use evolution for mailer.
|
|
|
5454418 |
- Fix crash when yelp is not installed.
|
|
|
a05ef9d |
- Add INSTALL to %%doc as this file contains some useful information.
|
|
|
d641c4f |
|
|
|
abe4aa9 |
* Wed Dec 12 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.2-0.3.b2
|
|
|
abe4aa9 |
- Also require ruby(revolution)
|
|
|
abe4aa9 |
|
|
|
67310c8 |
* Tue Nov 13 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.2-0.2.b2
|
|
|
67310c8 |
- Add more requires of ruby modules to support more function
|
|
|
67310c8 |
|
|
|
062e8a8 |
* Sun Nov 4 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.2-0.1.b2
|
|
|
062e8a8 |
- And try 0.6.2 beta 2
|
|
|
062e8a8 |
|
|
|
822b0a6 |
* Fri Nov 2 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.2-0.1.b1
|
|
|
822b0a6 |
- Try 0.6.2 beta 1
|
|
|
b0be43b |
|
|
|
a7344d9 |
* Fri May 11 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.1-3
|
|
|
a7344d9 |
- This time completely disable scrollkeeper-update
|
|
|
a7344d9 |
- Create 128x128 icon also
|
|
|
a7344d9 |
|
|
|
a7344d9 |
* Tue May 1 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.1-2
|
|
|
a7344d9 |
- Fix scriptlets typo
|
|
|
a7344d9 |
|
|
|
a7344d9 |
* Sun Apr 22 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.6.1-1
|
|
|
a7344d9 |
- Initial packaging
|
|
|
a7344d9 |
|