public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Lubomir Rintel <lkundrak@v3.sk>
To: git-commits@fedoraproject.org
Subject: [rpms/afpfs-ng] epel10: Attempt at saner SPEC file formatting
Date: Fri, 06 Nov 2026 15:36:54 GMT	[thread overview]
Message-ID: <179397941498.1.13217187754721457375.rpms-afpfs-ng-106289b4b183@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/afpfs-ng
            Branch : epel10
            Commit : 106289b4b183e8a26c2aaa6a2cfddff8cd71b901
            Author : Lubomir Rintel <lkundrak@v3.sk>
            Date   : 2013-10-24T11:39:53+02:00
            Stats  : +7/-13 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/afpfs-ng/c/106289b4b183e8a26c2aaa6a2cfddff8cd71b901?branch=epel10

            Log:
            Attempt at saner SPEC file formatting

I'm doing this semi-automatically across all packages I maintain, since some
are several years old and since then several have suffered bit-rot and such.
I'm fixing up the following:

- Old RPM relics (such as %defattr, BuildRoot or %clean sections)
- Whitespace errors (such as trailing spaces)
- Consistent use of %{buildroot}
- Dropping useless %{name} expansions that harm legibility
- Consistent spacing between RPM sections
- Bad days in %changelogs

---
diff --git a/afpfs-ng.spec b/afpfs-ng.spec
index 3bdd838..c59a17e 100644
--- a/afpfs-ng.spec
+++ b/afpfs-ng.spec
@@ -5,7 +5,7 @@
 
 Name:           afpfs-ng
 Version:        0.8.1
-Release:        12%{?dist}.3
+Release:        13%{?dist}.3
 Summary:        Apple Filing Protocol client
 
 Group:          System Environment/Base
@@ -14,7 +14,6 @@ URL:            http://alexthepuffin.googlepages.com/home
 Source0:        http://downloads.sourceforge.net/afpfs-ng/%{name}-%{version}.tar.bz2
 Patch0:         afpfs-ng-0.8.1-overflows.patch
 Patch1:         afpfs-ng-0.8.1-pointer.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %{?!_without_fuse:BuildRequires: fuse-devel}
 BuildRequires: libgcrypt-devel gmp-devel readline-devel
@@ -64,18 +63,12 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_includedir}/afpfs-ng
-cp -p include/* $RPM_BUILD_ROOT%{_includedir}/afpfs-ng
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=%{buildroot}
+install -d %{buildroot}%{_includedir}/afpfs-ng
+cp -p include/* %{buildroot}%{_includedir}/afpfs-ng
 
 
 %files
-%defattr(-,root,root,-)
 %{_bindir}/afpcmd
 %{_bindir}/afpgetstatus
 %{_mandir}/man1/afpcmd.1*
@@ -87,7 +80,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %if %{?!_without_fuse:1}0
 %files -n fuse-afp
-%defattr(-,root,root,-)
 %{_bindir}/afp_client
 %{_bindir}/afpfs
 %{_bindir}/afpfsd
@@ -100,7 +92,6 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %files devel
-%defattr(-,root,root,-)
 %{_includedir}/afpfs-ng
 %{_libdir}/*.so
 
@@ -112,6 +103,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Oct 24 2013 Lubomir Rintel <lkundrak@v3.sk> - 0.8.1-13.3
+- Bulk sad and useless attempt at consistent SPEC file formatting
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-12.3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 

                 reply	other threads:[~2026-11-06 15:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179397941498.1.13217187754721457375.rpms-afpfs-ng-106289b4b183@fedoraproject.org \
    --to=lkundrak@v3.sk \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox