blob: 124190af3cd19337282f34a8347cf182caf48670 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
Name: kuttans
Version: 0.1
Release: 1%{?dist}
Summary: Kuttans is a PyQt4 frontend to Payyans ASCII to Unicode converter
Group: Applications/Text
License: GPLv3+
URL: http://smc.org.in/Kuttans
Source0: http://download.savannah.nongnu.org/releases/smc/%{name}/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
BuildRequires: PyQt4-devel
#BuildRequires: gettext
BuildRequires: desktop-file-utils
Requires: PyQt4
Requires: payyans
%description
Kuttans is a PyQt4 frontend to Payyans ASCII to Unicode converter
The name is a pun of Qt+Payyans
%prep
%setup -q
%build
pyuic4 ui/kuttans.ui > src/kuttans_ui.py
pyrcc4 qrc/kuttans.qrc > src/kuttans_rc.py
#for lc in po/%{name}-*.po; do
# msgfmt -o po/`basename ${lc} .po`.mo ${lc}
#done
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}
install -m 755 src/kuttans ${RPM_BUILD_ROOT}%{_bindir}/%{name}
install -m 644 src/*.py{,c} ${RPM_BUILD_ROOT}%{_datadir}/%{name}/
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications/ %{name}.desktop
#Install the translation files
#for lc in po/*.mo; do
# _lang=`echo ${lc} | cut -d - -f2 | cut -d . -f1`
# mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/locale/${_lang}/LC_MESSAGES/
# install -m 0644 ${lc} ${RPM_BUILD_ROOT}%{_datadir}/locale/${_lang}/LC_MESSAGES/%{name}.mo
#done
#%find_lang %{name}
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/*.py
%{_datadir}/%{name}/*.pyc
%doc README LICENSE
%changelog
* Mon Apr 13 2009 Rajeesh K Nambiar <rajeeshknambiar@gmail.com> - 0.1-1
- Initial build for Fedora.
|