File iptux.spec of Package iptux

Name:		iptux
Version:	0.7.6
Release:	1%{?dist}
Summary:	A software for sharing in LAN
Summary(zh_CN):	一款局域网即时通讯与文件分享软件
License:	GPL-2.0-or-later
URL:		https://github.com/iptux-src/iptux
Source:		https://github.com/iptux-src/iptux/archive/v%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	gstreamer-devel
BuildRequires:	gtest
BuildRequires:	gtk2-devel
BuildRequires:	jsoncpp-devel
BuildRequires:	gcc
BuildRequires:	gcc-c++ 
%if 0%{?suse_version}
Group:		Productivity/Networking/Talk/Clients
BuildRequires:	dbus-1-devel , gconf2-devel , update-desktop-files
%else
Group:		Applications/Internet
BuildRequires:	dbus-devel , GConf2-devel
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}

%description
A software for sharing and transporting files and directories in LAN. It is written by C++ and the skin is designed by Gtk. Iptux is based on ipmsg, so you can use it send files to a Windows PC which has an ipmsg Windows edition in LAN.

%description -l zh_CN
Iptux 是一款采用 GTK+ 编写的开源局域网即时通讯与文件分享软件,兼容 Windows 平台下的飞鸽传书协议,具有自动识别编码字符集的功能。另外还实现文件夹共享的功能,更加方便局域网好友之间的数据分享。

%prep
%setup -q -n %{name}-%{version}

%build
%cmake
%cmake_build

%install
%cmake_install
%find_lang %{name}
%if 0%{?suse_version}
%suse_update_desktop_file iptux InstantMessaging
%endif

%clean
rm -rf $RPM_BUILD_ROOT


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc ChangeLog
%{_bindir}/%{name}
%{_datadir}/iptux
%{_datadir}/applications/iptux.desktop
%{_datadir}/icons/hicolor/*/apps/iptux*.png


%changelog
* Tue Mar 08 2014 绿色圣光 <lishaohui.qd@163.com> 0.6.2-1
- Update to 0.6.2

* Sun Dec 29 2013 绿色圣光 <lishaohui.qd@163.com> 0.6.1-1
- Update to 0.6.1

* Sun Aug 18 2013 绿色圣光 <lishaohui.qd@163.com> 0.6.0-1
- Update to 0.6.0

* Thu Dec 22 2011 绿色圣光 <lishaohui.qd@163.com> 0.5.3-1
- Update to 0.5.3

* Thu Sep 08 2011 绿色圣光 <lishaohui.qd@163.com> 0.5.2-1
- Update to 0.5.2

* Sun Dec 19 2010 绿色圣光 <lishaohui.qd@163.com> 0.5.1-3
- Isolate ihateiptux

* Mon Aug 02 2010 绿色圣光 <lishaohui.qd@163.com> 0.5.1-2
- Patch it

* Sun Aug 01 2010 绿色圣光 <lishaohui.qd@163.com> 0.5.1-1
- Build it
openSUSE Build Service is sponsored by