|
|
3d9b592 |
%global debug_package %{nil}
|
|
|
3d9b592 |
|
|
|
2aeaebb |
Name: bibus
|
|
|
eac1eda |
Version: 1.5.1
|
|
|
3d9b592 |
Release: 2%{?dist}
|
|
|
2aeaebb |
Summary: Bibliographic and reference management software
|
|
|
2aeaebb |
|
|
|
2aeaebb |
Group: Applications/Publishing
|
|
|
2aeaebb |
License: GPLv2+
|
|
|
2aeaebb |
URL: http://bibus-biblio.sourceforge.net/
|
|
|
e08f2cc |
Source0: http://downloads.sourceforge.net/bibus-biblio/%{name}-%{version}.tar.gz
|
|
|
e08f2cc |
|
|
|
eac1eda |
Patch0: %{name}-build-1.5.1.patch
|
|
|
2aeaebb |
|
|
|
2aeaebb |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
6de5d05 |
## temporarily removing noarch to workaround this bug:
|
|
|
6de5d05 |
## https://bugzilla.redhat.com/show_bug.cgi?id=438527
|
|
|
6de5d05 |
## also filed with bibus upstream:
|
|
|
6de5d05 |
## http://sourceforge.net/tracker/index.php?func=detail&aid=1989580&group_id=110943&atid=657832
|
|
|
6de5d05 |
##BuildArch: noarch
|
|
|
2aeaebb |
|
|
|
2aeaebb |
BuildRequires: python-devel
|
|
|
2aeaebb |
BuildRequires: desktop-file-utils
|
|
|
2aeaebb |
BuildRequires: gettext
|
|
|
2aeaebb |
Requires: wxPython > 2.6
|
|
|
2aeaebb |
Requires: MySQL-python
|
|
|
2aeaebb |
Requires: python-sqlite2
|
|
|
2aeaebb |
Requires: openoffice.org-writer
|
|
|
2aeaebb |
Requires: openoffice.org-pyuno
|
|
|
2aeaebb |
|
|
|
2aeaebb |
|
|
|
2aeaebb |
%description
|
|
|
2aeaebb |
Bibus is a bibliographic database. It uses a MySQL or SQLite database
|
|
|
2aeaebb |
to store references. It can directly insert references in
|
|
|
2aeaebb |
OpenOffice.org and MS Word and generate the bibliographic index.
|
|
|
2aeaebb |
|
|
|
2aeaebb |
|
|
|
2aeaebb |
%prep
|
|
|
e08f2cc |
%setup -q -n %{name}-%{version}
|
|
|
e08f2cc |
%patch0 -p0
|
|
|
2aeaebb |
|
|
|
2aeaebb |
## make files UTF-8
|
|
|
2aeaebb |
for i in bibMSW.htm eTBlast\ Interface\ to\ Bibus.htm
|
|
|
2aeaebb |
do
|
|
|
2aeaebb |
/usr/bin/iconv -f iso8859-1 -t utf-8 "Docs/html/en/${i}" > "Docs/html/en/${i}.conv" && /bin/mv -f "Docs/html/en/${i}.conv" "Docs/html/en/${i}"
|
|
|
2aeaebb |
done
|
|
|
2aeaebb |
|
|
|
6de5d05 |
## remove all CVS version control files
|
|
|
6de5d05 |
find . -type d -name CVS -print0 | xargs --null rm -rf
|
|
|
6de5d05 |
|
|
|
2aeaebb |
## fix line endings
|
|
|
6de5d05 |
##find Docs -type f -exec sed -i 's/\r//' {} 2>/dev/null ';'
|
|
|
6de5d05 |
find Docs -type f -name '*ml' -exec sed -i 's/\r//' {} 2>/dev/null ';'
|
|
|
2aeaebb |
|
|
|
2aeaebb |
## remove she-bang lines in .py files to keep rpmlint happy
|
|
|
2aeaebb |
find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' {} 2>/dev/null ';'
|
|
|
2aeaebb |
|
|
|
2aeaebb |
## restore she-bang line for bibusStart.py
|
|
|
2aeaebb |
sed -i '1i #!/usr/bin/env python' bibusStart.py
|
|
|
2aeaebb |
|
|
|
2aeaebb |
## remove non-standard zh_cn locale directory
|
|
|
2aeaebb |
rm -r locale/zh_cn
|
|
|
2aeaebb |
|
|
|
2aeaebb |
%build
|
|
|
2aeaebb |
|
|
|
2aeaebb |
%install
|
|
|
2aeaebb |
rm -rf $RPM_BUILD_ROOT
|
|
|
0f638ba |
make DESTDIR=$RPM_BUILD_ROOT/%{_prefix} sysconfdir=$RPM_BUILD_ROOT/etc \
|
|
|
0f638ba |
oopath=%{_libdir}/openoffice.org3/program/ ooure=%{_libdir}/openoffice.org/basis3.0/ure-link/lib \
|
|
|
0f638ba |
oobasis=%{_libdir}/openoffice.org/basis3.0/program install
|
|
|
2aeaebb |
|
|
|
2aeaebb |
## fix symlink
|
|
|
2aeaebb |
rm $RPM_BUILD_ROOT%{_bindir}/bibus
|
|
|
2aeaebb |
ln -s %{_datadir}/%{name}/bibusStart.py $RPM_BUILD_ROOT%{_bindir}/bibus
|
|
|
2aeaebb |
|
|
|
2aeaebb |
## fix location of doc directory to include version
|
|
|
2aeaebb |
mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name} $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
|
|
2aeaebb |
|
|
|
6de5d05 |
## also install ScreenShots subdirectory, missed by Makefile
|
|
|
6de5d05 |
install -d $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/html/ScreenShots/
|
|
|
6de5d05 |
install -m644 Docs/html/ScreenShots/*.png $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/html/ScreenShots/
|
|
|
6de5d05 |
|
|
|
2aeaebb |
## fix bibus.cfg to remove $RPM_BUILD_ROOT
|
|
|
2aeaebb |
sed -i "s:$RPM_BUILD_ROOT::" $RPM_BUILD_ROOT%{_datadir}/%{name}/bibus.cfg
|
|
|
2aeaebb |
|
|
|
2aeaebb |
## fix bibus.cfg to fix documentation location
|
|
|
2aeaebb |
sed -i "s:doc/bibus:doc/bibus-%{version}:" $RPM_BUILD_ROOT%{_datadir}/%{name}/bibus.cfg
|
|
|
2aeaebb |
|
|
|
2aeaebb |
## remove uninstall program, not necessary for RPM package
|
|
|
2aeaebb |
rm $RPM_BUILD_ROOT%{_datadir}/%{name}/Setup/uninstall.sh
|
|
|
2aeaebb |
|
|
|
2aeaebb |
desktop-file-install --vendor="fedora" \
|
|
|
2aeaebb |
--delete-original \
|
|
|
2aeaebb |
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
|
|
|
2aeaebb |
--remove-category="Application" \
|
|
|
2aeaebb |
${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
|
|
|
2aeaebb |
|
|
|
2aeaebb |
%{find_lang} %{name}
|
|
|
2aeaebb |
|
|
|
2aeaebb |
%clean
|
|
|
2aeaebb |
rm -rf $RPM_BUILD_ROOT
|
|
|
2aeaebb |
|
|
|
2aeaebb |
%files -f %{name}.lang
|
|
|
2aeaebb |
%defattr(-,root,root,-)
|
|
|
2aeaebb |
%doc %{_datadir}/doc/%{name}-%{version}
|
|
|
2aeaebb |
%{_bindir}/bibus
|
|
|
2aeaebb |
%{_datadir}/%{name}
|
|
|
2aeaebb |
%{_datadir}/applications/*
|
|
|
2aeaebb |
%{_datadir}/icons/hicolor/48x48/apps/*
|
|
|
2aeaebb |
%{_mandir}/man1/*
|
|
|
2aeaebb |
%config(noreplace) %{_sysconfdir}/*
|
|
|
2aeaebb |
|
|
|
2aeaebb |
|
|
|
2aeaebb |
%changelog
|
|
|
3d9b592 |
* Mon Mar 8 2010 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.5.1-2
|
|
|
3d9b592 |
- Disable debuginfo package (#547493)
|
|
|
3d9b592 |
|
|
|
eac1eda |
* Wed Dec 9 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.5.1-1
|
|
|
eac1eda |
- Update to latest upstream (1.5.1)
|
|
|
eac1eda |
- Should fix connection problem with newer OpenOffice.org (#545809)
|
|
|
eac1eda |
|
|
|
eac1eda |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3.1-4
|
|
|
eac1eda |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
eac1eda |
|
|
|
e6e5b56 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3.1-3
|
|
|
e6e5b56 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
e6e5b56 |
|
|
|
0f638ba |
* Mon Jan 12 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.4.3.1-2
|
|
|
0f638ba |
- Fix paths to openoffice (#479099)
|
|
|
0f638ba |
|
|
|
e08f2cc |
* Mon Dec 1 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.4.3.1-1
|
|
|
e08f2cc |
- Updating to new upstream (1.4.3.1)
|
|
|
e08f2cc |
- Adds support for OpenOffice 3.x
|
|
|
e08f2cc |
- Add patch to fix broken Makefile and desktop file
|
|
|
e08f2cc |
- Cleanup .spec
|
|
|
e08f2cc |
|
|
|
3e86d10 |
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.4.3-2
|
|
|
3e86d10 |
- Rebuild for Python 2.6
|
|
|
3e86d10 |
|
|
|
6de5d05 |
* Tue Jun 10 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.4.3-1
|
|
|
6de5d05 |
- Update to latest upstream (1.4.3)
|
|
|
6de5d05 |
- Make package arch-specific to allow package to find appropriate location
|
|
|
6de5d05 |
for x86_64 (#438527)
|
|
|
6de5d05 |
- Fix PNG corruption introduced by fixing line-feeds, patch thanks to
|
|
|
6de5d05 |
Nicolas Thierry-Mieg (#448483)
|
|
|
6de5d05 |
- Add missing images to doc
|
|
|
6de5d05 |
|
|
|
2aeaebb |
* Thu Mar 13 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.4.1-4
|
|
|
2aeaebb |
- Require python-sqlite2, not sqlite
|
|
|
2aeaebb |
|
|
|
2aeaebb |
* Thu Mar 13 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.4.1-3
|
|
|
2aeaebb |
- Fix desktop-file-install as per review (#436619)
|
|
|
2aeaebb |
|
|
|
2aeaebb |
* Wed Mar 11 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.4.1-2
|
|
|
2aeaebb |
- Require sqlite for sqlite backend
|
|
|
2aeaebb |
|
|
|
2aeaebb |
* Sat Mar 8 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.4.1-1
|
|
|
2aeaebb |
- Initial Fedora package
|
|
|
2aeaebb |
|