From b89f5da2c70655b92449e303df587441747f80ba Mon Sep 17 00:00:00 2001 From: Florent Peterschmitt Date: Wed, 5 Jun 2013 11:28:53 +0200 Subject: [PATCH] deb packaging files (tested on debian unstable) and rpm spec file --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 11 +++++++++++ debian/rules | 8 ++++++++ debian/source/format | 1 + profanity.spec | 41 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 67 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 profanity.spec diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..db8e00d4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +profanity (0.2.1) UNRELEASED; urgency=low + + * Initial release. (Closes: #XXXXXX) + + -- Florent Peterschmitt Fri, 31 May 2013 10:07:08 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..45a4fb75 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..34e4ba45 --- /dev/null +++ b/debian/control @@ -0,0 +1,11 @@ +Source: profanity +Maintainer: Florent Peterschmitt +Section: misc +Priority: optional +Standards-Version: 3.9.2 +Build-Depends: debhelper (>=8), libexpat1-dev, libexpat1, libssl-dev, libncursesw5-dev, libglib2.0-dev, libglib2.0-0, libcurl4-openssl-dev + +Package: profanity +Depends: ${shlibs:Depends}, ${misc:Depends}, libexpat1, libssl1.0.0, libncursesw5, libglib2.0-0, curl +Description: Console XMPP client +Architecture: all diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..7c5462cb --- /dev/null +++ b/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_install: + $(MAKE) DESTDIR=$$(pwd)/debian/profanity prefix=/usr install + +override_dh_auto_test: diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/profanity.spec b/profanity.spec new file mode 100644 index 00000000..0c1a60e3 --- /dev/null +++ b/profanity.spec @@ -0,0 +1,41 @@ +Name: profanity +Version: 0.2.1 +Release: 2%{?dist} +Summary: A console based XMPP client + +Group: Application/System +License: GPL +URL: http://www.profanity.im/ +Source0: %{name}-%{version}.tar.gz + +BuildRequires: libstrophe-devel +BuildRequires: libcurl-devel +BuildRequires: ncurses-devel +BuildRequires: openssl-devel +BuildRequires: glib2-devel +BuildRequires: expat-devel +Requires: libstrophe +Requires: libcurl +Requires: ncurses-libs +Requires: openssl +Requires: glib2 +Requires: expat + +%description +Profanity is a console based XMPP client written in C using ncurses and libstrophe, inspired by Irssi. + +%prep +%setup -q + +%build +%configure +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} + +%files +%{_bindir}/profanity +%doc %{_datadir}/man/man1/profanity.1.gz + +%changelog