547931b
# Review: https://bugzilla.redhat.com/show_bug.cgi?id=448236
547931b
9a0be31
Name:           xfbib
9a4aee6
Version:        0.1.0
9a4aee6
Release:        1%{?dist}
9a0be31
Summary:        Lightweight BibTeX editor for the Xfce desktop environment
9a0be31
Summary(de):    Schlanker BibTeX Editor für die Xfce Desktop-Umgebung
9a0be31
9a0be31
Group:          Applications/Editors
9a0be31
License:        GPLv2+
9a0be31
URL:            http://goodies.xfce.org/projects/applications/%{name}
9a4aee6
Source0:        http://git.xfce.org/apps/xfbib/snapshot/%{name}-%{version}.tar.bz2
9a0be31
547931b
BuildRequires:  gtk2-devel >= 2.10
9a4aee6
BuildRequires:  libxfce4ui-devel >= 4.4.0
9a4aee6
BuildRequires:  libxfce4util-devel >= 4.4.0
547931b
BuildRequires:  gettext
547931b
BuildRequires:  desktop-file-utils
9a4aee6
# Need these until there's a real release
9a4aee6
BuildRequires:  xfce4-dev-tools libtool
9a0be31
9a0be31
%description
9a0be31
Xfbib is a lightweight BibTeX editor developed for the Xfce desktop 
9a0be31
environment. The intention of Xfbib is to provide an easy and efficient way 
9a0be31
of editing BibTeX files. 
9a0be31
7a8697c
%description -l de
6058da1
Xfbib ist ein schlanker BibTex Editor, der für die Xfce Desktop-Umgebung 
6058da1
entwickelt wird. Das Ziel von Xfbib ist es, einen einfachen und effizienten 
6058da1
Weg zum Bearbeiteiten von BibTeX Dateien zur Verfügung zu stellen.
9a0be31
547931b
9a0be31
%prep
9a0be31
%setup -q
9a0be31
9a0be31
%build
9a4aee6
xdt-autogen
9a0be31
%configure --disable-static
547931b
make %{?_smp_mflags} install='INSTALL -p'
9a0be31
9a0be31
9a0be31
%install
547931b
make install DESTDIR=%{buildroot} INSTALL="install -p"
9a0be31
%find_lang %{name}
9a0be31
547931b
desktop-file-install \
547931b
    %if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7)
547931b
    --vendor fedora \
547931b
    %else
547931b
    --vendor="" \
547931b
    %endif
547931b
    --add-category X-Xfce \
547931b
    --remove-category Application \
547931b
    --remove-key Encoding \
547931b
    --remove-key GenericName \
547931b
    --delete-original \
547931b
    --dir %{buildroot}%{_datadir}/applications \
547931b
    %{buildroot}%{_datadir}/applications/%{name}.desktop
9a0be31
9a0be31
547931b
%post
547931b
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
547931b
update-desktop-database &> /dev/null || :
9a0be31
9a0be31
%postun
547931b
if [ $1 -eq 0 ] ; then
547931b
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
547931b
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
547931b
fi
547931b
update-desktop-database &> /dev/null || :
547931b
547931b
%posttrans
547931b
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
9a0be31
9a0be31
9a0be31
%files -f %{name}.lang
9a0be31
%doc AUTHORS COPYING ChangeLog README
9a0be31
%{_bindir}/%{name}
547931b
%{_datadir}/icons/hicolor/*/*/*
547931b
%{_datadir}/applications/*%{name}.desktop
9a4aee6
%{_datadir}/pixmaps/xfbib
9a0be31
9a0be31
%changelog
9a4aee6
* Tue Mar 10 2015 Kevin Fenzi <kevin@scrye.com> 0.1.0-1
9a4aee6
- Update to 0.1.0
9a4aee6
a512cdf
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-13
a512cdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a512cdf
8681b70
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-12
8681b70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8681b70
64d8468
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-11
64d8468
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
64d8468
9a4aee6
* Fri May 10 2013 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.2-10
547931b
- Make desktop vendor conditional
547931b
- Add aarch64 support (#926768)
547931b
- Spec file clean-up
547931b
- Update scriptlets
547931b
Parag Nemade 4fedfd4
* Sun Feb 10 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 0.0.2-9
Parag Nemade 4fedfd4
- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077
Parag Nemade 4fedfd4
- Cleanup spec as per recently changed packaging guidelines
Parag Nemade 4fedfd4
36fe6a1
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-8
36fe6a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
36fe6a1
98c1ff2
* Thu Apr 05 2012 Kevin Fenzi <kevin@scrye.com> - 0.0.2-7
98c1ff2
- Rebuild for Xfce 4.10
98c1ff2
169c8f4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-6
169c8f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
169c8f4
15e1b09
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.0.2-5
15e1b09
- Rebuild for new libpng
15e1b09
f3cc4bc
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-4
f3cc4bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f3cc4bc
1315850
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-3
1315850
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1315850
25c28bf
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-2
25c28bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
25c28bf
9a0be31
* Sat May 24 2008 Christoph Wickert <fedora christoph-wickert de> - 0.0.2-1
fa6ab1c
- Initial Fedora package