1 |
slords |
1.2 |
# Redifine to remove /usr/lib/rpm/brp-python-bytecompile |
2 |
|
|
%define __os_install_post \ |
3 |
|
|
/usr/lib/rpm/redhat/brp-compress \ |
4 |
|
|
%{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip}} \ |
5 |
|
|
/usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \ |
6 |
|
|
/usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \ |
7 |
|
|
/usr/lib/rpm/redhat/brp-java-repack-jars \ |
8 |
|
|
%{nil} |
9 |
|
|
|
10 |
slords |
1.1 |
%define name translate-toolkit |
11 |
|
|
%define version 1.1.1 |
12 |
|
|
%define release 1 |
13 |
|
|
|
14 |
|
|
Summary: The Translate Toolkit is a Python package that assists in localization of software. |
15 |
|
|
Name: %{name} |
16 |
|
|
Version: %{version} |
17 |
|
|
Release: %{release}%{?dist} |
18 |
|
|
Source0: %{name}-%{version}.tar.gz |
19 |
|
|
License: GNU General Public License (GPL) |
20 |
|
|
Group: Development/Libraries |
21 |
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot |
22 |
|
|
Prefix: %{_prefix} |
23 |
|
|
BuildArchitectures: noarch |
24 |
|
|
Url: http://translate.sourceforge.net/ |
25 |
|
|
|
26 |
|
|
%description |
27 |
|
|
The Translate Toolkit is a Python package that assists in localization of software. |
28 |
|
|
|
29 |
|
|
See U{http://translate.sourceforge.net} or U{http://translate.org.za} for more information. |
30 |
|
|
|
31 |
|
|
@organization: Zuza Software Foundation |
32 |
|
|
@copyright: 2002-2008 Zuza Software Foundation |
33 |
|
|
@license: U{GPL <http://www.fsf.org/licensing/licenses/gpl.html>} |
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
%prep |
38 |
|
|
%setup |
39 |
|
|
|
40 |
|
|
%build |
41 |
|
|
python setup.py build |
42 |
|
|
|
43 |
|
|
%install |
44 |
|
|
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES |
45 |
|
|
|
46 |
|
|
%clean |
47 |
|
|
rm -rf $RPM_BUILD_ROOT |
48 |
|
|
|
49 |
|
|
%files -f INSTALLED_FILES |
50 |
|
|
%defattr(-,root,root) |