%define major_ver 0.6
%define minor_ver 4
%define rel 1

%define ver %{major_ver}.%{minor_ver}

Summary: a IRC client for Gtk2
Summary(ja): GTK2 を使った IRC クライアント
Name: loqui
Version: %{ver}
Release: %{rel}%{?_dist_release}
Group: Applications/Internet
Source0: http://launchpad.net/loqui/%{major_ver}/%{ver}/+download/%{name}-%{ver}.tar.gz
License: GPLv2
BuildRequires: gtk2-devel >= 2.4.0
BuildRequires: glib2-devel >= 2.22.0
BuildRequires: gob2
URL: https://sites.google.com/site/loquiirc
BuildRoot: %{_tmppath}/%{name}-root 
Requires(post,postun): desktop-file-utils
BuildRequires: desktop-file-utils

%description
Loqui is a 4-paned IRC client, which supports multiple servers.

%description -l ja
Loqui は、複数のサーバへの接続に対応した 4-ペインの IRC クライアントです。

%prep
rm -rf %{buildroot}
%setup -q

%build
%configure
make desktopdir=%{_datadir}/applications

%install
rm -rf %{buildroot}
%makeinstall desktopdir=%{buildroot}%{_datadir}/applications
%{find_lang} %{name}

%check
make check
desktop-file-validate %{buildroot}%{_datadir}/applications/loqui.desktop

%clean
rm -rf %{buildroot}

%post
update-desktop-database %{_datadir}/applications

%postun
update-desktop-database %{_datadir}/applications

%files -f %{name}.lang
%defattr (-,root,root)
%doc README COPYING* LICENSE INSTALL ChangeLog AUTHORS NEWS NEWS.ja
%{_bindir}/loqui
%{_datadir}/pixmaps/loqui.png
%{_datadir}/applications/loqui.desktop


%changelog
* Mon Feb  6 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 0.6.4-1
- update to 0.6.4
- add LICENSE in doc

* Mon Dec 30 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 0.5.5-1
- update to 0.5.5

* Mon Jan 28 2013 IWAI, Masaharu <iwai@alib.jp> 0.5.4-1
- new upstream release

* Sun Jul 22 2012 IWAI, Masaharu <iwai@alib.jp> 0.5.3-1
- new upstream release
- add NEWS.ja in %%doc

* Sat Feb  5 2011 IWAI, Masaharu <iwai@alib.jp> 0.5.1-1
- new upstream release
- drop HTTP URL patch (patch0): upstream merged
- update BuildRequires: update upstream's dependency programs
 - drop gnet2-devel
 - add glib2-devel >= 2.22.0
- drop Requires: gnet2

* Sat Jan  8 2011 IWAI, Masaharu <iwai@alib.jp> 0.5.0-2
- add HTTP URL patch (patch0)

* Sun Dec 12 2010 IWAI, Masaharu <iwai@alib.jp> 0.5.0-1
- new upstream release
- update URL: upstream moved
- update Source0 URL: upstream moved
- add BuildRequires: gob2
- drop unnecessary patches:
 - default application patch (Patch0)
 - desktopfile patch (Patch1)
- update License value: sync Vine policy
- replace PreReq tag to Requires tag

* Tue Dec 07 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.4-5
- rebuilt with new environment

* Mon Apr 13 2009 IWAI, Masaharu <iwai@alib.jp> 0.4.4-4
- fix changelog 0.4.4-4: update installed patch -> update installed path

* Sun Mar  8 2009 IWAI, Masaharu <iwai@alib.jp> 0.4.4-3
- update loqui.desktop (Patch1)
- update installed path for loqui.desktop
- validate desktop file in %%check
  - add BuildRequires: desktop-file-utils
- update desktop database in %%post and %%postun
  - add PreReq: desktop-file-utils

* Wed Feb 18 2009 IWAI, Masaharu <iwai@alib.jp> 0.4.4-2
- using paplay for notification command in default setting (Patch0)
  - update default-browser.patch for only default web browser

* Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 0.4.4-1vl5
- applied new versioning policy, spec in utf-8

* Thu Jan 18 2007 IWAI, Masaharu <iwai@alib.jp> 0.4.4-0vl2
- add default browser patch (Patch0): firefox

* Thu Apr  6 2006 IWAI, Masaharu <iwai@alib.jp> 0.4.4-0vl1
- new upstream release

* Fri Oct 22 2004 IWAI, Masaharu <iwai@alib.jp> 0.3.9-0vl2
- add Japanese summary and description

* Wed Sep 22 2004 IWAI, Masaharu <iwai@alib.jp> 0.3.9-0vl1
- new upstream release

* Wed Sep  1 2004 IWAI, Masaharu <iwai@alib.jp> 0.3.8-0vl1
- new upstream release

* Fri Jul  2 2004 IWAI, Masaharu <iwai@alib.jp> 0.3.7-0vl1
- new upstream release

* Sun May 30 2004 IWAI, Masaharu <iwai@alib.jp> 0.3.5-0vl1
- new upstream release

* Wed May  5 2004 IWAI, Masaharu <iwai@alib.jp> 0.3.3-0vl1
- new upstream release

* Sun May  2 2004 IWAI, Masaharu <iwai@alib.jp> 0.3.2-0vl1
- new upstream release

* Tue Apr 20 2004 IWAI, Masaharu <iwai@alib.jp> 0.3.1-0vl1
- new upstream release
- add loqui.png and loqui.desktop in %%files
- add COPYING.LIB in %%doc directory

* Sun Mar  7 2004 IWAI, Masaharu <iwai@alib.jp> 0.2.5-0vl1
- new upstream release

* Fri Feb 27 2004 IWAI, Masaharu <iwai@alib.jp> 0.2.4-0vl1
- new upstream release

* Mon Feb  9 2004 IWAI, Masaharu <iwai@alib.jp> 0.2.3-0vl1
- new upstream release

* Sun Jan 25 2004 IWAI, Masaharu <iwai@alib.jp> 0.2.2-0vl1
- new upstream release

* Wed Jan 21 2004 IWAI, Masaharu <iwai@alib.jp> 0.2.1-0vl1
- build for VineSeed Plus

* Sat Jun 7 2003 Yoichi Imai <yoichi@silver-forest.com>
- created spec.in
