Logoj0ke.net Open Build Service > Projects > devel > docutils > Changes
Sign Up | Log In

Changes of Revision 6

[-] Added docutils-RHEL_6.spec
x
 
1
@@ -0,0 +1,170 @@
2
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3
+
4
+%define srcname docutils
5
+
6
+Name:           python-%{srcname}
7
+Version:        0.6
8
+Release:        1%{?dist}
9
+Summary:        A system for processing plaintext documentation
10
+
11
+Group:          Development/Languages
12
+# See COPYING.txt for information
13
+License:        Public Domain and MIT and Python and GPLv2
14
+URL:            http://docutils.sourceforge.net
15
+Source0:        http://downloads.sourceforge.net/docutils/%{srcname}-%{version}.tar.bz2
16
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
+BuildArch:       noarch
18
+
19
+BuildRequires:  python-devel
20
+BuildRequires: python-setuptools-devel
21
+
22
+Requires: python-imaging
23
+Provides: docutils = %{version}-%{release}
24
+Obsoletes: docutils < %{version}-%{release}
25
+
26
+%description
27
+The Docutils project specifies a plaintext markup language, reStructuredText,
28
+which is easy to read and quick to write.  The project includes a python
29
+library to parse rST files and transform them into other useful formats such
30
+as HTML, XML, and TeX as well as commandline tools that give the enduser
31
+access to this functionality.
32
+
33
+Currently, the library supports parsing rST that is in standalone files and
34
+PEPs (Python Enhancement Proposals).  Work is underway to parse rST from
35
+Python inline documentation modules and packages.
36
+
37
+%prep
38
+%setup -q -n %{srcname}-%{version}
39
+
40
+# Remove a shebang from one of the library files
41
+sed -i -e '/#! *\/usr\/bin\/.*python.*/{1D}' docutils/readers/python/pynodes.py
42
+
43
+%build
44
+CFLAGS="$RPM_OPT_FLAGS" %{__python} -c 'import setuptools; execfile("setup.py")' build
45
+
46
+
47
+%install
48
+rm -rf %{buildroot}
49
+
50
+%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}
51
+
52
+for file in %{buildroot}/%{_bindir}/*.py; do
53
+    mv $file `dirname $file`/`basename $file .py`
54
+done
55
+
56
+# We want the licenses but don't need this build file
57
+rm -f licenses/docutils.conf
58
+
59
+# docutils only installs this if its not already on the system.  Due to the
60
+# possibility that a previous version of docutils may be installed, we install
61
+# it manually here.
62
+file=roman.py
63
+extradest=%{python_sitelib}
64
+fullextradest=%{buildroot}/$extradest
65
+install -D -m 0644 extras/$file $fullextradest/$file
66
+
67
+%clean
68
+rm -rf %{buildroot}
69
+
70
+%files
71
+%defattr(-,root,root,-)
72
+%doc BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt 
73
+%doc THANKS.txt licenses docs tools/editors
74
+%{_bindir}/*
75
+%{python_sitelib}/docutils/
76
+%{python_sitelib}/roman.*
77
+%{python_sitelib}/*egg-info/
78
+
79
+%changelog
80
+* Mon Oct 25 2010 Carsten Schoene <cs@linux-administrator.com> - 0.6-1
81
+- update to verson 0.6
82
+
83
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-3
84
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
85
+
86
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5-2
87
+- Rebuild for Python 2.6
88
+
89
+* Wed Aug 6 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.5-1
90
+- New upstream version.
91
+
92
+* Mon Mar 3 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4-8
93
+- Use regular Requires syntax for python-imaging as missingok is just wrong.
94
+
95
+* Thu Sep 27 2007 Toshio Kuratomi <a.badger@gmail.com> 0.4-7
96
+- Build egg info.
97
+
98
+* Mon Aug 13 2007 Toshio Kuratomi <a.badger@gmail.com> 0.4-6
99
+- Last version had both the old and new rst.el.  Try again with only
100
+  the new one.
101
+
102
+* Sun Aug 12 2007 Toshio Kuratomi <a.badger@gmail.com> 0.4-5
103
+- Make License tag conform to the new Licensing Policy.
104
+- Fix the rst emacs mode (RH BZ 250100)
105
+
106
+* Sat Dec 09 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-4
107
+- Bump and rebuild for python 2.5 in devel.
108
+
109
+* Tue Aug 29 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-3
110
+- Bump for FC6 rebuild.
111
+- Remove python byte compilation as this is handled automatically in FC4+.
112
+- No longer %%ghost .pyo files.
113
+  
114
+* Thu Feb 16 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-2
115
+- Bump and rebuild for FC5.
116
+  
117
+* Sun Jan 15 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-1
118
+- Update to 0.4.
119
+- Scripted the listing of files in the python module.
120
+- Add a missingok requirement on python-imaging as docutils can make use of
121
+  it when converting to formats that have images.
122
+  
123
+* Tue Jun 7 2005 Toshio Kuratomi <toshio-tiki-lounge.com> 0.3.9-1
124
+- Update to version 0.3.9.
125
+- Use a dist tag as there aren't any differences between supported fc
126
+  releases (FC3, FC4, devel.)
127
+
128
+* Thu May 12 2005 Toshio Kuratomi <toshio-tiki-lounge.com> 0.3.7-7
129
+- Bump version and rebuild to sync across architectures.
130
+
131
+* Sun Mar 20 2005 Toshio Kuratomi <toshio-tiki-lounge.com> 0.3.7-6
132
+- Rebuild for FC4t1
133
+
134
+* Sat Mar 12 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0.3.7-5
135
+- Add GPL as a license (mschwendt)
136
+- Use versioned Obsoletes and Provides (mschwendt)
137
+
138
+* Fri Mar 04 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.7-4
139
+- Rename to python-docutils per the new packaging guidelines.
140
+
141
+* Wed Jan 12 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.7-0.fdr.3
142
+- Really install roman.py and build roman.py[co].  Needed to make sure I have
143
+  docutils installed to test that it builds roman.py fine in that case.
144
+
145
+* Tue Jan 11 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.7-0.fdr.2
146
+- Special case roman.py to always install.  This is the behaviour we want
147
+  unless something else provides it.  Will need to watch out for this in
148
+  future Core and Extras packages, but the auto detection code makes it
149
+  possible that builds will not be reproducible if roman.py were installed
150
+  from another package.... Lesser of two evils here.
151
+- Provide python-docutils in case that package were preinstalled from
152
+  another repository.
153
+  
154
+* Fri Dec 31 2004 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.7-0.fdr.1
155
+- Update to 0.3.7
156
+- Rename from python-docutils to docutils.
157
+- Make roman.py optionally a part of the files list.  In FC2, this will be
158
+  included.  In FC3, this won't.
159
+- BuildConflict with self since the docutils build detects the presence
160
+  of roman.py and doesn't reinstall itself.
161
+  
162
+* Mon Aug 9 2004 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.5-0.fdr.1
163
+- Update to 0.3.5.
164
+- Update spec style to latest fedora-rpmdevtools.
165
+- Merge everything into a single package.  There isn't very much space
166
+  advantage to having separate packages in a package this small and in
167
+  this case, the documentation on using docutils as a library is also a
168
+  good example of how to write in ReSructuredText.
169
+
170
+* Sat Jan 10 2004 Michel Alexandre Salim <salimma[AT]users.sf.net> 0:0.3-0.fdr.1
171
+- Initial RPM release.
172