Hello community,

here is the log from the commit of package profanity for openSUSE:Factory 
checked in at 2016-06-19 10:49:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/profanity (Old)
 and      /work/SRC/openSUSE:Factory/.profanity.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "profanity"

Changes:
--------
--- /work/SRC/openSUSE:Factory/profanity/profanity.changes      2015-10-03 
20:30:20.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.profanity.new/profanity.changes 2016-06-19 
10:49:10.000000000 +0200
@@ -1,0 +2,7 @@
+Tue Jun 14 11:24:48 UTC 2016 - mvet...@suse.com
+
+- Split profanity in two packages:
+  standard - the default with all features enabled
+  mini - disabling notifications thus not needing X
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ profanity.spec ++++++
--- /var/tmp/diff_new_pack.OluM5g/_old  2016-06-19 10:49:10.000000000 +0200
+++ /var/tmp/diff_new_pack.OluM5g/_new  2016-06-19 10:49:10.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package profanity
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -39,9 +39,38 @@
 BuildRequires:  readline-devel
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
+Requires:       profanity-binary = %{version}
+
 %description
 Profanity is a console based XMPP client written in C using ncurses and 
libstrophe, inspired by Irssi.
 
+%package mini
+Provides:       profanity-binary = %{version}-%{release}
+Requires:       profanity = %{version}
+Requires(post): update-alternatives
+Requires(preun): update-alternatives
+#
+Summary:        Console based XMPP client
+Group:          Productivity/Networking/Instant Messenger
+
+%description mini
+Profanity is a console based XMPP client written in C using ncurses and 
libstrophe, inspired by Irssi.
+This package holds the version without desktop notifications support. It is 
well suited for headless servers.
+
+%package standard
+Provides:       profanity-binary = %{version}-%{release}
+Requires:       profanity = %{version}
+Requires(post): update-alternatives
+Requires(preun): update-alternatives
+#
+Summary:        Console based XMPP client
+Group:          Productivity/Networking/Instant Messenger
+
+%description standard
+Profanity is a console based XMPP client written in C using ncurses and 
libstrophe, inspired by Irssi.
+
+This package holds the standard version with desktop notifications support.
+
 %prep
 %setup -q
 
@@ -57,12 +86,60 @@
 %install
 make DESTDIR=%{buildroot} install %{?_smp_mflags}
 
+mv %{buildroot}%{_bindir}/profanity{,-standard}
+
+make clean
+
+%configure \
+       --disable-notifications \
+       --enable-otr \
+       --with-themes \
+       --enable-pgp
+make %{?_smp_mflags}
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
+
+mv %{buildroot}%{_bindir}/profanity{,-mini}
+
+# u-a handling
+mkdir -p %{buildroot}/etc/alternatives/
+ln -s profanity %{buildroot}/etc/alternatives/profanity
+ln -s profanity %{buildroot}%{_bindir}/profanity
+
 %files
 %defattr(-,root,root)
-%{_bindir}/profanity
 %{_mandir}/man1/profanity.1.*
 %dir %{_datadir}/profanity/themes/
 %dir %{_datadir}/profanity/
 %{_datadir}/profanity/themes/*
 
+%files mini
+%defattr(-,root,root)
+%ghost /etc/alternatives/profanity
+%ghost %{_bindir}/profanity
+%{_bindir}/profanity-mini
+
+%files standard
+%defattr(-,root,root)
+%ghost /etc/alternatives/profanity
+%ghost %{_bindir}/profanity
+%{_bindir}/profanity-standard
+
+%post mini
+/usr/sbin/update-alternatives --install \
+    %{_bindir}/profanity profanity %{_bindir}/profanity-mini 10
+
+%preun mini
+if [ "$1" = 0 ] ; then
+  /usr/sbin/update-alternatives --remove profanity %{_bindir}/profanity-mini
+fi
+
+%post standard
+/usr/sbin/update-alternatives --install \
+    %{_bindir}/profanity profanity %{_bindir}/profanity-standard 20
+
+%preun standard
+if [ "$1" = 0 ] ; then
+  /usr/sbin/update-alternatives --remove profanity 
%{_bindir}/profanity-standard
+fi
+
 %changelog


Reply via email to