Sisyphus repositório
Última atualização: 20 abril 2021 | SRPMs: 17818 | Visitas: 20766407
en ru br
ALT Linux repositórios
S:6.7-alt3

Group :: Desenvolvimento/Java
RPM: skinlf

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: skinlf
Version: 6.7
Release: alt3
Summary: Skin look and feel Skinning library for java

Group: Development/Java
License: ASL 2.0 and zlib and ASL 1.1
Url: http://skinlf.dev.java.net/

Packager: Vitaly Kuznetsov <vitty at altlinux.ru>

Source: %name-%version-clean.tar.gz
# Original Source# Contains code that we cannot ship.
# Download the upstream tarball and invoke this script while in the
# tarball's directory
# ./skinlf-generate-tarball.sh 6.7-20060722
Source1: %name-generate-tarball.sh

BuildArch: noarch

#See http://bollin.googlecode.com/svn/libskinlf-java/trunk

#for patchset maintained by Scilab developer, Sylvestre Ledru.
# These patches have been modified.
Patch: skinlf-nosun-jimi-patch.patch
#Release file does not contain building tools. thats CVS only. Don't know which CVS revision to check out for release CVS.
Patch1: skinlf-build-xml-patch.patch
#Create common.xml as release omits building tools
Patch2: skinlf-common-xml-patch.patch
#org.apache.xpath has been removed from JDK1.5 and above
#patch to use com.sun.org.apache.xpath.internal.XPathAPI instead
Patch3: skinlf-sun-jdk1.5-xpath-patch.patch

BuildRequires: laf-plugin ant ant-nodeps rpm-build-java dos2unix
BuildRequires: java-devel-default

%description
Skin Look And Feel is a java framework that is  able to read GTK (The
Gimp ToolKit) and KDE (The K Desktop Environment) skins to enhance
your application.
SkinLF supports GUI controls such as Buttons, Checks, Radios, Scrollbars,
Progress Bar, Lists,  Tables, Internal Frames, Colors, Background
Textures, Regular Windows.

%prep
%setup -q
%patch0

#building patches

%patch1
%patch2
#Code fixing
%patch3

#dos2unix Doc files

for i in "CHANGES README LICENSE LICENSE_nanoxml" ;
do
dos2unix $i;
done

#Remove jar files

rm -f ./lib/examples.jar
rm -f ./lib/nativeskin.jar
rm -f ./lib/skinlf.jar

#rm due to dubious license

rm -f ./src/examples/Clock.java

#Sanitise package -- disallow jar files

JAR_files=""
for j in $(find -name \*.jar); do
if [ ! -L $j ] ; then
JAR_files="$JAR_files $j"
fi
done

if [ ! -z "$JAR_files" ] ; then
echo "These JAR files should be deleted and symlinked to system JAR files: $JAR_files"
#Uncomment this line before accepting package
exit 1
fi

%build
ant
#Construct-a-jar Dont use ant jar as it tries to unpack laf-plugin
pushd build/classes
jar cf %name-%version.jar .
popd

%install
mkdir -p %buildroot/%_javadir
install -m644 ./build/classes/%name-%version.jar -D %buildroot%_javadir/%name-%version.jar
cd %buildroot%_javadir/
ln -s %name-%version.jar %name.jar

%files
%doc CHANGES README LICENSE  LICENSE_nanoxml
%_javadir/%name.jar
%_javadir/%name-%version.jar

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009