File linuxdcpp-0707core.spec of Package linuxdcpp-0707core-unstable

#
# spec file for Linuxdc++ (Version 1.0.2 0707core)
#
# Copyright (c) 2008 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to the Maintainer: sda00@himki.net
#

# norootforbuild

Name:			linuxdcpp
Version:		1.0.2_0707core
Release:		279
Summary:		LinuxDC++ is a Linux port of the Direct Connect client DC++
License:		GPL
Group:			Internet/Peer to Peer
URL:            https://code.launchpad.net/~razzloss/linuxdcpp/0707-core
#Vendor:	
Source:			0707-core.tar.bz2
Source1:		%{name}.desktop.tar.bz2
#Patch:		
Obsoletes:      linuxdcpp
Packager:		sda00@himki.net
BuildRequires:	scons pkg-config bzr update-desktop-files
BuildRequires:	gcc-c++ gcc libglade2-devel libglade2
BuildRequires:	zlib  zlib-devel libbz2-1 libbz2-devel libopenssl-devel openssl
BuildRequires:	gtk2-devel gtk2 boost-devel 
#BuildRequires:	boost
# Requires:		gtk2 libglade2 openssl  libbz2-1 zlib
BuildRoot:		 %{_tmppath}/%{name}-%{version}-build

%description

LinuxDC++ is a Linux port of the Direct Connect client DC++. Though it is                                                                             
primarily aimed at Linux, it has been shown to work on other Unix-based                                                                               
operating systems as well. It is written in C++ and makes use of GTK+ for the                                                                         
user-interface. LinuxDC++ is free and open source software licensed under the                                                                         
GPL.

The latest changelog is here:
https://code.launchpad.net/~razzloss/linuxdcpp/0707-core

Have fun!

%prep

rm -rf %{buildroot}
# rm -rf "$RPM_BUILD_ROOT"

#%setup

%build
%install

if  [ "`ping enlightenment.org -c 10 2>&1 | grep icmp_seq`" != "" ] ; then
bzr branch lp:~linuxdcpp-team/linuxdcpp/0707-core
else
tar xfm  $RPM_SOURCE_DIR/0707-core.tar.bz2
fi

cd 0707-core
CCFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" scons PREFIX=%{_prefix} release="true"
mkdir -p $RPM_BUILD_ROOT%{_prefix}
scons PREFIX=$RPM_BUILD_ROOT%{_prefix} install
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/linuxdcpp
%__install -D -m 0644 pixmaps/linuxdcpp.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/linuxdcpp.png

mkdir -p  $RPM_BUILD_ROOT%{_datadir}/applications
cd  $RPM_BUILD_ROOT%{_datadir}/applications/

tar xfm $RPM_SOURCE_DIR/%{name}.desktop.tar.bz2

%suse_update_desktop_file   %{name}  Network FileTransfer

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
## %doc Changelog.txt Credits.txt License.txt Readme.txt
%{_bindir}/linuxdcpp
%dir %{_datadir}/linuxdcpp
%dir %{_datadir}/linuxdcpp/glade
%dir %{_datadir}/linuxdcpp/pixmaps
%{_datadir}/linuxdcpp/glade/*.glade
%{_datadir}/linuxdcpp/pixmaps/*.png
%{_datadir}/pixmaps/*.png
%{_datadir}/applications/*.desktop


%changelog
* Thu Dec 11 2008 merged with Project home_MunkOil
- added online rebuild capability
* Mon Dec 08 2008 first build
- first build for openSUSE by SOAD
* Tue Dec 25 2007 was released linuxdc++ 1.0.1
Packed by sda00@himki.net

openSUSE Build Service is sponsored by