LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File jitsi.spec of Package jitsi (Project home:olivierkes)

#  
# spec file for package SIP Communicator  
# Thanks to lumnis (https://build.opensuse.org/project/show?project=home%3Alumnis)
# This file and all modifications and additions to the pristine  
# package are under the same license as the package itself.  
#  
#   
%define buildversion 3359 
#   
Name:           jitsi
%define name2   sip-communicator
               
Summary:        A Java VoIP and Instant Messaging client
Group:          Productivity/Networking/Instant Messenger
Version:        1.0.beta1.nightly.build.%{buildversion}
Release:        1
License:        GNU Lesser General Public License
Url:            http://jitsi.org/
# Vendor:         openSUSE-Education
# BuildArch:      noarch
Requires:       java >= 1.6.0
BuildRequires:  unzip
BuildRequires:  update-alternatives
BuildRequires:  java-devel
BuildRequires:  ant
BuildRequires:  ant-nodeps
BuildRequires:  update-desktop-files
#Source0:        %{name}-src-1.0-alpha6-nightly.build.%{buildversion}.zip
Source0:        %{name2}-src-1.0-beta1-nightly.build.%{buildversion}.zip

#Source1:        %{name2}.desktop
Source1:        jitsi.desktop

BuildRoot:      %{_tmppath}/%{name2}-%{version}-build
  
%description
Jitsi is an audio/video Internet phone and instant messenger that supports some of the most popular instant messaging and telephony protocols such as SIP, Jabber, AIM/ICQ, MSN, Yahoo! Messenger, Bonjour, IRC, RSS and soon others like IAX.
 
Jitsi is completely Open Source / Free Software, and is freely available under the terms of the GNU Lesser General Public License. 
  
Author(s):
------------
     Emil Ivov a.o.
    
%prep
%setup -q -n %{name2}
#%setup -q 
   
%build 
%ant rebuild 
    
%install 
export NO_BRP_CHECK_BYTECODE_VERSION=true
 
%__install -d -m 755 %{buildroot}%{_javadir}/%{name2} 
#%__install -m 755 %{name2}-%{version}.jar %{buildroot}%{_javadir}/sip-communicator/  
 
%__install -d -m 755 %{buildroot}%{_javadir}/sip-communicator/sc-bundles  
%__install -m 755 sc-bundles/*.jar %{buildroot}%{_javadir}/sip-communicator/sc-bundles/  
 
%__install -d -m 755 %{buildroot}%{_javadir}/sip-communicator/sc-bundles/os-specific
%__install -d -m 755 %{buildroot}%{_javadir}/sip-communicator/sc-bundles/os-specific/linux  
%__install -m 755 sc-bundles/os-specific/linux/*.jar %{buildroot}%{_javadir}/sip-communicator/sc-bundles/os-specific/linux/
 
%__install -d -m 755 %{buildroot}%{_javadir}/sip-communicator/lib
%__install -m 755 lib/*.jar %{buildroot}%{_javadir}/sip-communicator/lib/
%__install -m 755 lib/*.properties %{buildroot}%{_javadir}/sip-communicator/lib/
 
%__install -d -m 755 %{buildroot}%{_javadir}/sip-communicator/lib/os-specific/linux
%__install -m 755 lib/os-specific/linux/*.jar %{buildroot}%{_javadir}/sip-communicator/lib/os-specific/linux/
 
## arch dependend libs
%__install -d -m 755 %{buildroot}%{_libdir}
%ifarch %ix86 
#%__install -d -m 755 %{buildroot}%{_javadir}/sip-communicator/lib/native/linux
#%__install -m 755 lib/native/linux/* %{buildroot}%{_javadir}/sip-communicator/lib/native/linux/
%__install -m 755 lib/native/linux-64/* %{buildroot}%{_libdir}/
%else
#%__install -d -m 755 %{buildroot}%{_javadir}/sip-communicator/lib/native/linux
%__install -m 755 lib/native/linux/* %{buildroot}%{_libdir}/
#%__install -m 755 lib/native/linux/* %{buildroot}%{_javadir}/sip-communicator/lib/native/linux/
%endif
 
 
# startscript
cat > %{name} << EOF
#!/bin/sh
 
java -Dfelix.config.properties=file:%{_javadir}/sip-communicator/lib/felix.client.run.properties \
     -Djava.util.logging.config.file=%{_javadir}/sip-communicator/lib/logging.properties \
       org.apache.felix.main.Main
 
#java -jar %{_javadir}/%{name2}/%{name2}-%{version}.jar
 
EOF
 
%__install -d -m 755 %{buildroot}%{_bindir}
%__install -m 755 %{name} %{buildroot}%{_bindir}/
 
# Icon  
%__install -D -p -m 644 resources/install/linux/sc-logo.png %{buildroot}%{_datadir}/pixmaps/%{name2}.png
%__install -D -p -m 644 resources/images/logo/sc_logo.svg %{buildroot}%{_datadir}/pixmaps/%{name2}.svg
 
 
# Desktop menu entry  
%__install -d -m 755 %{buildroot}%{_datadir}/applications
%__install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/jitsi.desktop
#                                                                 %{name}
#%__install -m 644  resources/install/debian/sip-communicator.desktop %{buildroot}%{_datadir}/applications/jitsi.desktop  
#                       %{name}
 
%suse_update_desktop_file jitsi
#                         %{name}
 
# docs
%__install -D -p -m 644 resources/install/doc/readme.txt README
%__install -D -p -m 644 resources/install/doc/License.txt LICENSE
 
 
   
%clean 
%__rm -rf %{buildroot} 
#   
%files 
%defattr(-,root,root)  
# %doc README LICENSE CHANGELOG   
%doc README LICENSE
%{_bindir}/*
%{_libdir}/*
%dir %{_javadir}/%{name2} 
%{_javadir}/%{name2}/*
%{_datadir}/applications/jitsi.desktop  
#                        %{name}
%{_datadir}/pixmaps/%{name2}.png
%{_datadir}/pixmaps/%{name2}.svg
 
    
%changelog