source:
trunk/server/fedora/specs/openafs.spec.patch
@
2768
Last change on this file since 2768 was 2712, checked in by andersk, 9 years ago | |
---|---|
File size: 3.6 KB |
-
openafs.spec
old new 4 4 %define pkgvers 1.6.12 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} … … 255 255 %if %{build_modules} 256 256 BuildRequires: kernel-devel 257 257 %endif 258 BuildRequires: libtool 258 259 259 260 ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64 260 261 262 Patch1000: openafs-scripts.patch 263 Patch1003: openafs-systemd-csdb.patch 264 %define _default_patch_fuzz 2 265 261 266 # http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/... 262 267 Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2 263 268 Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2 … … 337 342 %if %{build_userspace} 338 343 339 344 %package client 345 Provides: scripts-openafs-client 340 346 Requires: binutils, openafs = %{version} 341 347 %if 0%{?fedora} >= 15 || 0%{?rhel} >= 7 342 348 Requires: systemd-units … … 388 394 %package -n dkms-%{name} 389 395 Summary: DKMS-ready kernel source for AFS distributed filesystem 390 396 Group: Development/Kernel 397 Provides: scripts-dkms-%{name} 391 398 Provides: openafs-kernel = %{version} 392 399 %if %{fedorakmod} 393 400 Provides: %{name}-kmod = %{version} … … 409 416 410 417 %if %{build_authlibs} 411 418 %package authlibs 419 Provides: scripts-openafs-authlibs 412 420 Summary: OpenAFS authentication shared libraries 413 421 Group: Networking/Filesystems 414 422 … … 425 433 %endif 426 434 427 435 %package authlibs-devel 436 Provides: scripts-openafs-authlibs-devel 428 437 %if %{build_authlibs} 429 438 Requires: openafs-authlibs = %{version}-%{release} 430 439 %endif … … 443 452 libraries. 444 453 445 454 %package devel 455 Provides: scripts-openafs-devel 446 456 Summary: OpenAFS Development Libraries and Headers 447 457 Group: Development/Filesystems 448 458 Requires: openafs = %{version}-%{release} … … 472 482 administrators. 473 483 474 484 %package kernel-source 485 Provides: scripts-openafs-kernel-source 475 486 Summary: OpenAFS Kernel Module source tree 476 487 Group: Networking/Filesystems 477 488 Provides: openafs-kernel = %{version} … … 521 532 522 533 %if %{krb5support} 523 534 %package krb5 535 Provides: scripts-openafs-krb5 524 536 Summary: OpenAFS programs to use with krb5 525 537 Requires: openafs = %{version} 526 538 Group: Networking/Filesystems … … 547 559 %if %{build_modules} 548 560 549 561 %if %{fedorakmod} 550 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{depmod} %{kvariants} 2>/dev/null)}562 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{depmod} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)} 551 563 552 564 %else 553 565 … … 704 716 #%setup -q -n %{srcdir} 705 717 %setup -q -b 1 -n %{srcdir} 706 718 719 # Apply the Scripts patch 720 %patch1000 -p1 -b .scripts 721 %patch1003 -p1 -b .systemd-csdb 722 707 723 ############################################################################## 708 724 # 709 725 # building … … 877 893 %endif 878 894 %endif 879 895 896 ./regen.sh 897 880 898 ./configure --with-afs-sysname=${sysname} \ 881 899 --prefix=%{_prefix} \ 882 900 --libdir=%{_libdir} \ … … 1273 1291 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so 1274 1292 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.* 1275 1293 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.* 1294 %else 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}/libafsauthent.so.* 1298 chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.* 1299 chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so 1300 chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.* 1276 1301 %endif 1277 1302 1278 1303 %endif
Note: See TracBrowser
for help on using the repository browser.