-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpywurfl.spec
93 lines (67 loc) · 2.5 KB
/
pywurfl.spec
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# TemplateVer: 0.4
%{?!python:%define python python}
%{?!pybasever:%{expand:%%define pybasever %(%{__python} -c "import sys ; print sys.version[:3]")}}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define origname pywurfl
Name: %{origname}
Version: 7.1.0
Release: 1
Summary: wurfl processing and query utilities
Group: Development/Libraries
License: LGPL
URL: http://celljam.net/
Source0: %{origname}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: %{python}-devel
Requires: python-abi = %{pybasever}
# processing tools
Requires: python-elementtree
Requires: python-levenshtein
# ql
Requires: pyparsing
%description
python tools for processing and querying wurfl.xml
%prep
%setup -n %{origname}-%{version} -q
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --record=INSTALLED_FILES.tmp
# Ghost optimized
sed 's/\(.*\.pyo\)/%ghost \1/' < INSTALLED_FILES.tmp > INSTALLED_FILES
find $RPM_BUILD_ROOT%{python_sitelib} -type d \
| sed "s|^$RPM_BUILD_ROOT|%dir |" >> INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root,-)
%doc doc/* LICENSE
%{_bindir}/*pyc
%{_bindir}/*pyo
%changelog
* Mon Mar 27 2006 Pau Aliagas <[email protected]> 5.0.0a-1
- first rpm version
* Wed Apr 27 2006 Armand Lynch <[email protected]>
- changed license to LGPL
* Sun Jun 4 2006 Armand Lynch <[email protected]>
- updated version
* Sun Aug 3 2006 Armand Lynch <[email protected]>
- updated version
- changed name to pywurfl
* Tue Sep 26 2006 Armand Lynch <[email protected]>
- updated version
* Sat Feb 10 2007 Armand Lynch <[email protected]>
- updated version
* Tue Jul 31 2007 Armand Lynch <[email protected]>
- updated version
* Sun Apr 13 2008 Armand Lynch <[email protected]>
- updated version
* Thu Apr 9 2009 Armand Lynch <[email protected]> 6.4.1-1
- updated version
* Sat Mar 6 2010 Armand Lynch <[email protected]> 7.0.0
- updated version
* Thu May 6 2010 Armand Lynch <[email protected]> 7.1.0
- updated version