public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Miroslav Lichvar <mlichvar@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/slrn] epel10: - spec cleanup
Date: Wed, 14 Oct 2026 13:16:20 GMT	[thread overview]
Message-ID: <179198378035.1.1908062197629580924.rpms-slrn-60b2aae4a98d@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/slrn
            Branch : epel10
            Commit : 60b2aae4a98de02f39c2ba067c04a4d28796cef1
            Author : Miroslav Lichvar <mlichvar@fedoraproject.org>
            Date   : 2007-02-22T16:58:52+00:00
            Stats  : +55/-39 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/slrn/c/60b2aae4a98de02f39c2ba067c04a4d28796cef1?branch=epel10

            Log:
            - spec cleanup
- fix author search (#229597) Resolves: #229597

---
diff --git a/slrn-0.9.8.1pl1-asearch.patch b/slrn-0.9.8.1pl1-asearch.patch
new file mode 100644
index 0000000..cff5b07
--- /dev/null
+++ b/slrn-0.9.8.1pl1-asearch.patch
@@ -0,0 +1,19 @@
+Index: slrn/src/art.c
+===================================================================
+RCS file: /cvsroot/slrn/slrn/src/art.c,v
+retrieving revision 1.71
+retrieving revision 1.72
+diff -u -r1.71 -r1.72
+--- slrn/src/art.c	29 Jan 2005 01:23:17 -0000	1.71
++++ slrn/src/art.c	21 Mar 2005 11:44:18 -0000	1.72
+@@ -5064,8 +5064,8 @@
+ 				       (unsigned char *) l->from + strlen (l->from),
+ 				       &st))
+ #else
+-		 && (NULL != SLsearch_forward (st, (SLuchar_Type *) l->subject,
+-					       (SLuchar_Type *) l->subject + strlen (l->subject)))
++		 && (NULL != SLsearch_forward (st, (SLuchar_Type *) l->from,
++					       (SLuchar_Type *) l->from + strlen (l->from)))
+ #endif
+ 		     )
+ 	  break;

diff --git a/slrn.spec b/slrn.spec
index fe2507f..f3c136e 100644
--- a/slrn.spec
+++ b/slrn.spec
@@ -1,19 +1,19 @@
+Summary: A threaded Internet news reader
 Name: slrn
 Version: 0.9.8.1pl1
-Release: 1.2.2
+Release: 2%{?dist}
 License: GPL
 Group: Applications/Internet
-Source0: http://download.sourceforge.net/slrn/slrn-%{version}.tar.bz2
+Source0: slrn-%{version}.tar.bz2
 Source1: slrnpull-expire
 Source2: slrnpull.log
 Source4: README.rpm-slrnpull
 Patch0: slrn-0.9.8.0-config.patch
 Patch1: slrn-scorefile.patch
-Requires: slang >= 1.2.2
-BuildRequires: slang-devel inews openssl-devel pkgconfig /usr/sbin/sendmail
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Patch2: slrn-0.9.8.1pl1-asearch.patch
+BuildRequires: slang-devel openssl-devel /usr/sbin/sendmail
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 URL: http://slrn.sourceforge.net/
-Summary: A threaded Internet news reader.
 
 %description
 SLRN is a threaded Internet news reader. SLRN is highly customizable
@@ -22,7 +22,7 @@ articles. SLRN works well over slow network lines. A helper utility
 for reading news offline is provided in the slrn-pull package.
 
 %package pull
-Summary: Offline news reading support for the SLRN news reader.
+Summary: Offline news reading support for the SLRN news reader
 Group: Applications/Internet
 Requires: slrn = %{version}
 
@@ -36,38 +36,30 @@ the slrnpull utility.
 %setup -q
 %patch0 -p1 -b .config
 %patch1 -p1 -b .scorefile
+%patch2 -p1 -b .asearch
 
 %build
-if pkg-config openssl ; then
-	CPPFLAGS=`pkg-config --cflags openssl`; export CPPFLAGS
-	LDFLAGS=`pkg-config --libs-only-L openssl`; export LDFLAGS
-fi
-export CFLAGS="$RPM_OPT_FLAGS"
-slrn_cv_domain=no %configure --with-ssl --with-slrnpull \
+%configure --with-ssl --with-slrnpull \
  --with-ssl-includes=%{_includedir} --with-ssl-library=%{_libdir} \
  --enable-setgid-code
-make
+make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 make install DESTDIR=$RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/etc
-install -m644 doc/slrn.rc $RPM_BUILD_ROOT/etc/slrn.rc
-mkdir -p $RPM_BUILD_ROOT/usr/share/slrn/contrib
-install -m644 contrib/README* $RPM_BUILD_ROOT/usr/share/slrn/contrib
-install -m755 contrib/cleanscore contrib/slrnrc-conv $RPM_BUILD_ROOT/usr/share/slrn/contrib
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
+install -p -m644 doc/slrn.rc $RPM_BUILD_ROOT%{_sysconfdir}/slrn.rc
 
 # slrnpull stuff
-mkdir -p $RPM_BUILD_ROOT/etc/{cron.daily,logrotate.d}
-install -d $RPM_BUILD_ROOT/var/spool/slrnpull/out.going
-install doc/slrnpull/slrnpull.conf $RPM_BUILD_ROOT/var/spool/slrnpull
-install $RPM_SOURCE_DIR/slrnpull-expire $RPM_BUILD_ROOT/etc/cron.daily
-install $RPM_SOURCE_DIR/slrnpull.log $RPM_BUILD_ROOT/etc/logrotate.d/slrnpull
-cp $RPM_SOURCE_DIR/README.rpm-slrnpull doc/slrnpull/README.rpm
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{cron.daily,logrotate.d}
+install -d $RPM_BUILD_ROOT%{_var}/spool/slrnpull/out.going
+install -p doc/slrnpull/slrnpull.conf $RPM_BUILD_ROOT%{_var}/spool/slrnpull
+install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
+install -p -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/slrnpull
+install -p -m644 %{SOURCE4} doc/slrnpull/README.rpm
 
-# makes %doc simpler
-mv doc/slrnpull slrnpull-docs
+chmod 644 doc/slrnpull/* contrib/*
 
 %find_lang %{name}
 
@@ -80,24 +72,29 @@ rm -rf $RPM_BUILD_ROOT
 %files -f %{name}.lang
 %defattr(-,root,root)
 %doc COPYING COPYRIGHT changes.txt README
-%doc doc/*
-%attr(755,root,root) /usr/bin/slrn
-/usr/share/slrn
-%config(noreplace) /etc/slrn.rc
+%doc doc/FAQ doc/FIRST_STEPS doc/README.* doc/THANKS doc/*.txt doc/slrn*.html
+%doc doc/score.sl contrib
+%{_bindir}/slrn
+%{_datadir}/slrn
+%config(noreplace) %{_sysconfdir}/slrn.rc
 %{_mandir}/man1/slrn.1*
 
 %files pull
 %defattr(-,root,root)
-%doc slrnpull-docs/*
-%attr(755,root,root) /etc/cron.daily/slrnpull-expire
-%attr(644,root,root) /etc/logrotate.d/slrnpull
-%attr(2750,root,news) /usr/bin/slrnpull
-%attr(775,news,news) %dir /var/spool/slrnpull
-%attr(3777,news,news) %dir /var/spool/slrnpull/out.going
-%attr(644,news,news) %config(noreplace) /var/spool/slrnpull/slrnpull.conf
+%doc doc/slrnpull/*
+%{_sysconfdir}/cron.daily/slrnpull-expire
+%config(noreplace) %{_sysconfdir}/logrotate.d/slrnpull
+%attr(2750,root,news) %{_bindir}/slrnpull
+%attr(775,news,news) %dir %{_var}/spool/slrnpull
+%attr(3777,news,news) %dir %{_var}/spool/slrnpull/out.going
+%attr(644,news,news) %config(noreplace) %{_var}/spool/slrnpull/slrnpull.conf
 %{_mandir}/man1/slrnpull.1*
 
 %changelog
+* Thu Feb 22 2007 Miroslav Lichvar <mlichvar@redhat.com> 0.9.8.1pl1-2
+- fix author search (#229597)
+- spec cleanup
+
 * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.9.8.1pl1-1.2.2
 - rebuild
 
@@ -131,7 +128,7 @@ rm -rf $RPM_BUILD_ROOT
 
 * Mon Dec 27 2004 Jindrich Novy <jnovy@redhat.com> 0.9.8.1-3
 - package contrib subdir because of slrn-conv script (#73451)
-- slrnpull.conf is now %config(noreplace), original config
+- slrnpull.conf is now %%config(noreplace), original config
   won't be overwritten (#56001)
 - include slrnpull man page
 

                 reply	other threads:[~2026-10-14 13:16 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=179198378035.1.1908062197629580924.rpms-slrn-60b2aae4a98d@fedoraproject.org \
    --to=mlichvar@fedoraproject.org \
    --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