[Pkg-privacy-commits] [irssi-plugin-otr] 03/13: Add spec file for building RPMs

Antoine Beaupré anarcat at moszumanska.debian.org
Wed Mar 23 17:35:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

anarcat pushed a commit to branch debian
in repository irssi-plugin-otr.

commit dd57f4ce2708d1acbc4c12006ee8eecc953d9bc9
Author: Martin Milata <mmilata at srck.net>
Date:   Sun Mar 9 14:38:49 2014 +0100

    Add spec file for building RPMs
    
    Signed-off-by: Martin Milata <mmilata at srck.net>
    Signed-off-by: David Goulet <dgoulet at ev0ke.net>
---
 .gitignore        |  3 +++
 Makefile.am       | 13 +++++++++++++
 configure.ac      |  1 +
 irssi-otr.spec.in | 40 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 57 insertions(+)

diff --git a/.gitignore b/.gitignore
index bce7fd5..8c4d112 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,3 +28,6 @@ tags
 
 config/
 !config/libotr.m4
+
+irssi-otr.spec
+rpmbuild/
diff --git a/Makefile.am b/Makefile.am
index 82afa5b..2359f97 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,3 +6,16 @@ SUBDIRS = help \
 		  src
 
 EXTRA_DIST = README.md LICENSE ChangeLog bootstrap
+
+EXTRA_DIST += irssi-otr.spec.in
+
+RPM_DIRS = --define "_sourcedir `pwd`" \
+           --define "_rpmdir `pwd`/rpmbuild" \
+           --define "_specdir `pwd`" \
+           --define "_builddir `pwd`/rpmbuild" \
+           --define "_srcrpmdir `pwd`/rpmbuild"
+
+rpm: dist-bzip2 irssi-otr.spec
+	rpmbuild $(RPM_DIRS) -ba irssi-otr.spec
+srpm: dist-bzip2 irssi-otr.spec
+	rpmbuild $(RPM_DIRS) -bs irssi-otr.spec
diff --git a/configure.ac b/configure.ac
index 160130b..5be20de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,6 +85,7 @@ AC_CONFIG_FILES([
 	Makefile
 	help/Makefile
 	src/Makefile
+        irssi-otr.spec
 ])
 
 AC_OUTPUT
diff --git a/irssi-otr.spec.in b/irssi-otr.spec.in
new file mode 100644
index 0000000..ecb5f78
--- /dev/null
+++ b/irssi-otr.spec.in
@@ -0,0 +1,40 @@
+Name:           irssi-otr
+Version:        @PACKAGE_VERSION@
+Release:        1%{?dist}
+Summary:        Off-The-Record Messaging plugin for irssi
+Group:          Applications/Internet
+License:        GPLv2+
+URL:            https://github.com/cryptodotis/irssi-otr
+Source0:        %{name}-%{version}.tar.bz2
+
+BuildRequires:  glib2-devel >= 2.13
+BuildRequires:  irssi-devel
+BuildRequires:  libotr-devel >= 4.0.0
+BuildRequires:  pkgconfig
+Requires:       irssi
+
+%description
+This provides module which implements Off-The-Record (OTR)
+Messaging for the irssi IRC client.
+
+%prep
+%setup -q
+
+%build
+#./bootstrap
+%configure --with-irssi-module-dir=%{_libdir}/irssi/modules
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+# needed for debuginfo subpackage
+chmod +x %{buildroot}%{_libdir}/irssi/modules/libotr.so
+
+%files
+%doc README.md LICENSE ChangeLog
+%{_libdir}/irssi/modules/libotr.so
+%{_datadir}/irssi/help/otr
+
+%changelog
+* Sun Mar 09 2014 Martin Milata <mmilata at srck.net> - 1.0-1
+- Initial package based on Conrad Meyer's spec for irc-otr.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/irssi-plugin-otr.git



More information about the Pkg-privacy-commits mailing list