My favorites | Sign in
Project Home Downloads Wiki Source
Checkout   Browse   Changes  
Changes to /trunk/projects/packages/rpms/thrift/thrift.spec
r260 vs. r269 Compare: vs.  Format:
Revision r269
Go to: 
Project members, sign in to write a code review
/trunk/projects/packages/rpms/thrift/thrift.spec   r260 /trunk/projects/packages/rpms/thrift/thrift.spec   r269
1 # Erlang 1 # Erlang
2 %global erlangdir %{_libdir}/erlang 2 %global erlangdir %{_libdir}/erlang
3 3
4 # Haskell 4 # Haskell
5 %{!?ghc_version: %global ghc_version 6.10.1} 5 %{!?ghc_version: %global ghc_version 6.10.1}
6 %global pkg_name Thrift 6 %global pkg_name Thrift
7 %global pkg_version 0.1.0 7 %global pkg_version 0.1.0
8 %global pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{pkg_version} 8 %global pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{pkg_version}
9 %global pkg_docdir %{_docdir}/ghc/libraries/%{pkg_name}-%{pkg_version} 9 %global pkg_docdir %{_docdir}/ghc/libraries/%{pkg_name}-%{pkg_version}
10 10
11 %bcond_without doc 11 %bcond_without doc
12 %bcond_without prof 12 %bcond_without prof
13 13
14 # Python 14 # Python
15 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} 15 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
16 16
17 # Ruby 17 # Ruby
18 %{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")} 18 %{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
19 %{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")} 19 %{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}
20 20
21 %define snapshot 770888 21 %define snapshot 777690
22 22
23 Name: thrift 23 Name: thrift
24 Version: 0.0 24 Version: 0.2
25 Release: 0%{?dist}.20090505svn%{snapshot} 25 Release: 0.20090525svn%{snapshot}%{?dist}
26 Summary: A multi-language RPC and serialization framework 26 Summary: A multi-language RPC and serialization framework
27 27
28 Group: System Environment/Libraries 28 Group: System Environment/Libraries
29 License: ASL 2.0 29 License: ASL 2.0
30 URL: http://incubator.apache.org/thrift 30 URL: http://incubator.apache.org/thrift
31 # svn export http://svn.apache.org/repos/asf/incubator/thrift/trunk -r %{snapshot} thrift-0.0 31 # svn export http://svn.apache.org/repos/asf/incubator/thrift/trunk -r %{snapshot} thrift-%{version}
32 # tar -czf thrift-0.0.tar.gz thrift-0.0/ 32 # tar -czf thrift-%{version}.tar.gz thrift-%{version}/
33 Source0: %{name}-%{version}.tar.gz 33 Source0: %{name}-%{version}.tar.gz
34 Source1: thrift_protocol.ini 34 Source1: thrift_protocol.ini
35 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 35 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
36 36
37 BuildRequires: byacc 37 BuildRequires: byacc
38 BuildRequires: boost-devel >= 1.33.1 38 BuildRequires: boost-devel >= 1.33.1
39 BuildRequires: flex 39 BuildRequires: flex
40 BuildRequires: libevent-devel 40 BuildRequires: libevent-devel
41 BuildRequires: libtool 41 BuildRequires: libtool
42 BuildRequires: mono-devel >= 1.2.6 42 BuildRequires: mono-devel >= 1.2.6
43 BuildRequires: zlib-devel 43 BuildRequires: zlib-devel
44 44
45 %description 45 %description
46 Thrift is a software framework for scalable cross-language services 46 Thrift is a software framework for scalable cross-language services
47 development. It combines a powerful software stack with a code generation 47 development. It combines a powerful software stack with a code generation
48 engine to build services that work efficiently and seamlessly between C++, 48 engine to build services that work efficiently and seamlessly between C++,
49 Java, C#, Python, Ruby, Perl, PHP, Objective C/Cocoa, Smalltalk, Erlang, 49 Java, C#, Python, Ruby, Perl, PHP, Objective C/Cocoa, Smalltalk, Erlang,
50 Objective Caml, and Haskell. 50 Objective Caml, and Haskell.
51 51
52 %package cpp 52 %package cpp
53 Summary: Libraries for %{name} 53 Summary: Libraries for %{name}
54 Group: Development/Libraries 54 Group: Development/Libraries
55 55
56 %description cpp 56 %description cpp
57 Libraries bindings for %{name}. 57 Libraries bindings for %{name}.
58 58
59 %package cpp-devel 59 %package cpp-devel
60 Summary: Development files for %{name} 60 Summary: Development files for %{name}
61 Group: Development/Libraries 61 Group: Development/Libraries
62 Requires: %{name}-cpp = %{version}-%{release} 62 Requires: %{name}-cpp = %{version}-%{release}
63 63
64 %description cpp-devel 64 %description cpp-devel
65 The %{name}-devel package contains libraries and header files for 65 The %{name}-devel package contains libraries and header files for
66 developing applications that use %{name}. 66 developing applications that use %{name}.
67 67
68 #%package csharp 68 #%package csharp
69 #Summary: C# bindings for %{name} 69 #Summary: C# bindings for %{name}
70 #Group: Development/Libraries 70 #Group: Development/Libraries
71 # sparc64 doesn't have mono 71 # sparc64 doesn't have mono
72 #ExcludeArch: sparc64 72 #ExcludeArch: sparc64
73 #Requires: %{name} = %{version}-%{release}
74 73
75 #%description csharp 74 #%description csharp
76 #C# bindings for %{name}. 75 #C# bindings for %{name}.
77 76
78 %package erlang 77 %package erlang
79 Summary: Erlang bindings for %{name} 78 Summary: Erlang bindings for %{name}
80 Group: Development/Libraries 79 Group: Development/Libraries
81 BuildRequires: erlang 80 BuildRequires: erlang
82 81
83 %description erlang 82 %description erlang
84 Erlang bindings for %{name}. 83 Erlang bindings for %{name}.
85 84
86 %package ghc 85 %package ghc
87 Summary: Haskell bindings for %{name} 86 Summary: Haskell bindings for %{name}
88 Group: Development/Libraries 87 Group: Development/Libraries
89 Provides: %{name}-ghc-devel = %{version}-%{release} 88 Provides: %{name}-ghc-devel = %{version}-%{release}
90 ExclusiveArch: %{ix86} x86_64 ppc alpha 89 ExclusiveArch: %{ix86} x86_64 ppc alpha
91 BuildRequires: cabal-install 90 BuildRequires: cabal-install
92 BuildRequires: ghc 91 BuildRequires: ghc
93 92
94 %description ghc 93 %description ghc
95 Haskell bindings for %{name}. 94 Haskell bindings for %{name}.
96 95
97 %package ghc-devel 96 %package ghc-devel
98 Summary: Haskell %{pkg_name} library 97 Summary: Haskell %{pkg_name} library
99 Group: Development/Libraries 98 Group: Development/Libraries
100 Requires: ghc = %{ghc_version} 99 Requires: ghc = %{ghc_version}
101 Requires(post): ghc = %{ghc_version} 100 Requires(post): ghc = %{ghc_version}
102 Requires(preun): ghc = %{ghc_version} 101 Requires(preun): ghc = %{ghc_version}
103 102
104 %description ghc-devel 103 %description ghc-devel
105 This package contains the development files for %{name}-ghc-devel 104 This package contains the development files for %{name}-ghc-devel
106 built for ghc-%{ghc_version}. 105 built for ghc-%{ghc_version}.
107 106
108 %if %{with doc} 107 %if %{with doc}
109 %package ghc-doc 108 %package ghc-doc
110 Summary: Documentation for %{name}-ghc 109 Summary: Documentation for %{name}-ghc
111 Group: Development/Libraries 110 Group: Development/Libraries
112 BuildRequires: ghc-doc 111 BuildRequires: ghc-doc
113 Requires: ghc-doc = %{ghc_version} 112 Requires: ghc-doc = %{ghc_version}
114 Requires(post): ghc-doc = %{ghc_version} 113 Requires(post): ghc-doc = %{ghc_version}
115 Requires(postun): ghc-doc = %{ghc_version} 114 Requires(postun): ghc-doc = %{ghc_version}
116 115
117 %description ghc-doc 116 %description ghc-doc
118 This package contains development documentation files for the %{name}-ghc 117 This package contains development documentation files for the %{name}-ghc
119 library. 118 library.
120 %endif 119 %endif
121 120
122 %if %{with prof} 121 %if %{with prof}
123 %package ghc-prof 122 %package ghc-prof
124 Summary: Profiling libraries for %{name}-ghc 123 Summary: Profiling libraries for %{name}-ghc
125 Group: Development/Libraries 124 Group: Development/Libraries
126 BuildRequires: ghc-prof 125 BuildRequires: ghc-prof
127 Requires: %{name}-ghc = %{version}-%{release} 126 Requires: %{name}-ghc = %{version}-%{release}
128 Requires: ghc-prof = %{ghc_version} 127 Requires: ghc-prof = %{ghc_version}
129 128
130 %description ghc-prof 129 %description ghc-prof
131 This package contains profiling libraries for %{name}-ghc 130 This package contains profiling libraries for %{name}-ghc
132 built for ghc-%{ghc_version}. 131 built for ghc-%{ghc_version}.
133 %endif 132 %endif
134 133
135 %package java 134 %package java
136 Summary: Java bindings for %{name} 135 Summary: Java bindings for %{name}
137 Group: Development/Libraries 136 Group: Development/Libraries
138 BuildRequires: ant 137 BuildRequires: ant
139 BuildRequires: jakarta-commons-lang 138 BuildRequires: jakarta-commons-lang
140 BuildRequires: java-devel >= 1.5.0 139 BuildRequires: java-devel >= 1.5.0
141 BuildRequires: log4j 140 BuildRequires: log4j
142 Requires: jakarta-commons-lang 141 Requires: jakarta-commons-lang
143 Requires: log4j 142 Requires: log4j
144 143
145 %description java 144 %description java
146 Java bindings for %{name}. 145 Java bindings for %{name}.
147 146
148 %package javadoc 147 %package javadoc
149 Summary: Javadoc for %{name}-java 148 Summary: Javadoc for %{name}-java
150 Group: Documentation 149 Group: Documentation
151 BuildRequires: java-javadoc 150 BuildRequires: java-javadoc
152 151
153 %description javadoc 152 %description javadoc
154 Javadoc for %{name}. 153 Javadoc for %{name}.
155 154
156 %package perl 155 %package perl
157 Summary: Perl bindings for %{name} 156 Summary: Perl bindings for %{name}
158 Group: Development/Libraries 157 Group: Development/Libraries
159 BuildRequires: perl-devel 158 BuildRequires: perl-devel
160 Requires: perl-Bit-Vector 159 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
160 Requires: perl(Bit::Vector)
161 Requires: perl(Class::Accessor)
161 162
162 %description perl 163 %description perl
163 Perl bindings for %{name}. 164 Perl bindings for %{name}.
164 165
165 %package php 166 %package php
166 Summary: PHP bindings for %{name} 167 Summary: PHP bindings for %{name}
167 Group: Development/Libraries 168 Group: Development/Libraries
168 BuildRequires: php-devel 169 BuildRequires: php-devel
169 Requires: php-common 170 Requires: php-common
170 171
171 %description php 172 %description php
172 PHP bindings for %{name}. 173 PHP bindings for %{name}.
173 174
174 %package python 175 %package python
175 Summary: Python bindings for %{name} 176 Summary: Python bindings for %{name}
176 Group: Development/Libraries 177 Group: Development/Libraries
177 BuildRequires: python-devel 178 BuildRequires: python-devel
178 179
179 %description python 180 %description python
180 Python bindings for %{name}. 181 Python bindings for %{name}.
181 182
182 %package ruby 183 %package ruby
183 Summary: Ruby bindings for %{name} 184 Summary: Ruby bindings for %{name}
184 Group: Development/Libraries 185 Group: Development/Libraries
185 BuildRequires: ruby 186 BuildRequires: ruby
186 BuildRequires: ruby-devel 187 BuildRequires: ruby-devel
187 188
188 %description ruby 189 %description ruby
189 Ruby bindings for %{name}. 190 Ruby bindings for %{name}.
190 191
191 %prep 192 %prep
192 %setup -q 193 %setup -q
193 194
194 # Fix spurious-executable-perm warning 195 # Fix spurious-executable-perm warning
195 find tutorial/ -type f -exec chmod 0644 {} \; 196 find tutorial/ -type f -exec chmod 0644 {} \;
196 197
197 # Haskell setup script won't run with blank or comment lines 198 # Haskell setup script won't run with blank or comment lines
198 sed -i '/#/d;/^$/d' lib/hs/Setup.lhs 199 sed -i '/#/d;/^$/d' lib/hs/Setup.lhs
199 200
200 %build 201 %build
201 ./bootstrap.sh 202 ./bootstrap.sh
202 %configure --without-java --without-perl --without-ruby --enable-static=no 203 %configure --without-java --without-perl --without-ruby --enable-static=no
203 %{__make} %{?_smp_mflags} 204 %{__make} %{?_smp_mflags}
204 205
205 # Build Haskell 206 # Build Haskell
206 pushd lib/hs 207 pushd lib/hs
207 %cabal_configure --ghc %{!?without_prof:-p} 208 %cabal_configure --ghc %{!?without_prof:-p}
208 %cabal build 209 %cabal build
209 %cabal haddock 210 %cabal haddock
210 %ghc_gen_scripts 211 %ghc_gen_scripts
211 popd 212 popd
212 213
213 # Build Java 214 # Build Java
214 pushd lib/java 215 pushd lib/java
215 ant dist javadoc -lib %{_javadir} -Dnoivy= 216 ant dist javadoc -lib %{_javadir} -Dnoivy=
216 popd 217 popd
217 218
218 # Build Perl 219 # Build Perl
219 pushd lib/perl 220 pushd lib/perl
220 perl Makefile.PL 221 perl Makefile.PL
221 %{__make} %{?_smp_mflags} CFLAGS="%{optflags}" 222 %{__make} %{?_smp_mflags} CFLAGS="%{optflags}"
222 popd 223 popd
223 224
224 # Build PHP 225 # Build PHP
225 pushd lib/php/src/ext/thrift_protocol 226 pushd lib/php/src/ext/thrift_protocol
226 phpize 227 phpize
227 %configure 228 %configure
228 make %{?_smp_mflags} 229 make %{?_smp_mflags}
229 popd 230 popd
230 231
231 # Build Ruby 232 # Build Ruby
232 pushd lib/rb 233 pushd lib/rb
233 ruby setup.rb config 234 ruby setup.rb config
234 ruby setup.rb setup 235 ruby setup.rb setup
235 popd 236 popd
236 237
237 %install 238 %install
238 rm -rf %{buildroot} 239 rm -rf %{buildroot}
239 240
240 # Install everything not listed below 241 # Install everything not listed below
241 make DESTDIR=%{buildroot} install 242 make DESTDIR=%{buildroot} install
242 # Remove "la" files 243 # Remove "la" files
243 find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' 244 find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
244 245
245 # Fix non-standard-executable-perm 246 # Fix non-standard-executable-perm
246 chmod 0755 %{buildroot}%{python_sitearch}/%{name}/protocol/fastbinary.so 247 chmod 0755 %{buildroot}%{python_sitearch}/%{name}/protocol/fastbinary.so
247 248
248 ## Install C# 249 ## Install C#
249 #%{__mkdir_p} %{buildroot}%{_libdir}/mono/gac/ 250 #%{__mkdir_p} %{buildroot}%{_libdir}/mono/gac/
250 #gacutil -i lib/csharp/Thrift.dll -f -package Thrift -root %{buildroot}%{_libdir} 251 #gacutil -i lib/csharp/Thrift.dll -f -package Thrift -root %{buildroot}%{_libdir}
251 252
252 # Install Erlang 253 # Install Erlang
253 %{__mkdir_p} %{buildroot}%{erlangdir}/lib/%{name}-%{version} 254 %{__mkdir_p} %{buildroot}%{erlangdir}/lib/%{name}-%{version}
254 %{__cp} -rp lib/erl/* %{buildroot}%{erlangdir}/lib/%{name}-%{version} 255 %{__cp} -rp lib/erl/* %{buildroot}%{erlangdir}/lib/%{name}-%{version}
255 256
256 # Cleanup Erlang install 257 # Cleanup Erlang install
257 pushd %{buildroot}%{erlangdir}/lib/%{name}-%{version} 258 pushd %{buildroot}%{erlangdir}/lib/%{name}-%{version}
258 rm -fr Makefile README build/ 259 rm -fr Makefile README build/
259 popd 260 popd
260 261
261 # Install Haskell 262 # Install Haskell
262 pushd lib/hs 263 pushd lib/hs
263 %cabal_install 264 %cabal_install
264 %ghc_install_scripts 265 %ghc_install_scripts
265 %ghc_gen_filelists %{name} 266 %ghc_gen_filelists %{name}
266 popd 267 popd
267 268
268 # Install Java 269 # Install Java
269 pushd lib/java 270 pushd lib/java
270 %{__mkdir_p} %{buildroot}%{_javadir} 271 %{__mkdir_p} %{buildroot}%{_javadir}
271 %{__cp} -p libthrift.jar %{buildroot}%{_javadir} 272 %{__cp} -p libthrift.jar %{buildroot}%{_javadir}
272 %{__mkdir_p} %{buildroot}%{_javadocdir} 273 %{__mkdir_p} %{buildroot}%{_javadocdir}
273 %{__cp} -rp build/javadoc/org/apache/thrift %{buildroot}%{_javadocdir} 274 %{__cp} -rp build/javadoc/org/apache/thrift %{buildroot}%{_javadocdir}
274 popd 275 popd
275 276
276 # Install PHP 277 # Install PHP
277 pushd lib/php/src/ext/thrift_protocol 278 pushd lib/php/src/ext/thrift_protocol
278 make INSTALL_ROOT=%{buildroot} install 279 make INSTALL_ROOT=%{buildroot} install
279 popd 280 popd
280 # Install PHP INI 281 # Install PHP INI
281 %{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d 282 %{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
282 %{__cp} %{SOURCE1} %{buildroot}%{_sysconfdir}/php.d/ 283 %{__cp} %{SOURCE1} %{buildroot}%{_sysconfdir}/php.d/
283 # Install PHP project files 284 # Install PHP project files
284 %{__mkdir_p} %{buildroot}%{_datadir}/php/%{name} 285 %{__mkdir_p} %{buildroot}%{_datadir}/php/%{name}
285 %{__cp} -r lib/php/src/Thrift.php \ 286 %{__cp} -r lib/php/src/Thrift.php \
286 lib/php/src/protocol \ 287 lib/php/src/protocol \
287 lib/php/src/transport \ 288 lib/php/src/transport \
288 %{buildroot}%{_datadir}/php/%{name}/ 289 %{buildroot}%{_datadir}/php/%{name}/
289 290
290 # Install Perl 291 # Install Perl
291 pushd lib/perl 292 pushd lib/perl
292 %{__make} DESTDIR=%{buildroot} INSTALLSITELIB=%{perl_vendorlib} install 293 %{__make} DESTDIR=%{buildroot} INSTALLSITELIB=%{perl_vendorlib} install
293 popd 294 popd
294 295
295 # Cleanup Perl install 296 # Cleanup Perl install
296 find %{buildroot} -type f -name .packlist -exec rm -f {} \; 297 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
297 find %{buildroot} -type f -name perllocal.pod -exec rm -f {} \; 298 find %{buildroot} -type f -name perllocal.pod -exec rm -f {} \;
298 find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; 299 find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
299 300
300 # Install Ruby 301 # Install Ruby
301 pushd lib/rb 302 pushd lib/rb
302 ruby setup.rb install --prefix=%{buildroot} 303 ruby setup.rb install --prefix=%{buildroot}
303 popd 304 popd
304 305
305 # Fix non-standard-executable-perm error 306 # Fix non-standard-executable-perm error
306 chmod 0755 %{buildroot}%{ruby_sitearch}/thrift_native.so 307 chmod 0755 %{buildroot}%{ruby_sitearch}/thrift_native.so
307 308
308 %clean 309 %clean
309 rm -rf %{buildroot} 310 rm -rf %{buildroot}
310 311
311 %post cpp -p /sbin/ldconfig 312 %post cpp -p /sbin/ldconfig
312 313
313 %postun cpp -p /sbin/ldconfig 314 %postun cpp -p /sbin/ldconfig
314 315
315 %post ghc-devel 316 %post ghc-devel
316 %ghc_register_pkg 317 %ghc_register_pkg
317 318
318 %if %{with doc} 319 %if %{with doc}
319 %post ghc-doc 320 %post ghc-doc
320 %ghc_reindex_haddock 321 %ghc_reindex_haddock
321 %endif 322 %endif
322 323
323 %preun ghc-devel 324 %preun ghc-devel
324 if [ "$1" -eq 0 ]; then 325 if [ "$1" -eq 0 ]; then
325 %ghc_unregister_pkg 326 %ghc_unregister_pkg
326 fi 327 fi
327 328
328 %if %{with doc} 329 %if %{with doc}
329 %postun ghc-doc 330 %postun ghc-doc
330 if [ "$1" -eq 0 ]; then 331 if [ "$1" -eq 0 ]; then
331 %ghc_reindex_haddock 332 %ghc_reindex_haddock
332 fi 333 fi
333 %endif 334 %endif
334 335
335 %files 336 %files
336 %defattr(-,root,root,-) 337 %defattr(-,root,root,-)
337 %doc CHANGES CONTRIBUTORS LICENSE NEWS NOTICE README doc/ tutorial/ 338 %doc CHANGES CONTRIBUTORS LICENSE NEWS NOTICE README doc/ tutorial/
338 %{_bindir}/thrift 339 %{_bindir}/thrift
339 340
340 %files cpp 341 %files cpp
341 %defattr(-,root,root,-) 342 %defattr(-,root,root,-)
342 %doc LICENSE 343 %doc LICENSE
343 %{_libdir}/*.so.* 344 %{_libdir}/*.so.*
344 345
345 %files cpp-devel 346 %files cpp-devel
346 %defattr(-,root,root,-) 347 %defattr(-,root,root,-)
347 %doc tutorial/README tutorial/cpp tutorial/*.thrift 348 %doc tutorial/README tutorial/cpp tutorial/*.thrift
348 %{_includedir}/thrift 349 %{_includedir}/thrift
349 %{_libdir}/*.so 350 %{_libdir}/*.so
350 %{_libdir}/pkgconfig/thrift* 351 %{_libdir}/pkgconfig/thrift*
351 352
352 #%files csharp 353 #%files csharp
353 #%defattr(-,root,root,-) 354 #%defattr(-,root,root,-)
354 #%doc lib/csharp/README 355 #%doc lib/csharp/README
355 #%{_libdir}/mono/gac/Thrift 356 #%{_libdir}/mono/gac/Thrift
356 #%{_libdir}/mono/thrift 357 #%{_libdir}/mono/thrift
357 358
358 %files erlang 359 %files erlang
359 %defattr(-,root,root,-) 360 %defattr(-,root,root,-)
360 %doc lib/erl/README tutorial/erl tutorial/*.thrift 361 %doc lib/erl/README tutorial/erl tutorial/*.thrift
361 %{erlangdir}/lib/%{name}-%{version} 362 %{erlangdir}/lib/%{name}-%{version}
362 363
363 %files ghc 364 %files ghc
364 %defattr(-,root,root,-) 365 %defattr(-,root,root,-)
365 %doc lib/hs/README lib/hs/TODO 366 %doc lib/hs/README lib/hs/TODO
366 367
367 %files ghc-devel -f lib/hs/%{name}.files 368 %files ghc-devel -f lib/hs/%{name}.files
368 %defattr(-,root,root,-) 369 %defattr(-,root,root,-)
369 %{_docdir}/%{name}-%{version} 370 %{_docdir}/%{name}-%{version}
370 371
371 %if %{with doc} 372 %if %{with doc}
372 %files ghc-doc 373 %files ghc-doc
373 %defattr(-,root,root,-) 374 %defattr(-,root,root,-)
374 %{pkg_docdir} 375 %{pkg_docdir}
375 %endif 376 %endif
376 377
377 %if %{with prof} 378 %if %{with prof}
378 %files ghc-prof -f lib/hs/%{name}-prof.files 379 %files ghc-prof -f lib/hs/%{name}-prof.files
379 %defattr(-,root,root,-) 380 %defattr(-,root,root,-)
380 %doc lib/hs/README 381 %doc lib/hs/README
381 %endif 382 %endif
382 383
383 %files java 384 %files java
384 %defattr(-,root,root,-) 385 %defattr(-,root,root,-)
385 %doc lib/java/README tutorial/java tutorial/*.thrift 386 %doc lib/java/README tutorial/java tutorial/*.thrift
386 %{_javadir}/libthrift.jar 387 %{_javadir}/libthrift.jar
387 388
388 %files javadoc 389 %files javadoc
389 %defattr(-,root,root,-) 390 %defattr(-,root,root,-)
390 %{_javadocdir}/thrift 391 %{_javadocdir}/thrift
391 392
392 %files perl 393 %files perl
393 %defattr(-,root,root,-) 394 %defattr(-,root,root,-)
394 %doc lib/perl/README tutorial/perl tutorial/*.thrift 395 %doc lib/perl/README tutorial/perl tutorial/*.thrift
395 %{perl_vendorlib}/Thrift* 396 %{perl_vendorlib}/Thrift*
396 397
397 %files php 398 %files php
398 %defattr(-,root,root,-) 399 %defattr(-,root,root,-)
399 %doc lib/php/README lib/php/README.apache tutorial/php tutorial/*.thrift 400 %doc lib/php/README lib/php/README.apache tutorial/php tutorial/*.thrift
400 %config(noreplace) %{_sysconfdir}/php.d/thrift_protocol.ini 401 %config(noreplace) %{_sysconfdir}/php.d/thrift_protocol.ini
401 %{_datadir}/php/%{name} 402 %{_datadir}/php/%{name}
402 %{php_extdir}/thrift_protocol.so 403 %{php_extdir}/thrift_protocol.so
403 404
404 %files python 405 %files python
405 %defattr(-,root,root,-) 406 %defattr(-,root,root,-)
406 %doc lib/py/README tutorial/py tutorial/*.thrift 407 %doc lib/py/README tutorial/py tutorial/*.thrift
407 %{python_sitearch}/%{name} 408 %{python_sitearch}/%{name}
408 %{python_sitearch}/Thrift-*.egg-info 409 %{python_sitearch}/Thrift-*.egg-info
409 410
410 %files ruby 411 %files ruby
411 %defattr(-,root,root,-) 412 %defattr(-,root,root,-)
412 %doc lib/rb/CHANGELOG lib/rb/README tutorial/rb tutorial/*.thrift 413 %doc lib/rb/CHANGELOG lib/rb/README tutorial/rb tutorial/*.thrift
413 %{ruby_sitearch}/thrift_native.so 414 %{ruby_sitearch}/thrift_native.so
414 %{ruby_sitelib}/thrift* 415 %{ruby_sitelib}/thrift*
415 416
416 %changelog 417 %changelog
418 * Mon May 25 2009 Silas Sewell <silas@sewell.ch> - 0.2-0.20090525svn777690
419 - Update to latest snapshot
420 - Fix version, release syntax and perl requires
421
417 * Wed May 06 2009 Silas Sewell <silas@sewell.ch> - 0.0-0.20090505svn770888 422 * Wed May 06 2009 Silas Sewell <silas@sewell.ch> - 0.0-0.20090505svn770888
418 - Fix various require issues 423 - Fix various require issues
419 - Change lib to cpp and devel to cpp-devel 424 - Change lib to cpp and devel to cpp-devel
420 - Use ghc version macro 425 - Use ghc version macro
421 - Add documentation to language specific libraries 426 - Add documentation to language specific libraries
422 427
423 * Fri May 01 2009 Silas Sewell <silas@sewell.ch> - 0.0-0.20090501svn770888 428 * Fri May 01 2009 Silas Sewell <silas@sewell.ch> - 0.0-0.20090501svn770888
424 - Initial build 429 - Initial build
Powered by Google Project Hosting