-
Notifications
You must be signed in to change notification settings - Fork 2
/
python-cssutils.spec
114 lines (82 loc) · 3.35 KB
/
python-cssutils.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
Summary: CSS Cascading Style Sheets library for Python
Name: python-cssutils
Version: 0.9.7
Release: 2%{?dist}
License: LGPLv3+
Group: Development/Libraries
URL: http://cthedot.de/cssutils/
Source: http://cssutils.googlecode.com/files/cssutils-0.9.7.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
# Required at runtime for the css* executables
Requires: python-setuptools
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: dos2unix
BuildArch: noarch
%description
A Python package to parse and build CSS Cascading Style Sheets. DOM only, not
any rendering facilities.
%package doc
Summary: Documentation for the CSS Cascading Style Sheets library for Python
Group: Documentation
%description doc
This is the documentation for python-cssutils, a Python package to parse and
build CSS Cascading Style Sheets.
%prep
%setup -q -n cssutils-0.9.7
# Convert all CRLF files, keeping original timestamps
find . -type f -exec dos2unix -k {} \;
%build
%{__python} setup.py build
%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install \
--single-version-externally-managed \
-O1 --skip-build --root %{buildroot}
%clean
%{__rm} -rf %{buildroot}
%files
# The sources have some 2755 mode directories (as of 0.9.5.1), fix here
#defattr(-,root,root,0755)
%defattr(-,root,root,-)
%doc CHANGELOG.txt COPYING* README.txt
%{_bindir}/csscapture
%{_bindir}/csscombine
%{_bindir}/cssparse
%{python_sitelib}/cssutils-*.egg-info/
%{python_sitelib}/cssutils/
%{python_sitelib}/encutils/
%files doc
%defattr(-,root,root,-)
%doc docs/* examples/
%changelog
* Tue Feb 08 2011 Fedora Release Engineering <[email protected]> - 0.9.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Jan 12 2011 Kevin Fenzi <[email protected]> - 0.9.7-1
- Update to final 0.9.7
* Sun Sep 12 2010 Kevin Fenzi <[email protected]> - 0.9.7-0.0.b3
- Update to 0.9.7 beta 3
* Thu Jul 22 2010 David Malcolm <[email protected]> - 0.9.6-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
* Thu Feb 25 2010 Matthias Saou <http://freshrpms.net/> 0.9.6-1
- Update to 0.9.6.
* Sun Jul 26 2009 Fedora Release Engineering <[email protected]> - 0.9.5.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <[email protected]> - 0.9.5.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <[email protected]> - 0.9.5.1-4
- Rebuild for Python 2.6
* Fri Oct 10 2008 Matthias Saou <http://freshrpms.net/> 0.9.5.1-3
- Add missing python-setuptools BR, split off doc sub-package (mschwendt).
* Thu Oct 9 2008 Matthias Saou <http://freshrpms.net/> 0.9.5.1-2
- Update license, group, add python-setuptools requirement (mschwendt).
* Tue Aug 19 2008 Matthias Saou <http://freshrpms.net/> 0.9.5.1-1
- Update to 0.9.5.1.
* Fri Aug 8 2008 Matthias Saou <http://freshrpms.net/> 0.9.5-1
- Update to 0.9.5 final.
* Tue Jul 15 2008 Matthias Saou <http://freshrpms.net/> 0.9.5b2-0.2.rc2
- Convert CRLF end of lines.
- Patch out #!/... magic from python files meant to be included and not run.
* Tue Jul 15 2008 Matthias Saou <http://freshrpms.net/> 0.9.5b2-0.1.rc2
- Initial RPM release.