Репозиторий Sisyphus
Последнее обновление: 27 сентября 2021 | Пакетов: 17343 | Посещений: 21961200
en ru br
Репозитории ALT
S:1.0.1-alt3
5.1: 0_9_0-alt4.rc4
4.1: 0_9_0-alt1.16b1
4.0: 0_9_0-alt0.10b1
www.altlinux.org/Changes

Группа :: Работа с текстами
Пакет: freemind

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

#TODO: check doc, check with removed batik
%define set_system_jar() \
for p in %* ; do \
for i in $p $(echo $p/*.jar); do \
test -f "$i" || continue \
build-classpath $(basename "$i") 2>/dev/null || continue \
ln -sf $(build-classpath $(basename "$i")) "$i" \
done \
done

%define set_system_namejar() \
test -f "%2" \
build-classpath %1 \
ln -sf $(build-classpath %1) "%2"

# TODO: plugins/svg

# wait for xstream
Name: freemind
Version: 1.0.1
Release: alt3

Summary: A Program for creating and viewing Mindmaps

Group: Text tools
License: GPLv2+
Url: http://freemind.sourceforge.net/wiki/index.php/Main_Page

Packager: Vitaly Lipatov <lav at altlinux.ru>

#Source: http://prdownloads.sf.net/%name/freemind-src-0.9.0_Beta_16_icon_butterfly.tar.bz2

Source: http://prdownloads.sf.net/freemind/freemind-src-%version.tar

Source1: %name.desktop
Source2: %name.xml
Requires: java >= 1.5.0

BuildRequires: ant gnu-regexp xerces-j2
#BuildRequires: batik batik-squiggle gnu-regexp groovy jtidy rhino

%if "%{version}" == "1.0.1"
# this old wersion can't be built with java 11
BuildRequires: java-1.8.0-devel
%else
# but next version might be ok
BuildRequires: java-devel-default
%endif

BuildRequires: rpm-build-java

BuildArch: noarch

%description
FreeMind is a premier free mind-mapping software written in Java.

%prep
%setup -n %name
chmod a+x check_for_duplicate_resources.sh
subst "s|О©╫|oe|g" freemind/main/XHTMLWriter.java freemind/main/FixedHTMLWriter.java
# for build
#set_system_jar lib/ lib/jibx/ lib/SimplyHTML/ plugins/svg/ plugins/latex/ plugins/help/
#set_system_namejar xerces-j2 plugins/svg/xerces_2_5_0.jar
#set_system_namejar groovy plugins/script/groovy-all-1.5.6.jar

%build
JAVA_HOME=%java_home
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
sed -i s,./doc/freemind.mm,%_docdir/freemind.mm, freemind.properties
ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 -Dfile.encoding=UTF8 dist browser

%install
mkdir -p %buildroot/{%_datadir,%_bindir}
cp -a ../bin/dist %buildroot%_datadir/%name

rm %buildroot%_datadir/%name/{FreeMind.exe,freemind.bat}
rm %buildroot%_datadir/%name/license
chmod 755 %buildroot%_datadir/%name/%name.sh
ln -s ../share/%name/%name.sh %buildroot%_bindir/%name

# for packing

#set_system_jar %buildroot%_datadir/%name/{lib,lib/jibx,lib/SimplyHTML,plugins/svg,plugins/latex,plugins/help}
#set_system_namejar xerces-j2 %buildroot%_datadir/%name/plugins/svg/xerces_2_5_0.jar
#set_system_namejar groovy %buildroot%_datadir/%name/plugins/script/groovy-all-1.5.6.jar
#rm -f %buildroot%_datadir/%name/plugins/svg/batik-*.jar

install -D -m644 %SOURCE1 %buildroot%_desktopdir/%name.desktop
install -D -m644 images/FreeMindWindowIcon.png %buildroot%_pixmapsdir/%name.png

%files
%_bindir/%name
%_datadir/%name/
%_desktopdir/%name.desktop
%_pixmapsdir/*.png

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin