/[smecontribs]/rpms/pootle/contribs8/pootle.spec
ViewVC logotype

Contents of /rpms/pootle/contribs8/pootle.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Feb 24 16:14:29 2010 UTC (14 years, 3 months ago) by slords
Branch: MAIN
CVS Tags: pootle-2_0_1-5_el5_sme
Initial import

1 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2
3 %global fullname Pootle
4
5 Name: pootle
6 Version: 2.0.1
7 Release: 5%{?dist}
8 Summary: Localization and translation management web application
9
10 Group: Development/Tools
11 License: GPLv2+
12 URL: http://translate.sourceforge.net/wiki/pootle/index
13 Source: http://downloads.sourceforge.net/project/translate/%{fullname}/%{version}/%{fullname}-%{version}.tar.bz2
14 Source1: pootle.conf
15 Source2: README.fedora
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
18 Patch0: pootle-2.0.0-rc2-fedora-settings.patch
19
20 BuildArch: noarch
21 BuildRequires: python-devel
22 BuildRequires: translate-toolkit >= 1.4.1
23 Requires: Django >= 1.0
24 # iso-codes is not packaged for EL-5
25 #Requires: iso-codes
26 Requires: memcached
27 Requires: mod_wsgi
28 Requires: python-lxml
29 Requires: python-memcached
30 Requires: python-Levenshtein
31 # EL-5 uses Python 2.4 and thus needs sqlite2
32 Requires: python-sqlite2
33 Requires: translate-toolkit >= 1.5.1
34 # Xapian is not packaged for EL-5
35 #Requires: xapian-bindings-python >= 1.0.13
36 #Requires: xapian-core
37 Requires: zip
38 # This is for /sbin/service
39 Requires(post): initscripts
40 Requires(postun): initscripts
41
42
43
44 %description
45 Pootle is web application for managing distributed or crowdsourced
46 translation.
47
48 It's features include::
49 * Translation of Gettext PO and XLIFF files.
50 * Submitting to remote version control systems (VCS).
51 * Managing groups of translators
52 * Online webbased or offline translation
53 * Quality checks
54
55
56 %prep
57 %setup -q -n %{fullname}-%{version}
58 %patch0 -p1 -b .fedora-settings
59
60
61 %build
62 %{__python} setup.py build
63
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
68
69 # Create the manpages
70 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
71 for program in $RPM_BUILD_ROOT/%{_bindir}/*;
72 do
73 case $(basename $program) in
74 PootleServer|import_pootle_prefs)
75 ;;
76 *)
77 LC_ALL=C PYTHONPATH=. $program --manpage \
78 > $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 \
79 || rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1
80 ;;
81 esac
82 done
83
84 install -d $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_datadir}/pootle/ $RPM_BUILD_ROOT%{_sharedstatedir}/pootle $RPM_BUILD_ROOT%{_sysconfdir}/pootle
85 install $RPM_BUILD_ROOT%{_bindir}/PootleServer $RPM_BUILD_ROOT%{_sbindir}
86 rm $RPM_BUILD_ROOT%{_bindir}/PootleServer
87 install -p --mode=644 %{SOURCE1} -D $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/pootle.conf
88 install wsgi.py $RPM_BUILD_ROOT%{_datadir}/pootle/
89 cp -p %{SOURCE2} .
90
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95
96 %post
97 /sbin/service httpd restart >/dev/null 2>&1 || :
98 /sbin/service memcached restart >/dev/null 2>&1 || :
99
100
101 %postun
102 if [ "$1" -ge "1" ] ; then
103 /sbin/service httpd condrestart >/dev/null 2>&1 || :
104 /sbin/service memcached condrestart >/dev/null 2>&1 || :
105 fi
106
107
108 %files
109 %defattr(-,root,root,-)
110 %doc COPYING ChangeLog README README.fedora
111 %{_bindir}/*
112 %{_sbindir}/*
113 %{_mandir}/man1/*
114 %config(noreplace) %{_sysconfdir}/pootle
115 %config(noreplace) %{_sysconfdir}/httpd/conf.d/pootle.conf
116 %{python_sitelib}/*
117 %{_datadir}/pootle
118 # %{_sharedstatedir} doesn't work on EL-5
119 #%attr(-,apache,apache) %{_sharedstatedir}/pootle
120 %attr(-,apache,apache) /var/lib/pootle
121 # We exclude docs as the Pootle installer doesn't do ${name}-${version} as expected in Fedora
122 %exclude %{_datadir}/doc/pootle
123
124
125 %changelog
126 * Mon Jan 18 2010 Dwayne Bailey <dwayne@translate.org.za> - 2.0.1-5
127 - Require python-sqlite2 as its not included in Python 2.4
128
129 * Mon Jan 18 2010 Dwayne Bailey <dwayne@translate.org.za> - 2.0.1-4
130 - Drop Xapian and ISO code support as they're not packaged for EL-5
131
132 * Sun Jan 17 2010 Dwayne Bailey <dwayne@translate.org.za> - 2.0.1-3
133 - Can't use %%{_sharedstatedir}
134
135 * Thu Jan 14 2010 Dwayne Bailey <dwayne@translate.org.za> - 2.0.1-2
136 - Fixes from spec review
137
138 * Thu Jan 14 2010 Dwayne Bailey <dwayne@translate.org.za> - 2.0.1-1
139 - Update to 2.0.1
140
141 * Mon Dec 7 2009 Dwayne Bailey <dwayne@translate.org.za> - 2.0.0-1
142 - Update to 2.0.0 final
143 - Prefer running under Apache and drop standalone supporting infrastructure
144
145 * Fri Nov 27 2009 Dwayne Bailey <dwayne@translate.org.za> - 2.0.0-0.1.rc2
146 - Update to 2.0.0 rc2
147
148 * Thu Nov 5 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-0.3
149 - Depend on mod_wsgi
150
151 * Mon Nov 2 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-0.2
152 - Update to 1.3.0 beta4
153 - Enable mod_wsgi operation: require httpd, default pootle.conf
154 - Backport DB initialisation
155 - Add dependencies for performance: memcached, Levenshtein, xapian
156 - Fedora README
157
158 * Thu Jan 8 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-0.1
159 - Django based Pootle
160
161 * Mon Oct 6 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-1
162 - Update to final 1.2.0 release
163
164 * Tue Sep 30 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-0.5.rc1
165 - Update to RC1
166
167 * Tue Sep 2 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-0.4.beta2
168 - Create run_pootle.sh wrapper for server
169
170 * Wed Aug 27 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-0.3.beta2
171 - Create man pages
172 - Rebuild with a refreshed tarball that contains jquery
173
174 * Wed Aug 27 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-0.2.beta2
175 - Update to 1.2.0-beta2
176 - Fix initscript installation location
177
178 * Sun Aug 24 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-0.1.beta1
179 - Build for 1.2.0-beta1 release
180 - Create initscripts, sysconfig; create proper logging; configure stats database
181
182 * Thu Feb 14 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.0.2-1
183 - Rebuild for fc9
184
185 * Thu Feb 14 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.0.2-1
186 - Initial packaging

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed