Permalink
Browse files

Add spec file for building RPMs

Signed-off-by: Martin Milata <mmilata@srck.net>
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
  • Loading branch information...
1 parent 6e23725 commit dd57f4ce2708d1acbc4c12006ee8eecc953d9bc9 @mmilata mmilata committed with dgoulet Mar 9, 2014
Showing with 57 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +13 −0 Makefile.am
  3. +1 −0 configure.ac
  4. +40 −0 irssi-otr.spec.in
View
@@ -28,3 +28,6 @@ tags
config/
!config/libotr.m4
+
+irssi-otr.spec
+rpmbuild/
View
@@ -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
View
@@ -85,6 +85,7 @@ AC_CONFIG_FILES([
Makefile
help/Makefile
src/Makefile
+ irssi-otr.spec
])
AC_OUTPUT
View
@@ -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@srck.net> - 1.0-1
+- Initial package based on Conrad Meyer's spec for irc-otr.

0 comments on commit dd57f4c

Please sign in to comment.