|
|
a7344d9 |
%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
|
|
|
a7344d9 |
%define rubyabi 1.8
|
|
|
a1941f7 |
%define repoid 32739
|
|
|
822b0a6 |
|
|
|
a1941f7 |
%define majorver 0.6.3
|
|
|
c1a0f47 |
%undefine minorver
|
|
|
822b0a6 |
|
|
|
bc8ba86 |
%define fedorarel 5
|
|
|
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
|
|
|
bc8ba86 |
#Patch0: alexandria-0.6.3-crash_tooltips.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
|
|
|
e525df9 |
#Requires: ruby(amazon)
|
|
|
a7344d9 |
Requires: ruby(gettext-package)
|
|
|
67310c8 |
Requires: ruby(imagesize)
|
|
|
67310c8 |
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 |
|
|
|
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}
|
|
|
bc8ba86 |
#%%patch0 -p1 -b .tooltips
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%build
|
|
|
822b0a6 |
rake build
|
|
|
a7344d9 |
|
|
|
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/
|
|
|
822b0a6 |
%{_bindir}/gtk-update-icon-cache --quiet %{_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
|
|
|
822b0a6 |
touch --no-create %{_datadir}/icons/hicolor/
|
|
|
822b0a6 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
|
a7344d9 |
|
|
|
822b0a6 |
%{_bindir}/scrollkeeper-update -q
|
|
|
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}/
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%{_datadir}/applications/fedora-%{name}.desktop
|
|
|
822b0a6 |
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
|
|
a7344d9 |
|
|
|
a7344d9 |
%changelog
|
|
|
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
|
|
|
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 |
|