pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-users] [ANNOUNCE] Pan release 0.161


From: Brian Morrison
Subject: Re: [Pan-users] [ANNOUNCE] Pan release 0.161
Date: Fri, 25 Oct 2024 19:16:28 +0100

On Fri, 25 Oct 2024 12:54:34 +0200
Dominique Dumont <domi.dumont@free.fr> wrote:

> On Thursday, 24 October 2024 23:02:13 CEST Brian Morrison via
> Pan-users wrote:
> > OK, so in the Fedora packages, the icons are put in
> > /usr/share/pan/icons so what is the easiest way to fix this up?  
> 
> How did you build and install pan ? (what options on the command line
> ?) .

Using rpmbuild and the following spec file


Summary:        A Usenet newsreader for GNOME/GTK+
Name:           pan
Version:        v0.161
Release:        0.1%{?dist}
Epoch:          1
License:        GPLv2
Source0:        
https://gitlab.gnome.org/GNOME/pan/-/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:         pan-v0.159.patch
URL:            https://gitlab.gnome.org/GNOME/pan

BuildRequires:  make
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  desktop-file-utils
BuildRequires:  gettext-devel
BuildRequires:  intltool
BuildRequires:  glib2-devel  >= 2.40.0
BuildRequires:  gmime30-devel >= 3.2.0
BuildRequires:  gnutls-devel >= 3.8
BuildRequires:  gtk3-devel  >= 3.20.0
BuildRequires:  gtkspell3-devel >= 3.0.2
BuildRequires:  enchant-devel >= 1.6.0
BuildRequires:  libappstream-glib
BuildRequires:  libnotify-devel >= 0.4.1
BuildRequires:  libgnome-keyring-devel >= 3.2.0
BuildRequires:  libassuan-devel >= 2.5
BuildRequires:  itstool
BuildRequires:  yelp-tools
# In the past, we could not link GPLv2-only Pan with GnuTLS due to libgnutls 
being effectively LGPLv3+
# However, the GnuTLS libs are now clearly LGPLv2+, which is compatible.
BuildRequires:  gnutls-devel

Requires:       gtk3 >= 3.24
Requires:       gmime30 >= 3.2
Requires:       gnutls >= 3.8

%description
Pan is a Usenet newsreader which attempts to be pleasant to
new and advanced users alike. It has all the standard
newsreaders features and also supports offline reading,
scoring and killfiles, yEnc, NZB, PGP handling, multiple
servers, and secure connections. It is also the only Unix
newsreader to get a perfect score on the Good Net-Keeping
Seal of Approval evaluations.

%prep
%autosetup

sed -i -e 's|StartupNotify=false|StartupNotify=true|' 
org.gnome.%{name}.desktop.in

%build
mkdir -p std-build
cmake -B std-build
cmake --build std-build -j 8

%install
cmake --install std-build --prefix %{buildroot}

%find_lang %{name} --with-gnome

%check
appstream-util validate-relax --nonet 
%{buildroot}%{_datadir}/metainfo/org.gnome.%{name}.metainfo.xml

desktop-file-validate 
%{buildroot}%{_datadir}/applications/org.gnome.%{name}.desktop

%files -f %{name}.lang
%doc AUTHORS NEWS
%license COPYING COPYING-DOCS
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/*/apps/org.gnome.pan.png
%{_datadir}/pan/icons/*png
%{_datadir}/metainfo/org.gnome.%{name}.metainfo.xml
%{_datadir}/applications/org.gnome.%{name}.desktop
%{_datadir}/dbus-1/services/org.gnome.%{name}.service
%{_mandir}/man1/pan.1*

the patch applied is this:


$ cat ~/rpmbuild/SOURCES/pan-v0.161/pan-v0.159.patch 
diff -ruN pan-v0.159-ori/CMakeLists.txt pan-v0.159/CMakeLists.txt
--- pan-v0.159-ori/CMakeLists.txt       2024-06-05 17:32:57.000000000 +0200
+++ pan-v0.159/CMakeLists.txt   2024-06-12 14:42:36.488664257 +0200
@@ -31,6 +31,11 @@
 include(GNUInstallDirs)
 set(PACKAGE "pan")
 
+set(CMAKE_INSTALL_DATAROOTDIR "usr/share")
+set(CMAKE_INSTALL_BINDIR "usr/bin")
+set(CMAKE_INSTALL_MANDIR "usr/share/man")
+set(CMAKE_INSTALL_LOCALEDIR "usr/share/locale")
+
 set(PACKAGE_BUGREPORT "https://gitlab.gnome.org/GNOME/pan/issues";)
 
 # see https://gitlab.gnome.org/GNOME/pan/-/issues/175


-- 

Brian Morrison

                "I am not young enough to know everything"
                                                          Oscar Wilde



reply via email to

[Prev in Thread] Current Thread [Next in Thread]