Name: JabRef Version: 2.3.1 Release: 1%{?dist} Summary: JabRef project is a java application for bibtex databases Group: Applications/Databases License: GPL URL: http://linux.softpedia.com/get/Text-Editing-Processing/Markup/JabRef-4854.shtml Source0: http://downloads.sourceforge.net/jabref/%{name}-%{version}.jar Source1: %{name}.desktop Source2: %{name}-app.png BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: java-devel Requires: java %description JabRef project is a graphical Java application for editing bibtex (.bib) databases. JabRef lets you organize your entries into overlapping logical groups, and with a single click limit your view to a single group or an intersection or union of several groups. %prep %build %install rm -rf $RPM_BUILD_ROOT install -Dm 0755 -p %{SOURCE0} $RPM_BUILD_ROOT%{_datadir}/%{name} install -Dm 0755 -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/%{name}-app.png install -d $RPM_BUILD_ROOT%{_bindir} echo "#!/bin/bash java -jar %{_datadir}/"%{name} " & " > $RPM_BUILD_ROOT%{_bindir}/JabRef chmod 755 $RPM_BUILD_ROOT%{_bindir}/JabRef desktop-file-install --vendor="fedora" \ --dir=%{buildroot}%{_datadir}/applications/ \ --mode 0644 \ %{SOURCE1} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/fedora-%{name}.desktop %{_datadir}/icons/%{name}-app.png %changelog * Thu Jan 03 2008 Pingou 2.3.1-1 - Update to version 2.3.1 * Mon Jul 30 2007 Pingou 2.3b-1 - Beta release of the 2.3 version * Mon Jul 30 2007 Pingou 2.2-5 -Add the icone in the desktop file * Thu Jun 14 2007 Pingou 2.2-4 -Changes of the Requires to java-devel * Thu Jun 14 2007 Pingou 2.2-3 -Correction on the desktop-file-install (add of the * Wed Jun 13 2007 Pingou 2.2-2 -Correction on the echo script -Correction on the Requires s/Jdk/jdk * Thu Jun 12 2007 Pingou 2.2-1 - initial package for Fedora