LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File jbidwatcher.spec of Package jbidwatcher (Project home:dstoecker)

#
# spec file for package jbidwatcher
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           jbidwatcher
Version:        2.99pre5
Release:        0
Url:            http://www.jbidwatcher.com/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  coreutils
BuildRequires:  unzip
BuildArch:      noarch
Source:         JBidwatcher-%{version}.tar.bz2
Source3:        %{name}.desktop
Source4:        %{name}.xpm
Requires:       java >= 1.8
Summary:        Bidding, sniping and monitoring software for eBay
License:        CC-BY-NC-SA-2.0
Group:          Productivity/Networking/Web/Utilities

%description
JBidWatcher is a Java-based application allowing you to monitor auctions
you're not part of, submit bids, snipe (bid at the last moment), and otherwise
track your auction-site experience.

It includes adult-auction management, MANY currencies (pound, dollar (US,
Canada, Australian, and New Taiwanese) and euro, presently), drag-and-drop of
auction URLs, an original, unique and powerful 'multisniping' feature, and a
relatively nice UI.

%prep
%setup -n JBidwatcher -q

%build

%install
install -d 755 %{buildroot}%{_javadir}
install -d 755 %{buildroot}%{_javadir}/%{name}
cp -rp lib app %{buildroot}%{_javadir}/%{name}
mkdir -p %{buildroot}%{_bindir}
echo -e '#!/bin/sh\n\ncd %{_javadir}/%{name}\njava -cp lib/annotations.jar:lib/aopalliance.jar:lib/appbundler-1.0ea.jar:lib/apple.jar:lib/derby.jar:lib/guice-3.0.jar:lib/guice-assistedinject-3.0.jar:lib/jDeskMetrics.jar:lib/javax.inject.jar:lib/jdesktop.jar:lib/jl1.0.1.jar:lib/jline-2.11.jar:lib/jruby-incomplete.jar:lib/json_simple-1.1.jar:lib/jsoup-1.7.1.jar:lib/jsr305-1.3.9.jar:lib/l2fprod-common-fontchooser.jar:lib/mahalo.jar:lib/mysql-connector-java-5.1.7-bin.jar:lib/readline.jar:lib/txtmark.jar:lib/jbidwatcher:app/JBidwatcher.jar com.jbidwatcher.app.JBidWatch
' >%{buildroot}%{_bindir}/%{name}
chmod +x %{buildroot}%{_bindir}/%{name}
install -d 755 %{buildroot}%{_datadir}/applications
install -m 644 %SOURCE3 %{buildroot}%{_datadir}/applications/%{name}.desktop
install -d 755 %{buildroot}%{_datadir}/pixmaps
install -m 644 %SOURCE4 %{buildroot}%{_datadir}/pixmaps/%{name}.xpm

%files
%defattr(0644,root,root,0755)
%{_javadir}/%{name}
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/applications/*
%{_datadir}/pixmaps/*

%changelog