public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/afpfs-ng] epel10: modernize spec, push the bugfix to supported branches
@ 2026-11-06 15:37 Michal Ambroz
  0 siblings, 0 replies; only message in thread
From: Michal Ambroz @ 2026-11-06 15:37 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/afpfs-ng
Branch : epel10
Commit : fc26fc345670f0659702f0514659ac4c85773728
Author : Michal Ambroz <rebus@seznam.cz>
Date   : 2021-04-26T23:49:39+02:00
Stats  : +26/-23 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/afpfs-ng/c/fc26fc345670f0659702f0514659ac4c85773728?branch=epel10

Log:
modernize spec, push the bugfix to supported branches

---
diff --git a/afpfs-ng.spec b/afpfs-ng.spec
index 0aa244f..a40426d 100644
--- a/afpfs-ng.spec
+++ b/afpfs-ng.spec
@@ -1,13 +1,13 @@
-# No FUSE on RHEL5
-%if %{?el5:1}0
-%define _without_fuse 1
-%endif
-
 Name:           afpfs-ng
 Version:        0.8.1
-Release:        34%{?dist}
+Release:        35%{?dist}
 Summary:        Apple Filing Protocol client
 
+# by default build with the fuse module
+# rpmbuild --rebuild afpfs-ng.src.rpm --without fuse
+%bcond_without     fuse
+
+
 License:        GPL+
 URL:            http://alexthepuffin.googlepages.com/home
 Source0:        http://downloads.sourceforge.net/afpfs-ng/%{name}-%{version}.tar.bz2
@@ -17,7 +17,7 @@ Patch1:         afpfs-ng-0.8.1-pointer.patch
 Patch2:         afpfs-ng-0.8.1-formatsec.patch
 Patch3:         afpfs-ng-0.8.1-longoptions.patch
 
-%{?!_without_fuse:BuildRequires: fuse-devel}
+%{?with_fuse:BuildRequires: fuse-devel}
 BuildRequires:  gcc
 BuildRequires: libgcrypt-devel gmp-devel readline-devel
 BuildRequires: make
@@ -25,10 +25,10 @@ BuildRequires: make
 %description
 A command line client to access files exported from Mac OS system via
 Apple Filing Protocol.
-%{?!_without_fuse:The FUSE filesystem module for AFP is in fuse-afp package}
+%{?with_fuse:The FUSE filesystem module for AFP is in fuse-afp package}
 
 
-%if %{?!_without_fuse:1}0
+%if 0%{?with_fuse}
 %package -n fuse-afp
 Summary:        FUSE driver for AFP filesystem
 
@@ -48,11 +48,7 @@ Library for dynamic linking and header files of afpfs-ng.
 
 
 %prep
-%setup -q
-%patch0 -p1 -b .overflows
-%patch1 -p1 -b .pointer
-%patch2 -p1 -b .formatsec
-%patch3 -p1 -b .longoptions
+%autosetup -p 1
 
 
 %build
@@ -63,7 +59,7 @@ Library for dynamic linking and header files of afpfs-ng.
 touch --reference aclocal.m4 configure.ac Makefile.in
 
 export CFLAGS="${RPM_OPT_FLAGS} -fcommon" 
-%configure %{?_without_fuse:--disable-fuse} --disable-static
+%configure %{?!with_fuse:--disable-fuse} --disable-static
 make %{?_smp_mflags}
 
 
@@ -73,18 +69,25 @@ install -d %{buildroot}%{_includedir}/afpfs-ng
 cp -p include/* %{buildroot}%{_includedir}/afpfs-ng
 
 
+%if ( 0%{?rhel} && 0%{?rhel} <= 7 )
+%ldconfig_scriptlets
+%endif
+
+
 %files
+%license COPYING
 %{_bindir}/afpcmd
 %{_bindir}/afpgetstatus
 %{_mandir}/man1/afpcmd.1*
 %{_mandir}/man1/afpgetstatus.1*
-%{_libdir}/*.so.*
+%{_libdir}/libafpclient.so.*
 %exclude %{_libdir}/*.la
-%doc COPYING AUTHORS ChangeLog docs/README docs/performance docs/FEATURES.txt docs/REPORTING-BUGS.txt
+%doc AUTHORS ChangeLog docs/README docs/performance docs/FEATURES.txt docs/REPORTING-BUGS.txt
 
 
-%if %{?!_without_fuse:1}0
+%if 0%{?with_fuse}
 %files -n fuse-afp
+%license COPYING
 %{_bindir}/afp_client
 %{_bindir}/afpfs
 %{_bindir}/afpfsd
@@ -92,7 +95,7 @@ cp -p include/* %{buildroot}%{_includedir}/afpfs-ng
 %{_mandir}/man1/afp_client.1*
 %{_mandir}/man1/afpfsd.1*
 %{_mandir}/man1/mount_afp.1*
-%doc COPYING AUTHORS ChangeLog
+%doc AUTHORS ChangeLog
 %endif
 
 
@@ -101,11 +104,11 @@ cp -p include/* %{buildroot}%{_includedir}/afpfs-ng
 %{_libdir}/*.so
 
 
-%ldconfig_scriptlets
-
-
 %changelog
-* Fri Mar 12 2021 Michal Ambroz <rebus _AT seznam.cz> - 0.8.1-340
+* Mon Apr 26 2021 Michal Ambroz <rebus _AT seznam.cz> - 0.8.1-35
+- modernize spec, push the bugfix to active branches
+
+* Fri Mar 12 2021 Michal Ambroz <rebus _AT seznam.cz> - 0.8.1-34
 - fix issue 1507944
 
 * Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-33

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-06 15:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06 15:37 [rpms/afpfs-ng] epel10: modernize spec, push the bugfix to supported branches Michal Ambroz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox