[libcommuni] Initial import

Jan Kaluža jkaluza at fedoraproject.org
Mon Oct 8 06:40:42 UTC 2012


commit 857d31aa90f716ac2742df23e54d4c25fba39685
Author: Jan Kaluza <hanzz.k at gmail.com>
Date:   Mon Oct 8 08:40:29 2012 +0200

    Initial import

 .gitignore      |    1 +
 communi.desktop |   12 ++++++
 libcommuni.spec |  109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 4 files changed, 123 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0fbd08e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/communi-1.1.2.tar.gz
diff --git a/communi.desktop b/communi.desktop
new file mode 100644
index 0000000..78b659a
--- /dev/null
+++ b/communi.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Terminal=false
+Name=Communi
+Icon=communi
+Exec=/usr/bin/communi
+GenericName=IRC client
+Categories=Network;IRCClient;Qt;
+X-KDE-StartupNotify=true
+X-Window-Icon=communi
+X-Osso-Type=application/x-executable
diff --git a/libcommuni.spec b/libcommuni.spec
new file mode 100644
index 0000000..a66a08f
--- /dev/null
+++ b/libcommuni.spec
@@ -0,0 +1,109 @@
+%global tardirname communi-communi-939dc37
+
+Name:           libcommuni
+Version:        1.1.2
+Release:        1%{?dist}
+Summary:        Cross-platform IRC client library written with Qt 4
+Group:          System Environment/Libraries
+License:        LGPLv2+
+URL:            http://communi.github.com
+# After updating source, update tardirname too.
+Source0:        http://github.com/communi/communi/tarball/v%{version}/communi-%{version}.tar.gz
+Source1:        communi.desktop
+%if 0%{?rhel} > 0 && 0%{?rhel} <= 6
+BuildRequires:  qt4-devel
+%else
+BuildRequires:  qt-devel
+%endif
+BuildRequires:  libicu-devel
+BuildRequires:  desktop-file-utils
+Obsoletes: libircclient-qt < 0.5.0-5
+
+%description
+Communi is a cross-platform IRC client library written with Qt 4.
+
+%package devel
+Summary:        Cross-platform IRC client library written with Qt 4 (development files)
+Group:          Development/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+Obsoletes: libircclient-qt-devel < 0.5.0-5
+
+%description devel
+Communi is a cross-platform IRC client library written with Qt 4.
+
+# For communi package, Qt is too old on <=RHEL6
+%if 0%{?rhel} > 6 || 0%{?fedora} > 15
+
+%package -n communi
+Summary:        Cross-platform IRC client library written with Qt 4 (development files)
+Group:          Development/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+Obsoletes: libircclient-qt-devel < 0.5.0-5
+
+%description -n communi
+Communi is a cross-platform IRC client library written with Qt 4.
+
+%endif
+
+%prep
+%setup -q -n %{tardirname}
+
+%build
+# examples don't build with older Qt versions.
+%if 0%{?rhel} > 6 || 0%{?fedora} > 15
+qmake-qt4 -config verbose -config no_rpath
+%else
+qmake-qt4 -config verbose -config no_examples -config no_rpath
+%endif
+
+make %{_smp_mflags}
+
+%check
+# qmake-qt4 does not generate 'make check' on epel6
+LD_LIBRARY_PATH=./lib ./tests/auto/ircdecoder/ircdecoder
+LD_LIBRARY_PATH=./lib ./tests/auto/ircsender/ircsender
+LD_LIBRARY_PATH=./lib ./tests/auto/ircparser/ircparser
+LD_LIBRARY_PATH=./lib ./tests/auto/ircsession/ircsession
+LD_LIBRARY_PATH=./lib ./tests/auto/irccommand/irccommand
+LD_LIBRARY_PATH=./lib ./tests/auto/ircmessage/ircmessage
+
+%install
+make INSTALL_ROOT=%{buildroot} install
+# Remove communi.desktop installed by make, because it must be installed
+# using desktop-file-install
+rm -f %{buildroot}%{_datadir}/applications/communi.desktop
+desktop-file-install \
+--dir=%{buildroot}%{_datadir}/applications \
+%{SOURCE1}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING AUTHORS README CHANGELOG
+%{_libdir}/libCommuni.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%doc doc/
+%{_includedir}/Communi/
+%{_libdir}/libCommuni.so
+%{_libdir}/qt4/mkspecs/features/communi-config.prf
+%{_libdir}/qt4/mkspecs/features/communi.prf
+%if 0%{?fedora} || 0%{?rhel} >= 7
+%{_libdir}/qt4/imports/Communi/
+%endif
+
+%if 0%{?rhel} > 6 || 0%{?fedora} > 15
+%files -n communi
+%doc doc/
+%{_bindir}/communi
+%{_datadir}/applications/communi.desktop
+%{_datadir}/pixmaps/communi.png
+%endif
+
+%changelog
+* Wed Sep 05 2012 Jan Kaluza <jkaluza at redhat.com> - 1.1.2-1
+- Initial Fedora packaging
diff --git a/sources b/sources
index e69de29..4ea372e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2a2354de40de9fa322304df32113ea7f  communi-1.1.2.tar.gz


More information about the scm-commits mailing list