LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File project-x.spec of Package project-x (Project home:archie172)

# Copyright 2012 Archie L. Cobbs.
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

%define appldir     %{_datadir}/applications
%define mainclass   net.sourceforge.dvb.projectx.common.Start

Name:           project-x
Version:        0.91.0
Release:        1
License:        GPL-2.0
Summary:        DVB demux Tool
Group:          Productivity/Multimedia/Video/Editors and Convertors
Source0:        https://downloads.sourceforge.net/project/${name}/${name}/ProjectX_%{version}.00/ProjectX_%{version}.zip
# PATCH-FIX-OPENSUSE manifest.patch
Patch1:         manifest.patch
Patch2:         ini-file.patch
# PATCH-FIX-OPENSUSE desktop.patch
Patch3:         desktop.patch
URL:            https://sourceforge.net/projects/project-x/
Buildarch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  java-devel >= 1.5.0
BuildRequires:  commons-net >= 1.3.0
BuildRequires:  oro >= 2.0.8
BuildRequires:  unzip
Requires:       commons-net >= 1.3.0
Requires:       oro >= 2.0.8
Requires:       jpackage-utils

European digital radio & television uses the DVB standard to broadcast
its data. Project-X gives you a look behind the transmissions and tries
its best to handle & repair many stream types and shows what went wrong
on reception.

At the moment, Project-X does not include support for H.264 (HD video)

%setup -q -n Project-X_%{version}
%patch1 -p0
%patch2 -p0
%patch3 -p0

mkdir build
%javac -encoding ISO-8859-1 -deprecation -O -g:none -classpath `build-classpath commons-net oro` -d build @sources.lst
cp ./resources/* ./build
%jar cfm %{name}-%{version}.jar MANIFEST.MF -C build .


# Install JAR
install -d %{buildroot}%{_javadir}
install %{name}-%{version}.jar %{buildroot}%{_javadir}/
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

# Install fallback INI file
install -d %{buildroot}%{_datadir}/%{name}
install X.ini %{buildroot}%{_datadir}/%{name}/

# Install destktop file
install -d %{buildroot}%{appldir}
install projectx.desktop %{buildroot}%{appldir}/

# Create script
MAIN_CLASS=`sed -rn 's/^Main-Class: (.*)$/\1/gp' MANIFEST.MF`
%jpackage_script "${MAIN_CLASS}" "-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true" "" %{name}:commons-net:oro %{name}

%attr(755,root,root) %{_bindir}/*