rpms/translation-filter/EL-5 translation-filter.spec, NONE, 1.1 sources, 1.1, 1.2

Kushal Das kushal at fedoraproject.org
Thu Aug 13 07:39:46 UTC 2009


Author: kushal

Update of /cvs/extras/rpms/translation-filter/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29654

Modified Files:
	sources 
Added Files:
	translation-filter.spec 
Log Message:
Initial import in EL5



--- NEW FILE translation-filter.spec ---
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           translation-filter
Version:        1.0
Release:        1%{?dist}
Summary:        A l10n file filter

Group:          Development/Languages
License:        GPLv2
URL:            http://fedorahosted.org/translation-filter
Source0:        http://fedorahosted.org/releases/t/r/translation-filter/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel, python-setuptools, desktop-file-utils
Requires:       translate-toolkit, pygtk2-libglade, pygtk2

%if 0%{?fedora}
BuildRequires:  PyQt4-devel
%endif

%description
A l10n file filter to check translations
%if 0%{?fedora}
%package        kde
Summary:        translation-filter KDE based UI
Group:          Development/Languages
Requires:       %{name} = %{version}-%{release}
Requires:       PyQt4

%description    kde
KDE UI for translation-filter
%endif


%prep
%setup -q


%build
%{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
desktop-file-install --vendor="fedora"                    \
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications           \
%{buildroot}/%{_datadir}/applications/translation-filter.desktop
rm -rf %{buildroot}/%{_datadir}/applications/translation-filter.desktop

desktop-file-install --vendor="fedora"                    \
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications           \
%{buildroot}/%{_datadir}/applications/translation-filter-kde.desktop

rm %{buildroot}/%{_datadir}/applications/translation-filter-kde.desktop
rm %{buildroot}/%{_datadir}/applications/translation-filter.desktop

%clean
rm -rf $RPM_BUILD_ROOT

%if 0%{?rhel}
%exclude
%{python_sitelib}/Translationfilter/TranslationApp.py*
%{_bindir}/translation-filter-gui
%{_datadir}/translationfilter/ui/*
%{_datadir}/applications/translation-filter-kde-fedora.desktop
%{_datadir}/applications/*-kde.desktop
%endif


%if 0%{?fedora}
%files kde
%defattr(-,root,root,-)
%{python_sitelib}/Translationfilter/TranslationApp.py*
%{_bindir}/translation-filter-gui
%{_datadir}/translationfilter/ui/*
%{_datadir}/applications/fedora-translation-filter-kde.desktop
%endif

%files
%defattr(-,root,root,-)
%doc docs/README docs/ChangeLog docs/COPYING
# For noarch packages: sitelib
%{python_sitelib}/Translationfilter/BasicTranslation.py*
%{python_sitelib}/Translationfilter/poparser.py*
%{python_sitelib}/Translationfilter/__init__.py*
%{python_sitelib}/*.egg-info
%{_bindir}/translation-filter
%{_bindir}/translation-filter-gnome
%{_datadir}/translationfilter/data/*
%{_datadir}/translationfilter/tf-gnome/*
%{_datadir}/pixmaps/translation-filter.png
%{_datadir}/applications/fedora-translation-filter.desktop

%changelog
* Wed Jul 29 2009 Kushal Das <kushal at fedoraproject.org> 1.0-1
- The 1.0 release

* Wed Jul 29 2009 Kushal Das <kushal at fedoraproject.org> 0.1-2
- Fixing file issues

* Wed Jul 29 2009 Kushal Das <kushal at fedoraproject.org> 0.1-1
- New release of version 0.1

* Wed Jun 10 2009 Kushal Das <kushal at fedoraproject.org> 0.0.4-1
- New release of version 0.0.4

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

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.0.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 0.0.2-3
- Rebuild for Python 2.6

* Mon Aug 11 2008 Kushal Das <kushal at fedoraproject.org> 0.0.2-2
- Fixed BR and LICENSE issue

* Wed Aug 06 2008 Kushal Das <kushal at fedoraproject.org> 0.0.2-1
- New version 

* Mon Aug 04 2008 Kushal Das <kushal at fedoraproject.org> 0.0.1-1
- Initial release



Index: sources
===================================================================
RCS file: /cvs/extras/rpms/translation-filter/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	11 Aug 2008 17:23:12 -0000	1.1
+++ sources	13 Aug 2009 07:39:46 -0000	1.2
@@ -0,0 +1 @@
+ca6b4bf23f0745e6717905b3d62b32b0  translation-filter-0.0.2.tar.gz




More information about the scm-commits mailing list