/[packages]/cauldron/rust/current/SPECS/rust.spec
ViewVC logotype

Contents of /cauldron/rust/current/SPECS/rust.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1244157 - (show annotations) (download)
Wed Jul 18 11:58:43 2018 UTC (5 years, 9 months ago) by akien
File size: 20470 byte(s)
- Sync with Fedora: Tue Jul 10 2018 Josh Stone <jistone@redhat.com> - 1.27.1-2
  o Update to 1.27.1.
  o Security fix for CVE-2018-1000622
1 # (akien) This package is synced with Fedora / Josh Stone's spec.
2 # The aim is to work with them on a rust packaging policy we could share,
3 # so that we can ensure a good packaging and share the workload.
4
5
6 # Only x86_64 and i686 are Tier 1 platforms at this time.
7 # https://forge.rust-lang.org/platform-support.html
8 %global rust_arches x86_64 i686 i586 armv7hl aarch64 ppc64 ppc64le s390x
9
10 # The channel can be stable, beta, or nightly
11 %{!?channel: %global channel stable}
12
13 # To bootstrap from scratch, set the channel and date from src/stage0.txt
14 # e.g. 1.10.0 wants rustc: 1.9.0-2016-05-24
15 # or nightly wants some beta-YYYY-MM-DD
16 # Note that cargo matches the program version here, not its crate version.
17 %global bootstrap_rust 1.26.0
18 %global bootstrap_cargo 1.26.0
19 %global bootstrap_channel %{bootstrap_rust}
20 %global bootstrap_date 2018-05-10
21
22 # Only the specified arches will use bootstrap binaries.
23 #global bootstrap_arches %%{rust_arches}
24
25 # Using llvm-static may be helpful as an opt-in, e.g. to aid LLVM rebases.
26 %bcond_with llvm_static
27
28 # We can also choose to just use Rust's bundled LLVM, in case the system LLVM
29 # is insufficient. Rust currently requires LLVM 3.9+.
30 %if 0%{?rhel} && !0%{?epel}
31 %bcond_without bundled_llvm
32 %else
33 %bcond_with bundled_llvm
34 %endif
35
36 # libgit2-sys expects to use its bundled library, which is sometimes just a
37 # snapshot of libgit2's master branch. This can mean the FFI declarations
38 # won't match our released libgit2.so, e.g. having changed struct fields.
39 # So, tread carefully if you toggle this...
40 %bcond_without bundled_libgit2
41
42 # LLDB only works on some architectures
43 %ifarch %{arm} aarch64 %{ix86} x86_64
44 # LLDB isn't available everywhere...
45 %if !0%{?rhel}
46 %bcond_without lldb
47 %else
48 %bcond_with lldb
49 %endif
50 %else
51 %bcond_with lldb
52 %endif
53
54 # Some sub-packages are versioned independently of the rust compiler and runtime itself.
55 # Also beware that if any of these are not changed in a version bump, then the release
56 # number should still increase, not be reset to 1!
57 %global rustc_version 1.27.1
58 %global cargo_version 1.27.0
59 %global rustfmt_version 0.6.1
60 %global rls_version 0.127.0
61
62 Name: rust
63 Version: %{rustc_version}
64 Release: %mkrel 2
65 Summary: The Rust Programming Language
66 %if 0%{?mageia}
67 Group: Development/Other
68 %endif
69 License: (ASL 2.0 or MIT) and (BSD and MIT)
70 # ^ written as: (rust itself) and (bundled libraries)
71 URL: https://www.rust-lang.org
72 ExclusiveArch: %{rust_arches}
73
74 %if "%{channel}" == "stable"
75 %global rustc_package rustc-%{rustc_version}-src
76 %else
77 %global rustc_package rustc-%{channel}-src
78 %endif
79 Source0: https://static.rust-lang.org/dist/%{rustc_package}.tar.xz
80
81 # https://github.com/rust-lang/rust/pull/50789/
82 Patch1: 0001-Ensure-libraries-built-in-stage0-have-unique-metadat.patch
83
84 # https://github.com/rust-lang/rust/issues/51650
85 # https://github.com/rust-lang-nursery/error-chain/pull/247
86 Patch2: 0001-Fix-new-renamed_and_removed_lints-warning-247.patch
87
88 # Get the Rust triple for any arch.
89 %{lua: function rust_triple(arch)
90 local abi = "gnu"
91 if arch == "armv7hl" then
92 arch = "armv7"
93 abi = "gnueabihf"
94 elseif arch == "ppc64" then
95 arch = "powerpc64"
96 elseif arch == "ppc64le" then
97 arch = "powerpc64le"
98 elseif arch == "i586" then
99 arch = "i686"
100 end
101 return arch.."-unknown-linux-"..abi
102 end}
103
104 %global rust_triple %{lua: print(rust_triple(rpm.expand("%{_target_cpu}")))}
105
106 %if %defined bootstrap_arches
107 # For each bootstrap arch, add an additional binary Source.
108 # Also define bootstrap_source just for the current target.
109 %{lua: do
110 local bootstrap_arches = {}
111 for arch in string.gmatch(rpm.expand("%{bootstrap_arches}"), "%S+") do
112 table.insert(bootstrap_arches, arch)
113 end
114 local base = rpm.expand("https://static.rust-lang.org/dist/%{bootstrap_date}"
115 .."/rust-%{bootstrap_channel}")
116 local target_arch = rpm.expand("%{_target_cpu}")
117 for i, arch in ipairs(bootstrap_arches) do
118 print(string.format("Source%d: %s-%s.tar.xz\n",
119 i, base, rust_triple(arch)))
120 if arch == target_arch then
121 rpm.define("bootstrap_source "..i)
122 end
123 end
124 end}
125 %endif
126
127 %ifarch %{bootstrap_arches}
128 %global bootstrap_root rust-%{bootstrap_channel}-%{rust_triple}
129 %global local_rust_root %{_builddir}/%{bootstrap_root}/usr
130 Provides: bundled(%{name}-bootstrap) = %{bootstrap_rust}
131 %else
132 BuildRequires: cargo >= %{bootstrap_cargo}
133 %if 0%{?fedora} >= 27
134 BuildRequires: (%{name} >= %{bootstrap_rust} with %{name} <= %{rustc_version})
135 %else
136 BuildRequires: %{name} >= %{bootstrap_rust}
137 BuildConflicts: %{name} > %{rustc_version}
138 %endif
139 %global local_rust_root %{_prefix}
140 %endif
141
142 BuildRequires: make
143 BuildRequires: gcc
144 BuildRequires: gcc-c++
145 BuildRequires: ncurses-devel
146 BuildRequires: curl
147 BuildRequires: pkgconfig(libcurl)
148 BuildRequires: pkgconfig(liblzma)
149 BuildRequires: pkgconfig(libssh2)
150 BuildRequires: pkgconfig(openssl)
151 BuildRequires: pkgconfig(zlib)
152
153 %if 0%{?rhel} && 0%{?rhel} <= 7
154 %global python python2
155 %else
156 %global python python3
157 %endif
158 BuildRequires: %{python}
159
160 %if %with bundled_llvm
161 BuildRequires: cmake3 >= 3.4.3
162 Provides: bundled(llvm) = 6.0
163 %else
164 BuildRequires: cmake >= 2.8.11
165 %if 0%{?epel}
166 %global llvm llvm5.0
167 %endif
168 %if %defined llvm
169 %global llvm_root %{_libdir}/%{llvm}
170 %else
171 %global llvm llvm
172 %global llvm_root %{_prefix}
173 %endif
174 BuildRequires: %{llvm}-devel >= 3.9
175 %if %with llvm_static
176 BuildRequires: %{llvm}-static
177 BuildRequires: libffi-devel
178 %endif
179 %endif
180
181 # make check needs "ps" for src/test/run-pass/wait-forked-but-failed-child.rs
182 BuildRequires: procps-ng
183
184 # debuginfo-gdb tests need gdb
185 BuildRequires: gdb
186
187 # TODO: work on unbundling these!
188 Provides: bundled(libbacktrace) = 6.1.0
189 Provides: bundled(miniz) = 1.16~beta+r1
190
191 # Virtual provides for folks who attempt "dnf install rustc"
192 Provides: rustc = %{rustc_version}-%{release}
193 Provides: rustc%{?_isa} = %{rustc_version}-%{release}
194
195 # Always require our exact standard library
196 Requires: %{name}-std-static%{?_isa} = %{rustc_version}-%{release}
197
198 # The C compiler is needed at runtime just for linking. Someday rustc might
199 # invoke the linker directly, and then we'll only need binutils.
200 # https://github.com/rust-lang/rust/issues/11937
201 %if 0%{?mageia}
202 Requires: gcc
203 %else
204 Requires: /usr/bin/cc
205 %endif
206
207 # ALL Rust libraries are private, because they don't keep an ABI.
208 %global _privatelibs lib(.*-[[:xdigit:]]*|rustc.*)[.]so.*
209 %global __provides_exclude ^(%{_privatelibs})$
210 %global __requires_exclude ^(%{_privatelibs})$
211 %global __provides_exclude_from ^%{_docdir}/.*$
212 %global __requires_exclude_from ^%{_docdir}/.*$
213
214 # While we don't want to encourage dynamic linking to Rust shared libraries, as
215 # there's no stable ABI, we still need the unallocated metadata (.rustc) to
216 # support custom-derive plugins like #[proc_macro_derive(Foo)]. But eu-strip is
217 # very eager by default, so we have to limit it to -g, only debugging symbols.
218 %if 0%{?fedora} >= 27 || 0%{?mageia} >= 7
219 # Newer find-debuginfo.sh supports --keep-section, which is preferable. rhbz1465997
220 %global _find_debuginfo_opts --keep-section .rustc
221 %else
222 %global _find_debuginfo_opts -g
223 %undefine _include_minidebuginfo
224 %endif
225
226 # Use hardening ldflags.
227 %global rustflags -Clink-arg=-Wl,-z,relro,-z,now
228
229 %if %{without bundled_llvm} && "%{llvm_root}" != "%{_prefix}"
230 # https://github.com/rust-lang/rust/issues/40717
231 %global library_path $(%{llvm_root}/bin/llvm-config --libdir)
232 %endif
233
234 %description
235 Rust is a systems programming language that runs blazingly fast, prevents
236 segfaults, and guarantees thread safety.
237
238 This package includes the Rust compiler and documentation generator.
239
240
241 %package std-static
242 Summary: Standard library for Rust
243
244 %description std-static
245 This package includes the standard libraries for building applications
246 written in Rust.
247
248
249 %package debugger-common
250 Summary: Common debugger pretty printers for Rust
251 BuildArch: noarch
252
253 %description debugger-common
254 This package includes the common functionality for %{name}-gdb and %{name}-lldb.
255
256
257 %package gdb
258 Summary: GDB pretty printers for Rust
259 BuildArch: noarch
260 Requires: gdb
261 Requires: %{name}-debugger-common = %{rustc_version}-%{release}
262
263 %if 0%{?mageia} == 6
264 # (akien) Handle moved files between our old Mageia package and this Fedora-based one
265 Conflicts: rust < 1.11.0-3
266 %endif
267
268 %description gdb
269 This package includes the rust-gdb script, which allows easier debugging of Rust
270 programs.
271
272
273 %if %with lldb
274
275 %package lldb
276 Summary: LLDB pretty printers for Rust
277
278 # It could be noarch, but lldb has limited availability
279 #BuildArch: noarch
280
281 Requires: lldb
282 %if 0%{?mageia} == 6
283 Requires: python-lldb
284 %else
285 Requires: python2-lldb
286 %endif
287 Requires: %{name}-debugger-common = %{rustc_version}-%{release}
288
289 %description lldb
290 This package includes the rust-lldb script, which allows easier debugging of Rust
291 programs.
292
293 %endif
294
295
296 %package doc
297 Summary: Documentation for Rust
298 # NOT BuildArch: noarch
299 # Note, while docs are mostly noarch, some things do vary by target_arch.
300 # Koji will fail the build in rpmdiff if two architectures build a noarch
301 # subpackage differently, so instead we have to keep its arch.
302
303 %description doc
304 This package includes HTML documentation for the Rust programming language and
305 its standard library.
306
307
308 %package -n cargo
309 Summary: Rust's package manager and build tool
310 Version: %{cargo_version}
311 %if %with bundled_libgit2
312 Provides: bundled(libgit2) = 0.27
313 %else
314 BuildRequires: pkgconfig(libgit2) >= 0.27
315 %endif
316 # For tests:
317 BuildRequires: git
318 # Cargo is not much use without Rust
319 Requires: rust
320
321 %if 0%{?mageia}
322 Obsoletes: cargo < 1.26.0-1
323 %endif
324
325 %description -n cargo
326 Cargo is a tool that allows Rust projects to declare their various dependencies
327 and ensure that you'll always get a repeatable build.
328
329
330 %package -n cargo-doc
331 Summary: Documentation for Cargo
332 Version: %{cargo_version}
333 BuildArch: noarch
334 # Cargo no longer builds its own documentation
335 # https://github.com/rust-lang/cargo/pull/4904
336 Requires: rust-doc
337
338 %if 0%{?mageia}
339 Obsoletes: cargo-doc < 1.26.0-1
340 %endif
341
342 %description -n cargo-doc
343 This package includes HTML documentation for Cargo.
344
345
346 %package -n rustfmt-preview
347 Summary: Tool to find and fix Rust formatting issues
348 Version: %{rustfmt_version}
349 Requires: cargo
350
351 # Despite the lower version, our rustfmt-preview is newer than rustfmt-0.9.
352 # It's expected to stay "preview" until it's released as 1.0.
353 Obsoletes: rustfmt <= 0.9.0
354 Provides: rustfmt = %{rustfmt_version}
355
356 %description -n rustfmt-preview
357 A tool for formatting Rust code according to style guidelines.
358
359
360 %package -n rls-preview
361 Summary: Rust Language Server for IDE integration
362 Version: %{rls_version}
363 Provides: rls = %{rls_version}
364 %if %with bundled_libgit2
365 Provides: bundled(libgit2) = 0.27
366 %endif
367 Requires: rust-analysis
368 # /usr/bin/rls is dynamically linked against internal rustc libs
369 Requires: %{name}%{?_isa} = %{rustc_version}-%{release}
370
371 %description -n rls-preview
372 The Rust Language Server provides a server that runs in the background,
373 providing IDEs, editors, and other tools with information about Rust programs.
374 It supports functionality such as 'goto definition', symbol search,
375 reformatting, and code completion, and enables renaming and refactorings.
376
377
378 %package src
379 Summary: Sources for the Rust standard library
380 BuildArch: noarch
381
382 %description src
383 This package includes source files for the Rust standard library. It may be
384 useful as a reference for code completion tools in various editors.
385
386
387 %package analysis
388 Summary: Compiler analysis data for the Rust standard library
389 Requires: rust-std-static%{?_isa} = %{rustc_version}-%{release}
390
391 %description analysis
392 This package contains analysis data files produced with rustc's -Zsave-analysis
393 feature for the Rust standard library. The RLS (Rust Language Server) uses this
394 data to provide information about the Rust standard library.
395
396
397 %prep
398
399 %ifarch %{bootstrap_arches}
400 %setup -q -n %{bootstrap_root} -T -b %{bootstrap_source}
401 ./install.sh --components=cargo,rustc,rust-std-%{rust_triple} \
402 --prefix=%{local_rust_root} --disable-ldconfig
403 test -f '%{local_rust_root}/bin/cargo'
404 test -f '%{local_rust_root}/bin/rustc'
405 %endif
406
407 %setup -q -n %{rustc_package}
408
409 %patch1 -p1
410
411 pushd src/vendor/error-chain
412 %patch2 -p1
413 popd
414
415 %if "%{python}" == "python3"
416 sed -i.try-py3 -e '/try python2.7/i try python3 "$@"' ./configure
417 %endif
418
419 # We're disabling jemalloc, but rust-src still wants it.
420 # rm -rf src/jemalloc/
421
422 %if %without bundled_llvm
423 rm -rf src/llvm/
424 %endif
425
426 # We never enable emscripten.
427 rm -rf src/llvm-emscripten/
428
429 # extract bundled licenses for packaging
430 sed -e '/*\//q' src/libbacktrace/backtrace.h \
431 >src/libbacktrace/LICENSE-libbacktrace
432
433 # This tests a problem of exponential growth, which seems to be less-reliably
434 # fixed when running on older LLVM and/or some arches. Just skip it for now.
435 sed -i.ignore -e '1i // ignore-test may still be exponential...' \
436 src/test/run-pass/issue-41696.rs
437
438 %if %{with bundled_llvm} && 0%{?epel}
439 mkdir -p cmake-bin
440 ln -s /usr/bin/cmake3 cmake-bin/cmake
441 %global cmake_path $PWD/cmake-bin
442 %endif
443
444 %if %{without bundled_llvm} && %{with llvm_static}
445 # Static linking to distro LLVM needs to add -lffi
446 # https://github.com/rust-lang/rust/issues/34486
447 sed -i.ffi -e '$a #[link(name = "ffi")] extern {}' \
448 src/librustc_llvm/lib.rs
449 %endif
450
451 # The configure macro will modify some autoconf-related files, which upsets
452 # cargo when it tries to verify checksums in those files. If we just truncate
453 # that file list, cargo won't have anything to complain about.
454 find src/vendor -name .cargo-checksum.json \
455 -exec sed -i.uncheck -e 's/"files":{[^}]*}/"files":{ }/' '{}' '+'
456
457
458 %build
459
460 %if %without bundled_libgit2
461 # convince libgit2-sys to use the distro libgit2
462 export LIBGIT2_SYS_USE_PKG_CONFIG=1
463 %endif
464
465 %{?cmake_path:export PATH=%{cmake_path}:$PATH}
466 %{?library_path:export LIBRARY_PATH="%{library_path}"}
467 %{?rustflags:export RUSTFLAGS="%{rustflags}"}
468
469 # We're going to override --libdir when configuring to get rustlib into a
470 # common path, but we'll fix the shared libraries during install.
471 %global common_libdir %{_prefix}/lib
472 %global rustlibdir %{common_libdir}/rustlib
473
474 %ifarch %{arm} %{ix86}
475 # full debuginfo is exhausting memory; just do libstd for now
476 # https://github.com/rust-lang/rust/issues/45854
477 %define enable_debuginfo --enable-debuginfo --enable-debuginfo-only-std --disable-debuginfo-tools --disable-debuginfo-lines
478 %else
479 %define enable_debuginfo --enable-debuginfo --disable-debuginfo-only-std --enable-debuginfo-tools --disable-debuginfo-lines
480 %endif
481
482 %configure --disable-option-checking \
483 --libdir=%{common_libdir} \
484 --build=%{rust_triple} --host=%{rust_triple} --target=%{rust_triple} \
485 --local-rust-root=%{local_rust_root} \
486 %{!?with_bundled_llvm: --llvm-root=%{llvm_root} --disable-codegen-tests \
487 %{!?with_llvm_static: --enable-llvm-link-shared } } \
488 --disable-jemalloc \
489 --disable-rpath \
490 %{enable_debuginfo} \
491 --enable-extended \
492 --enable-vendor \
493 --release-channel=%{channel}
494
495 %{python} ./x.py build
496 %{python} ./x.py doc
497
498
499 %install
500 %{?cmake_path:export PATH=%{cmake_path}:$PATH}
501 %{?library_path:export LIBRARY_PATH="%{library_path}"}
502 %{?rustflags:export RUSTFLAGS="%{rustflags}"}
503
504 DESTDIR=%{buildroot} %{python} ./x.py install
505
506 # Make sure the shared libraries are in the proper libdir
507 %if "%{_libdir}" != "%{common_libdir}"
508 mkdir -p %{buildroot}%{_libdir}
509 find %{buildroot}%{common_libdir} -maxdepth 1 -type f -name '*.so' \
510 -exec mv -v -t %{buildroot}%{_libdir} '{}' '+'
511 %endif
512
513 # The shared libraries should be executable for debuginfo extraction.
514 find %{buildroot}%{_libdir} -maxdepth 1 -type f -name '*.so' \
515 -exec chmod -v +x '{}' '+'
516
517 # The libdir libraries are identical to those under rustlib/. It's easier on
518 # library loading if we keep them in libdir, but we do need them in rustlib/
519 # to support dynamic linking for compiler plugins, so we'll symlink.
520 (cd "%{buildroot}%{rustlibdir}/%{rust_triple}/lib" &&
521 find ../../../../%{_lib} -maxdepth 1 -name '*.so' |
522 while read lib; do
523 # make sure they're actually identical!
524 cmp "$lib" "${lib##*/}"
525 ln -v -f -s -t . "$lib"
526 done)
527
528 # Remove installer artifacts (manifests, uninstall scripts, etc.)
529 find %{buildroot}%{rustlibdir} -maxdepth 1 -type f -exec rm -v '{}' '+'
530
531 # FIXME: __os_install_post will strip the rlibs
532 # -- should we find a way to preserve debuginfo?
533
534 # Remove unwanted documentation files (we already package them)
535 rm -f %{buildroot}%{_docdir}/%{name}/README.md
536 rm -f %{buildroot}%{_docdir}/%{name}/COPYRIGHT
537 rm -f %{buildroot}%{_docdir}/%{name}/LICENSE-APACHE
538 rm -f %{buildroot}%{_docdir}/%{name}/LICENSE-MIT
539 rm -f %{buildroot}%{_docdir}/%{name}/LICENSE-THIRD-PARTY
540 rm -f %{buildroot}%{_docdir}/%{name}/*.old
541
542 # Sanitize the HTML documentation
543 find %{buildroot}%{_docdir}/%{name}/html -empty -delete
544 find %{buildroot}%{_docdir}/%{name}/html -type f -exec chmod -x '{}' '+'
545
546 # Create the path for crate-devel packages
547 mkdir -p %{buildroot}%{_datadir}/cargo/registry
548
549 # Cargo no longer builds its own documentation
550 # https://github.com/rust-lang/cargo/pull/4904
551 mkdir -p %{buildroot}%{_docdir}/cargo/html
552 cat <<EOF > %{buildroot}%{_docdir}/cargo/html/index.html
553 <!DOCTYPE HTML>
554 <html lang="en-US">
555 <head>
556 <meta charset="UTF-8">
557 <meta http-equiv="refresh" content="0; url=../../rust/html/cargo/index.html">
558 <script type="text/javascript">
559 window.location.href = "../../rust/html/cargo/index.html"
560 </script>
561 <title>cargo-doc redirection</title>
562 </head>
563 <body>
564 Cargo documentation has been moved to the rust-doc package.
565 If you are not redirected automatically, please follow this
566 <a href="../../rust/html/cargo/index.html">link</a>.
567 </body>
568 </html>
569 EOF
570
571 %if %without lldb
572 rm -f %{buildroot}%{_bindir}/rust-lldb
573 rm -f %{buildroot}%{rustlibdir}/etc/lldb_*.py*
574 %endif
575
576
577 %check
578 %{?cmake_path:export PATH=%{cmake_path}:$PATH}
579 %{?library_path:export LIBRARY_PATH="%{library_path}"}
580 %{?rustflags:export RUSTFLAGS="%{rustflags}"}
581
582 # The results are not stable on koji, so mask errors and just log it.
583 %{python} ./x.py test --no-fail-fast || :
584 %{python} ./x.py test --no-fail-fast cargo || :
585 %{python} ./x.py test --no-fail-fast rls || :
586 %{python} ./x.py test --no-fail-fast rustfmt || :
587
588
589 %if ! 0%{?mageia}
590 %ldconfig_scriptlets
591 %endif
592
593
594 %files
595 %license COPYRIGHT LICENSE-APACHE LICENSE-MIT
596 %license src/libbacktrace/LICENSE-libbacktrace
597 %doc README.md
598 %{_bindir}/rustc
599 %{_bindir}/rustdoc
600 %{_libdir}/*.so
601 %{_mandir}/man1/rustc.1*
602 %{_mandir}/man1/rustdoc.1*
603 %dir %{rustlibdir}
604 %dir %{rustlibdir}/%{rust_triple}
605 %dir %{rustlibdir}/%{rust_triple}/lib
606 %{rustlibdir}/%{rust_triple}/lib/*.so
607 %{rustlibdir}/%{rust_triple}/codegen-backends/
608
609
610 %files std-static
611 %dir %{rustlibdir}
612 %dir %{rustlibdir}/%{rust_triple}
613 %dir %{rustlibdir}/%{rust_triple}/lib
614 %{rustlibdir}/%{rust_triple}/lib/*.rlib
615
616
617 %files debugger-common
618 %dir %{rustlibdir}
619 %dir %{rustlibdir}/etc
620 %{rustlibdir}/etc/debugger_*.py*
621
622
623 %files gdb
624 %{_bindir}/rust-gdb
625 %{rustlibdir}/etc/gdb_*.py*
626
627
628 %if %with lldb
629 %files lldb
630 %{_bindir}/rust-lldb
631 %{rustlibdir}/etc/lldb_*.py*
632 %endif
633
634
635 %files doc
636 %docdir %{_docdir}/%{name}
637 %dir %{_docdir}/%{name}
638 %dir %{_docdir}/%{name}/html
639 %{_docdir}/%{name}/html/*/
640 %{_docdir}/%{name}/html/*.html
641 %{_docdir}/%{name}/html/*.css
642 %{_docdir}/%{name}/html/*.js
643 %{_docdir}/%{name}/html/*.svg
644 %{_docdir}/%{name}/html/*.woff
645 %license %{_docdir}/%{name}/html/*.txt
646
647
648 %files -n cargo
649 %license src/tools/cargo/LICENSE-APACHE src/tools/cargo/LICENSE-MIT src/tools/cargo/LICENSE-THIRD-PARTY
650 %doc src/tools/cargo/README.md
651 %{_bindir}/cargo
652 %{_mandir}/man1/cargo*.1*
653 %{_sysconfdir}/bash_completion.d/cargo
654 %{_datadir}/zsh/site-functions/_cargo
655 %dir %{_datadir}/cargo
656 %dir %{_datadir}/cargo/registry
657
658
659 %files -n cargo-doc
660 %{_docdir}/cargo/html
661
662
663 %files -n rustfmt-preview
664 %{_bindir}/rustfmt
665 %{_bindir}/cargo-fmt
666 %doc src/tools/rustfmt/{README,CHANGELOG,Configurations}.md
667 %license src/tools/rustfmt/LICENSE-{APACHE,MIT}
668
669
670 %files -n rls-preview
671 %{_bindir}/rls
672 %doc src/tools/rls/{README.md,COPYRIGHT,debugging.md}
673 %license src/tools/rls/LICENSE-{APACHE,MIT}
674
675
676 %files src
677 %dir %{rustlibdir}
678 %{rustlibdir}/src
679
680
681 %files analysis
682 %{rustlibdir}/%{rust_triple}/analysis/

  ViewVC Help
Powered by ViewVC 1.1.30