source:
trunk/server/fedora/specs/openafs.spec.patch
@
2653
Last change on this file since 2653 was 2649, checked in by andersk, 10 years ago | |
---|---|
File size: 4.0 KB |
-
openafs.spec
old new 4 4 %define pkgvers 1.6.10 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 2 7 %define pkgrel 2.99.scripts.%{scriptsversion} 8 8 9 9 %{!?fedorakmod: %define fedorakmod 1} 10 10 %{!?build_dkmspkg: %define build_dkmspkg 1} … … 249 249 %if %{build_modules} 250 250 BuildRequires: kernel-devel 251 251 %endif 252 BuildRequires: libtool 252 253 253 254 ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64 254 255 256 Patch1000: openafs-scripts.patch 257 Patch1002: openafs-systemd-crond.patch 258 Patch1003: openafs-systemd-csdb.patch 259 Patch1004: openafs-afs_lookup-return.patch 260 Patch1005: openafs-d_revalidate-mtpt.patch 261 Patch1006: openafs-linux-3.17.patch 262 Patch1007: openafs-mvid-NULL-deref.patch 263 Patch1008: openafs-afs_conn-overcounts.patch 264 %define _default_patch_fuzz 2 265 255 266 # http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/... 256 267 Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2 257 268 Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2 … … 331 338 %if %{build_userspace} 332 339 333 340 %package client 341 Provides: scripts-openafs-client 334 342 Requires: binutils, openafs = %{version} 335 343 %if 0%{?fedora} >= 15 || 0%{?rhel} >= 7 336 344 Requires: systemd-units … … 382 390 %package -n dkms-%{name} 383 391 Summary: DKMS-ready kernel source for AFS distributed filesystem 384 392 Group: Development/Kernel 393 Provides: scripts-dkms-%{name} 385 394 Provides: openafs-kernel = %{version} 386 395 %if %{fedorakmod} 387 396 Provides: %{name}-kmod = %{version} … … 403 412 404 413 %if %{build_authlibs} 405 414 %package authlibs 415 Provides: scripts-openafs-authlibs 406 416 Summary: OpenAFS authentication shared libraries 407 417 Group: Networking/Filesystems 408 418 … … 419 429 %endif 420 430 421 431 %package authlibs-devel 432 Provides: scripts-openafs-authlibs-devel 422 433 %if %{build_authlibs} 423 434 Requires: openafs-authlibs = %{version}-%{release} 424 435 %endif … … 437 448 libraries. 438 449 439 450 %package devel 451 Provides: scripts-openafs-devel 440 452 Summary: OpenAFS Development Libraries and Headers 441 453 Group: Development/Filesystems 442 454 Requires: openafs = %{version}-%{release} … … 466 478 administrators. 467 479 468 480 %package kernel-source 481 Provides: scripts-openafs-kernel-source 469 482 Summary: OpenAFS Kernel Module source tree 470 483 Group: Networking/Filesystems 471 484 Provides: openafs-kernel = %{version} … … 515 528 516 529 %if %{krb5support} 517 530 %package krb5 531 Provides: scripts-openafs-krb5 518 532 Summary: OpenAFS programs to use with krb5 519 533 Requires: openafs = %{version} 520 534 Group: Networking/Filesystems … … 541 555 %if %{build_modules} 542 556 543 557 %if %{fedorakmod} 544 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{depmod} %{kvariants} 2>/dev/null)}558 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{depmod} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)} 545 559 546 560 %else 547 561 … … 698 712 #%setup -q -n %{srcdir} 699 713 %setup -q -b 1 -n %{srcdir} 700 714 715 # Apply the Scripts patch 716 %patch1000 -p1 -b .scripts 717 %patch1002 -p1 -b .systemd-crond 718 %patch1003 -p1 -b .systemd-csdb 719 %patch1004 -p1 -b .afs_lookup-return 720 %patch1005 -p1 -b .d_revalidate-mtpt 721 %patch1006 -p1 -b .linux-3.17 722 %patch1007 -p1 -b .mvid-NULL-deref.patch 723 %patch1008 -p1 -b .afs_conn-overcounts.patch 724 701 725 ############################################################################## 702 726 # 703 727 # building … … 871 891 %endif 872 892 %endif 873 893 894 ./regen.sh 895 874 896 ./configure --with-afs-sysname=${sysname} \ 875 897 --prefix=%{_prefix} \ 876 898 --libdir=%{_libdir} \ … … 1267 1289 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so 1268 1290 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.* 1269 1291 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.* 1292 %else 1293 chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so 1294 chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so 1295 chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.* 1296 chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.* 1297 chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so 1298 chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.* 1270 1299 %endif 1271 1300 1272 1301 %endif
Note: See TracBrowser
for help on using the repository browser.