source:
branches/fc15-dev/server/fedora/specs/openafs.spec.patch
@
2021
Last change on this file since 2021 was 2011, checked in by ezyang, 13 years ago | |
---|---|
File size: 3.0 KB |
-
openafs.spec
old new 4 4 %define pkgvers 1.6.0 5 5 # for beta/rc releases make pkgrel 0.<tag> 6 6 # for real releases make pkgrel 1 (or more for extra releases) 7 %define pkgrel 1 7 %define pkgrel 1.99.scripts.%{scriptsversion} 8 8 9 9 %{!?fedorakmod: %define fedorakmod 1} 10 10 %{!?build_dkmspkg: %define build_dkmspkg 1} … … 247 247 %endif 248 248 ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64 249 249 250 Patch1000: openafs-scripts.patch 251 Patch1001: openafs-localcsdb.patch 252 Patch1002: openafs-systemd.patch 253 Patch1003: openafs-systemd-crond.patch 254 250 255 # http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/... 251 256 Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2 252 257 Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2 … … 326 329 %if %{build_userspace} 327 330 328 331 %package client 332 Provides: scripts-openafs-client 329 333 Requires: binutils, openafs = %{version} 330 334 331 335 %if %{fedorakmod} … … 386 390 387 391 %if %{build_authlibs} 388 392 %package authlibs 393 Provides: scripts-openafs-authlibs 389 394 Summary: OpenAFS authentication shared libraries 390 395 Group: Networking/Filesystems 391 396 … … 402 407 %endif 403 408 404 409 %package authlibs-devel 410 Provides: scripts-openafs-authlibs-devel 405 411 %if %{build_authlibs} 406 412 Requires: openafs-authlibs = %{version} 407 413 %endif … … 420 426 libraries. 421 427 422 428 %package devel 429 Provides: scripts-openafs-devel 423 430 Summary: OpenAFS Development Libraries and Headers 424 431 Group: Development/Filesystems 425 432 … … 448 455 administrators. 449 456 450 457 %package kernel-source 458 Provides: scripts-openafs-kernel-source 451 459 Summary: OpenAFS Kernel Module source tree 452 460 Group: Networking/Filesystems 453 461 Provides: openafs-kernel = %{version} … … 497 505 498 506 %if %{krb5support} 499 507 %package krb5 508 Provides: scripts-openafs-krb5 500 509 Summary: OpenAFS programs to use with krb5 501 510 Requires: openafs = %{version} 502 511 Group: Networking/Filesystems … … 523 532 %if %{build_modules} 524 533 525 534 %if %{fedorakmod} 526 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}535 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)} 527 536 528 537 %else 529 538 … … 680 689 #%setup -q -n %{srcdir} 681 690 %setup -q -b 1 -n %{srcdir} 682 691 692 # Apply the Scripts patch 693 %patch1000 -p1 -b .scripts 694 %patch1001 -p1 -b .localcsdb 695 %patch1002 -p1 -b .systemd 696 %patch1003 -p1 -b .systemd-crond 697 683 698 ############################################################################## 684 699 # 685 700 # building … … 1215 1230 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so 1216 1231 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.* 1217 1232 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.* 1233 %else 1234 chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so 1235 chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so 1236 chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.* 1237 chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.* 1238 chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so 1239 chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.* 1218 1240 %endif 1219 1241 1220 1242 %endif
Note: See TracBrowser
for help on using the repository browser.