public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/postsrsd] epel10: Sync with Copr work
Date: Thu, 04 Jun 2026 09:44:59 GMT	[thread overview]
Message-ID: <178056629937.1.6752086105983451894.rpms-postsrsd-c6ef2d398f4f@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/postsrsd
            Branch : epel10
            Commit : c6ef2d398f4f956e571e60801780e19df610453c
            Author : Marc Dequènes (Duck) <duck@redhat.com>
            Date   : 2020-10-07T14:00:13+09:00
            Stats  : +29/-31 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/postsrsd/c/c6ef2d398f4f956e571e60801780e19df610453c?branch=epel10

            Log:
            Sync with Copr work

Also fix broken date in changelog.

---
diff --git a/postsrsd.spec b/postsrsd.spec
index 16c8b00..3de71ee 100644
--- a/postsrsd.spec
+++ b/postsrsd.spec
@@ -1,20 +1,18 @@
-%global commitdate 20170118
-%global commit0 a77bf9940c19aca602faa41bbf987e43e51a5305
-%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
+%global build_options -DGENERATE_SRS_SECRET=OFF -DUSE_SELINUX=ON -DINIT_FLAVOR=systemd
 
+%undefine __cmake_in_source_build
 
 Name:           postsrsd
-Version:        1.4
-Release:        16.%{commitdate}git%{shortcommit0}%{?dist}
+Version:        1.6
+Release:        1%{?dist}
 Summary:        Sender Rewriting Scheme (SRS) provider
 
 License:        GPLv2+
 URL:            https://github.com/roehling/postsrsd
-#Source0:       https://github.com/roehling/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
-Source0:        https://github.com/roehling/%{name}/archive/%{commit0}/%{name}-%{commit0}.tar.gz
+Source0:        https://github.com/roehling/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
 
-BuildRequires:  gcc
 BuildRequires:     cmake
+BuildRequires:     gcc
 BuildRequires:     help2man
 BuildRequires:     selinux-policy-devel
 %{?systemd_requires}
@@ -30,17 +28,29 @@ SRS is needed if your mail server acts as forwarder.
 
 
 %prep
-%autosetup -n %{name}-%{commit0}
+%autosetup -n %{name}-%{version}
+%if (0%{?rhel} && 0%{?rhel} < 8)
 mkdir build
-cd build && %cmake .. -DGENERATE_SRS_SECRET=OFF -DUSE_SELINUX=ON
+cd build && %cmake .. %build_options
+%else
+%cmake %build_options
+%endif
 
 
 %build
+%if (0%{?rhel} && 0%{?rhel} < 8)
 %make_build -C build
+%else
+%cmake_build
+%endif
 
 
 %install
+%if (0%{?rhel} && 0%{?rhel} < 8)
 %make_install -C build
+%else
+%cmake_install
+%endif
 
 # %%ghost file requires it is present in the build root
 touch %{buildroot}/%{_sysconfdir}/postsrsd.secret
@@ -97,29 +107,17 @@ fi
 
 
 %changelog
-* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-16.20170118gita77bf99
-- Second attempt - Rebuilt for
-  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+* Tue Oct 06 2020 Marc Dequènes (Duck) <duck@redhat.com> - 1.6-1
+- NUR
+- define INIT_FLAVOR as detection does not work in build environment
+- ensure build in not done in-source
+- add gcc to BuildRequires (removing it was a mistake)
+- add compat for EL7 around cmake_* macros
 
-* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-15.20170118gita77bf99
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+* Thu Aug 13 2020 Marc Dequènes (Duck) <duck@redhat.com> - 1.4-10.20170118gita77bf99
+- migrate to new cmake macros for out-of-source builds
 
-* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-14.20170118gita77bf99
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
-
-* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-13.20170118gita77bf99
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
-
-* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-12.20170118gita77bf99
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
-
-* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-11.20170118gita77bf99
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
-
-* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-10.20170118gita77bf99
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
-
-* Thu Oct 04 2017 Marc Dequènes (Duck) <duck@redhat.com> - 1.4-9.20170118gita77bf99
+* Thu Oct 05 2017 Marc Dequènes (Duck) <duck@redhat.com> - 1.4-9.20170118gita77bf99
 - use the %%ghost feature to ensure the secret file is owned by the package
 - it is then not necessary to handle its removal in %%postun
 

                 reply	other threads:[~2026-06-04  9:44 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=178056629937.1.6752086105983451894.rpms-postsrsd-c6ef2d398f4f@fedoraproject.org \
    --to=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