View | Details | Raw Unified | Return to bug 13444
Collapse All | Expand All

(-)file_not_specified_in_diff (-27 / +42 lines)
Line  Link Here
0
-- /dev/null
0
++ b/python-module-twisted-lore-0.3.0-alt-remove_nevow.patch
Line 0 Link Here
0
-- a/python-module-twisted-lore.spec
1
Removing depricated nevow suport
2
3
--- ./twisted/plugins/twisted_lore.py
4
+++ ./twisted/plugins/twisted_lore.py
5
@@ -32,7 +32,3 @@ ManProcessor = _LorePlugin(
6
     "twisted.lore.man2lore",
7
     "UNIX Man pages")
8
 
9
-NevowProcessor = _LorePlugin(
10
-    "nevow",
11
-    "twisted.lore.nevowlore",
12
-    "Nevow for Lore")
13
++ b/python-module-twisted-lore.spec
Lines 1-18 Link Here
1
%define version 0.3.0
1
%define version 0.3.0
2
%define release alt1
2
%define release alt1.1
3
%define origname TwistedLore
3
%define origname TwistedLore
4
%setup_python_module twisted-lore
4
%setup_python_module twisted-lore
5
5
6
Name:           %{packagename}
6
Name:           %packagename
7
Version:        %{version}
7
Version:        %version
8
Release:        %{release}
8
Release:        %release
9
Summary:        Twisted documentation system
9
Summary:        Twisted documentation system
10
10
11
Group:          Development/Python
11
Group:          Development/Python
12
License:        MIT
12
License:        MIT
13
URL:            http://www.twistedmatrix.com
13
URL:            http://www.twistedmatrix.com
14
Packager:	Sergey Alembekov <rt@altlinux.ru>
14
Packager:	Sergey Alembekov <rt@altlinux.ru>
15
Source0:        http://tmrc.mit.edu/mirror/twisted/Lore/0.3/%{origname}-%{version}.tar.bz2
15
Source0:        http://tmrc.mit.edu/mirror/twisted/Lore/0.3/%origname-%version.tar.bz2
16
Patch0:		python-module-twisted-lore-0.3.0-alt-remove_nevow.patch
16
17
17
BuildRequires:  python-module-twisted-core >= 2.5.0
18
BuildRequires:  python-module-twisted-core >= 2.5.0
18
BuildRequires:  python-devel
19
BuildRequires:  python-devel
Lines 20-27 BuildRequires: python-devel Link Here
20
Requires:       python-module-twisted-core
21
Requires:       python-module-twisted-core
21
Requires:       python-module-twisted-web
22
Requires:       python-module-twisted-web
22
23
23
#%add_python_req_skip nevow
24
25
%description
24
%description
26
Twisted is an event-based framework for internet applications.
25
Twisted is an event-based framework for internet applications.
27
26
Lines 29-66 Lore is a complete documentation system based on XHTML and can generate Link Here
29
documentation into other formats such as PDF, HTML.
28
documentation into other formats such as PDF, HTML.
30
29
31
%prep
30
%prep
32
%setup -q -n %{origname}-%{version}
31
%setup -q -n %origname-%version
32
%patch0
33
33
34
%{__sed} -i 's/\r//' doc/howto/listings/lore/1st_example.html
34
subst 's/\r//g' doc/howto/listings/lore/1st_example.html \
35
%{__sed} -i 's/\r//' doc/howto/listings/lore/factory.py*
35
		doc/howto/listings/lore/factory.py* \
36
%{__sed} -i 's/\r//' doc/howto/listings/lore/spitters.py*
36
		doc/howto/listings/lore/spitters.py* \
37
%{__sed} -i 's/\r//' doc/howto/listings/lore/plugins.tml
37
		doc/howto/listings/lore/plugins.tml
38
38
39
%build
39
%build
40
%__python setup.py build
40
%__python setup.py build
41
41
42
%install
42
%install
43
%__python setup.py install --root $RPM_BUILD_ROOT
43
%__python setup.py install --root $RPM_BUILD_ROOT --install-purelib %python_sitelibdir
44
44
45
# Man pages
46
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
47
cp -a doc/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/
48
rm -rf doc/man
49
45
50
%clean
46
# Man pages
51
rm -rf $RPM_BUILD_ROOT
47
mkdir -p -- $RPM_BUILD_ROOT%_man1dir
48
cp -a -- doc/man/*.1 $RPM_BUILD_ROOT%_man1dir
49
rm -rf -- doc/man
52
50
53
%files
51
%files
54
%defattr(-,root,root,-)
55
%doc README LICENSE NEWS doc/*
52
%doc README LICENSE NEWS doc/*
56
%{_mandir}/man1/*
53
%_man1dir/*
57
%{_bindir}/bookify
54
%_bindir/bookify
58
%{_bindir}/lore
55
%_bindir/lore
59
56
60
%{python_sitelibdir}/twisted/lore/
57
%python_sitelibdir/twisted/lore
58
%python_sitelibdir/twisted/plugins/twisted_lore.py*
61
59
62
%{python_sitelibdir}/twisted/plugins/twisted_lore.py*
60
%exclude %python_sitelibdir/twisted/lore/nevowlore*
63
61
64
%changelog
62
%changelog
63
* Sat Oct 27 2007 Nikolay A. Fetisov <naf@altlinux.ru> 0.3.0-alt1.1
64
- Fix build on x86_64
65
- Fix missed dependency on python2.4(nevow)
66
- Spec file cleanup
67
65
* Fri Mar 30 2007 Sergey Alembekov <rt@altlinux.ru> 0.3.0-alt1
68
* Fri Mar 30 2007 Sergey Alembekov <rt@altlinux.ru> 0.3.0-alt1
66
 - Build for new upstream version
69
 - Build for new upstream version

Return to bug 13444