-
Notifications
You must be signed in to change notification settings - Fork 1
/
colorer-take5.spec
185 lines (142 loc) · 6.01 KB
/
colorer-take5.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
%define major 0
%define libname colorer1
%define develname colorer2
Summary: Syntax highlighting and text parsing library
Name: colorer-take5
Version: 0
Release: 0.beta5.2
Group: Text tools
License: MPL
URL: http://colorer.sourceforge.net/
Source0: http://prdownloads.sourceforge.net/colorer/Colorer-take5-linux.be5.tar.bz2
Patch0: colorer-optflags.diff
Patch1: colorer-soname.diff
Patch2: colorer-DESTDIR.diff
BuildRequires: libstdc++-devel
Requires: %{libname} = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
Colorer take5 is a syntax highlighting and text parsing library, that provides
services of text parsing in host editor systems in real-time and transforming
results into colored text. Result information allows to search and build
outlined lists of functions, structures, and to search and indent programming
language constructions (brackets, paired tags). Colorer uses pure C++, XML, it
is fully portable and works on either win32/unix/mac platforms. Top level Java
language API is also available.
%package -n %{libname}
Summary: Syntax highlighting and text parsing library
Group: System/Libraries
%description -n %{libname}
Colorer take5 is a syntax highlighting and text parsing library, that provides
services of text parsing in host editor systems in real-time and transforming
results into colored text. Result information allows to search and build
outlined lists of functions, structures, and to search and indent programming
language constructions (brackets, paired tags). Colorer uses pure C++, XML, it
is fully portable and works on either win32/unix/mac platforms. Top level Java
language API is also available.
%package -n %{develname}
Summary: Static library and header files for the %{name} library
Group: Development/C++
Requires: %{libname} = %{version}
Requires: %{name}-base = %{version}
Provides: %{name}-devel = %{version}-%{release}
Provides: lib%{name}-devel = %{version}-%{release}
Provides: libcolorer-devel = %{version}-%{release}
#Obsoletes: %{mklibname colorer 0 -d}
%description -n %{develname}
Colorer take5 is a syntax highlighting and text parsing library, that provides
services of text parsing in host editor systems in real-time and transforming
results into colored text. Result information allows to search and build
outlined lists of functions, structures, and to search and indent programming
language constructions (brackets, paired tags). Colorer uses pure C++, XML, it
is fully portable and works on either win32/unix/mac platforms. Top level Java
language API is also available.
This package contains the development files for the %{name} library.
%package docs
Summary: Documentation for Colorer take5
Group: Development/C++
%description docs
Colorer take5 is a syntax highlighting and text parsing library, that provides
services of text parsing in host editor systems in real-time and transforming
results into colored text. Result information allows to search and build
outlined lists of functions, structures, and to search and indent programming
language constructions (brackets, paired tags). Colorer uses pure C++, XML, it
is fully portable and works on either win32/unix/mac platforms. Top level Java
language API is also available.
This package contains the documentation for Colorer take5.
%package base
Summary: Common files for Colorer take5
Group: Text tools
%description base
Colorer take5 is a syntax highlighting and text parsing library, that provides
services of text parsing in host editor systems in real-time and transforming
results into colored text. Result information allows to search and build
outlined lists of functions, structures, and to search and indent programming
language constructions (brackets, paired tags). Colorer uses pure C++, XML, it
is fully portable and works on either win32/unix/mac platforms. Top level Java
language API is also available.
This package contains common files for Colorer take5.
%prep
%setup -q -c -n %{name}
%patch0 -p0
%patch1 -p0
%patch2 -p0
# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
%build
%configure
make RPM_OPT_FLAGS="%{optflags} -fpermissive -Wall -fPIC"
%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
#makeinstall_std
#ln -snf libcolorer.so.%{major} %{buildroot}%{_libdir}/libcolorer.so
rm -f %{buildroot}%{_datadir}/colorer/{LICENSE,README}
rm -rf installed_docs
#mv %{buildroot}%{_datadir}/doc/colorer-take5 installed_docs
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%attr(0755,root,root) %{_bindir}/colorer
%files -n %{libname}
%defattr(-,root,root,-)
%doc LICENSE README
%attr(0755,root,root) %{_libdir}/libcolorer.so
%files -n %{develname}
%defattr(-,root,root,-)
%{_includedir}/colorer
%{_libdir}/libcolorer.so
%{_datadir}/colorer/bin
%files docs
%defattr(-,root,root,-)
%doc installed_docs/*
%files base
%defattr(-,root,root,-)
%{_datadir}/colorer/catalog.xml
%{_datadir}/colorer/hrc
%{_datadir}/colorer/hrd
%changelog
* Mon Feb 18 2008 Thierry Vignaud <[email protected]> 0-0.beta5.2mdv2008.1
+ Revision: 170230
- fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake
- kill re-definition of %%buildroot on Pixel's request
+ Olivier Blin <[email protected]>
- restore BuildRoot
* Sun Sep 09 2007 Oden Eriksson <[email protected]> 0-0.beta5.2mdv2008.0
+ Revision: 83708
- new devel naming
* Tue Dec 19 2006 Oden Eriksson <[email protected]> 0-0.beta5.1mdv2007.0
+ Revision: 100352
- Import colorer-take5
* Tue Dec 19 2006 Oden Eriksson <[email protected]> 0-0.beta5.1mdv2007.1
- beta5
- rediffed P2
* Thu Jul 27 2006 Oden Eriksson <[email protected]> 0-0.beta4.3mdk
- rebuild
* Mon Mar 20 2006 Oden Eriksson <[email protected]> 0-0.beta4.2mdk
- fix deps and add the base sub package
* Mon Mar 20 2006 Oden Eriksson <[email protected]> 0-0.beta4.1mdk
- initial Mandriva package