Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > f268f63ceaea863c34e93983b656b08e > files > 2

pypar2-1.4-6.fc14.src.rpm

Name:		pypar2
Version:	1.4
Release:	6%{?dist}
Summary:	PyPar2 is a graphical frontend for the Linux par2 command line

Group:		Applications/File
License:	GPLv2+
URL:		http://pypar2.silent-blade.org
Source0:	http://pypar2.silent-blade.org/uploads/Main/%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:	noarch
BuildRequires:	python-devel
BuildRequires:	desktop-file-utils
BuildRequires:	symlinks
BuildRequires:	gettext
Requires:	par2cmdline
Requires:	vte
Requires:	pygtk2-libglade
Requires:	PyXML


%description
PyPar2 is a graphical frontend for the Linux par2 command line, written in
Python and GTK.
It's able to restore files using PAR2 files, and also create PAR2 files.

%prep
%setup -q -n PyPar2-%{version}

%build
# Nothing to do

%install
rm -rf %{buildroot}

make install DESTDIR=%{buildroot} prefix=%{_prefix} INSTALL="install -p -D"

%find_lang %{name}

#link needs to be rebuilt
rm %{buildroot}%{_bindir}/%{name}
ln -s %{buildroot}%{_datadir}/%{name}/src/main.py %{buildroot}%{_bindir}/%{name}
symlinks -cs %{buildroot}%{_bindir}

desktop-file-install --vendor="" \
	--add-category Utility \
	--dir=%{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop


%post
%{_bindir}/update-desktop-database %{_datadir}/applications || :


%postun
%{_bindir}/update-desktop-database %{_datadir}/applications || :


%clean
rm -rf %{buildroot}


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc doc/whatsnew.txt doc/gpl.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1.gz
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}


%changelog
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 1.4-6
- recompiling .py files against Python 2.7 (rhbz#623351)

* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.4-3
- Rebuild for Python 2.6

* Fri Aug 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.4-2
- fix license tag

* Tue Apr 24 2007 Maxime Carron <maxime.carron@fedoraproject.org> - 1.4-1
- approve Chitlesh's proposal

* Tue Apr 24 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.4-0.1
- new upstream release
- desktop-file-install fixes
- minor spec layout fixes
- added %%post and %%postun for mimetypes

* Thu Mar 29 2007 Maxime Carron <maxime.carron@fedoraproject.org> - 1.3-3
- remove install.txt and pypar2.1 from the doc section
- fix desktop-file-install options => patch no more needed

* Sat Mar  3 2007 Maxime Carron <maxime.carron@fedoraproject.org> - 1.3-2
- add some Requires

* Sat Mar  3 2007 Maxime Carron <maxime.carron@fedoraproject.org> - 1.3-1
- update to version 1.3
- Source1 is no more needed (GPL text is now included in the archive)
- add gettext in BR (according to abompard's fedora-qa script)

* Thu Mar  1 2007 Maxime Carron <maxime.carron@fedoraproject.org> - 1.2-2
- Symbolic link is now relative (line 44-45) (rpmlint is now quiet)
- add symlinks in BR

* Wed Feb 21 2007 Maxime Carron <maxime.carron@fedoraproject.org> - 1.2-1
- Initial RPM release.