summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexlan <alexlan@fedoraproject.org>2008-03-14 06:25:50 (GMT)
committeralexlan <alexlan@fedoraproject.org>2008-03-14 06:25:50 (GMT)
commit2aeaebb5291b42f54f6f9170ad160793885440e9 (patch)
tree99731d65656cbff95b0bb2fd366f446f4abacc29
parente6feb0f5403deb9c514fdac5408326c56e9f803a (diff)
downloadbibus-2aeaebb5291b42f54f6f9170ad160793885440e9.zip
bibus-2aeaebb5291b42f54f6f9170ad160793885440e9.tar.gz
bibus-2aeaebb5291b42f54f6f9170ad160793885440e9.tar.xz
Initial import of bibus.bibus-1_4_1-4_fc9F-9-startF-9-split
-rw-r--r--.cvsignore1
-rw-r--r--bibus.spec113
-rw-r--r--sources1
3 files changed, 115 insertions, 0 deletions
diff --git a/.cvsignore b/.cvsignore
index e69de29..b26beda 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+bibus_1.4.1-1.tar.gz
diff --git a/bibus.spec b/bibus.spec
new file mode 100644
index 0000000..0b1c040
--- /dev/null
+++ b/bibus.spec
@@ -0,0 +1,113 @@
+Name: bibus
+Version: 1.4.1
+Release: 4%{?dist}
+Summary: Bibliographic and reference management software
+
+Group: Applications/Publishing
+License: GPLv2+
+URL: http://bibus-biblio.sourceforge.net/
+Source0: http://downloads.sourceforge.net/bibus-biblio/%{name}_%{version}-1.tar.gz
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+BuildRequires: python-devel
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+Requires: wxPython > 2.6
+Requires: MySQL-python
+Requires: python-sqlite2
+Requires: openoffice.org-writer
+Requires: openoffice.org-pyuno
+
+
+%description
+Bibus is a bibliographic database. It uses a MySQL or SQLite database
+to store references. It can directly insert references in
+OpenOffice.org and MS Word and generate the bibliographic index.
+
+
+%prep
+%setup -q -n %{name}-%{version}
+
+## make files UTF-8
+for i in bibMSW.htm eTBlast\ Interface\ to\ Bibus.htm
+do
+ /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}"
+done
+
+## fix line endings
+find Docs -type f -exec sed -i 's/\r//' {} 2>/dev/null ';'
+
+## remove she-bang lines in .py files to keep rpmlint happy
+find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' {} 2>/dev/null ';'
+
+## restore she-bang line for bibusStart.py
+sed -i '1i #!/usr/bin/env python' bibusStart.py
+
+## remove non-standard zh_cn locale directory
+rm -r locale/zh_cn
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT/%{_prefix} sysconfdir=$RPM_BUILD_ROOT/etc oopath=%{_libdir}/openoffice.org/program/ install
+
+## fix symlink
+rm $RPM_BUILD_ROOT%{_bindir}/bibus
+ln -s %{_datadir}/%{name}/bibusStart.py $RPM_BUILD_ROOT%{_bindir}/bibus
+
+## fix location of doc directory to include version
+mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name} $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
+
+## fix bibus.cfg to remove $RPM_BUILD_ROOT
+sed -i "s:$RPM_BUILD_ROOT::" $RPM_BUILD_ROOT%{_datadir}/%{name}/bibus.cfg
+
+## fix bibus.cfg to fix documentation location
+sed -i "s:doc/bibus:doc/bibus-%{version}:" $RPM_BUILD_ROOT%{_datadir}/%{name}/bibus.cfg
+
+## remove uninstall program, not necessary for RPM package
+rm $RPM_BUILD_ROOT%{_datadir}/%{name}/Setup/uninstall.sh
+
+## fix bibus.desktop to fix binary and icon locations
+sed -i "s:$RPM_BUILD_ROOT::" $RPM_BUILD_ROOT%{_datadir}/applications/bibus.desktop
+
+## remove localization from generic name
+sed -i 's/GenericName\[fr_FR\]/GenericName/' $RPM_BUILD_ROOT%{_datadir}/applications/bibus.desktop
+
+desktop-file-install --vendor="fedora" \
+ --delete-original \
+ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
+ --remove-category="Application" \
+ ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
+
+%{find_lang} %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc %{_datadir}/doc/%{name}-%{version}
+%{_bindir}/bibus
+%{_datadir}/%{name}
+%{_datadir}/applications/*
+%{_datadir}/icons/hicolor/48x48/apps/*
+%{_mandir}/man1/*
+%config(noreplace) %{_sysconfdir}/*
+
+
+%changelog
+* Thu Mar 13 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.4.1-4
+- Require python-sqlite2, not sqlite
+
+* Thu Mar 13 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.4.1-3
+- Fix desktop-file-install as per review (#436619)
+
+* Wed Mar 11 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.4.1-2
+- Require sqlite for sqlite backend
+
+* Sat Mar 8 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.4.1-1
+- Initial Fedora package
+
diff --git a/sources b/sources
index e69de29..54edba5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+22b91fb9daf1e002e521e6315ade7b28 bibus_1.4.1-1.tar.gz