packages: astah/astah.desktop, astah/astah.spec, astah/astah.xml (NEW), ast...

glen glen at pld-linux.org
Fri Nov 5 13:16:31 CET 2010


Author: glen                         Date: Fri Nov  5 12:16:31 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- project got renamed to astash, update to 6.2.1
- drop legacy mimelnk, add mime.xml instead
- javadoc subpackage for english apidocs

---- Files affected:
packages/astah:
   astah.desktop (1.7 -> 1.8) , astah.spec (1.23 -> 1.24) , astah.xml (NONE -> 1.1)  (NEW), x-astah.desktop (1.4 -> NONE)  (REMOVED)

---- Diffs:

================================================================
Index: packages/astah/astah.desktop
diff -u packages/astah/astah.desktop:1.7 packages/astah/astah.desktop:1.8
--- packages/astah/astah.desktop:1.7	Wed Dec 26 14:39:40 2007
+++ packages/astah/astah.desktop	Fri Nov  5 13:16:26 2010
@@ -1,14 +1,13 @@
 [Desktop Entry]
-Name=Jude
+Name=Astah*
 GenericName=UML Modeling Tool
 GenericName[pl]=Narzędzie do modelowania UML
-Comment=Jude
-Comment[pl]=Jude
-Icon=jude
-Exec=jude
+Comment=Astah*
+Icon=astah
+Exec=astah
 Terminal=false
 MultipleArgs=false
 Type=Application
 Categories=Development;ProjectManagement;
-MimeType=application/x-jude;
+MimeType=application/x-astah;
 # vi: encoding=utf-8

================================================================
Index: packages/astah/astah.spec
diff -u packages/astah/astah.spec:1.23 packages/astah/astah.spec:1.24
--- packages/astah/astah.spec:1.23	Sun May 16 16:14:11 2010
+++ packages/astah/astah.spec	Fri Nov  5 13:16:26 2010
@@ -1,40 +1,50 @@
 # $Revision$, $Date$
 # TODO
-# - package API (to examplesdir? subpkg?)
+# - package API to java-astah
+# - repackage to have default opener xdg-open instead of firefox?
+#
+# Conditional build:
+%bcond_without	javadoc		# don't build javadoc
+
 %define		codename	community
 %define		ver		%(echo %{version} | tr . _)
 %include	/usr/lib/rpm/macros.java
 Summary:	A New Java/UML Object-Oriented Design Tool
 Summary(pl.UTF-8):	Narzędzie wspomagające projektowanie oprogramowania w UML
-Name:		jude
-Version:	5.5
-Release:	1
+Name:		astah
+Version:	6.2.1
+Release:	0.6
 # non-distributable, can be used for free upon restrictions and registration
-License:	Proprietary (see http://jude.change-vision.com/jude-web/notes/ProductLicenseAgreement.html)
+# http://astah.change-vision.com/en/product/astah-eula.html
+License:	Astah* EULA
 Group:		Applications/Engineering
-Source0:	http://jude-users.com/edujjude/%{name}-community-%{ver}.zip
-# NoSource0-md5:	90549e57d30ff0e818b8bdd8475ab8dc
+# Source0Download:	https://members.change-vision.com/members/files/astah_community/%{ver}/astah-community-%{ver}.zip
+Source0:	http://jude-users.com/edujjude/%{name}-%{codename}-%{ver}.zip
+# NoSource0-md5:	7323ea7b751a6bd39f0dd906cdf58ca4
 Source1:	%{name}.desktop
-Source2:	x-%{name}.desktop
+Source2:	%{name}.xml
 Source3:	%{name}-icon.png
 NoSource:	0
-URL:		http://jude-users.com/en/
+URL:		http://astah.change-vision.com/en/product/astah-community.html
 BuildRequires:	rpm-javaprov
-BuildRequires:	rpmbuild(macros) >= 1.300
+BuildRequires:	rpmbuild(macros) >= 1.311
+Requires(post,postun):	desktop-file-utils
+Requires(post,postun):	shared-mime-info
 BuildRequires:	unzip
 Requires:	jre-X11
+Obsoletes:	jude
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Jude is a new tool which supports your object-oriented software
+Astah is a new tool which supports your object-oriented software
 designing in JavaTM and UML1.4 (Unified Modeling Language).
 
 This package contains Community version, which is freely usable upon
 some restrictions after registration on vendor site.
 
 %description -l pl.UTF-8
-Jude jest nowym narzędziem wspomagającym zorientowane obiektowo
+Astah jest nowym narzędziem wspomagającym zorientowane obiektowo
 projektowanie oprogramowania w JavaTM i UML1.4 (Unified Modeling
 Language).
 
@@ -42,46 +52,99 @@
 opłat pod pewnymi ograniczenami, po uprzedniej rejestracji na stronie
 producenta.
 
+%package javadoc
+Summary:	Online manual for astah
+Summary(pl.UTF-8):	Dokumentacja online do astah
+Group:		Documentation
+Requires:	jpackage-utils
+
+%description javadoc
+Documentation for astah.
+
+%description javadoc -l pl.UTF-8
+Dokumentacja do astah.
+
+%description javadoc -l fr.UTF-8
+Javadoc pour astah.
+
 %prep
 %setup -q -n %{name}_%{codename}
 
+cat <<'EOF' > %{name}.sh
+#!/bin/sh
+exec java -Xms16m -Xmx512m -Xss2m -jar %{_datadir}/%{name}/astah-%{codename}.jar ${1:+"$@"}
+EOF
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
 
-cat <<'EOF' > $RPM_BUILD_ROOT%{_bindir}/%{name}
-#!/bin/sh
-exec java -Xms16m -Xmx512m -Xss2m -jar %{_datadir}/%{name}/jude-%{codename}.jar ${1:+"$@"}
-EOF
-cp -a jude-%{codename}.jar *.jude $RPM_BUILD_ROOT%{_datadir}/%{name}
+install -p %{name}.sh $RPM_BUILD_ROOT%{_bindir}/%{name}
+cp -a astah-%{codename}.jar $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a *.asta $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_datadir}/mimelnk/application,%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_datadir}/mime/packages,%{_pixmapsdir}}
 cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
-cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/mimelnk/application
+cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/mime/packages/astah.xml
 cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
 
+# javadoc
+%if %{with javadoc}
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -a api/en/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%update_mime_database
+%update_desktop_database_post
+
+%postun
+%update_mime_database
+%update_desktop_database_postun
+
+%post javadoc
+ln -nfs %{name}-%{version} %{_javadocdir}/%{name}
+
 %files
 %defattr(644,root,root,755)
 %doc README-e.txt ReleaseNote-e.html
 %doc %lang(ja) README.txt ReleaseNote.html ProductInformation.txt
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/%{name}
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/%{name}-%{codename}.jar
-%{_datadir}/%{name}/Welcome.jude
-%lang(ja) %{_datadir}/%{name}/Welcome_ja.jude
 %{_desktopdir}/%{name}.desktop
-%{_datadir}/mimelnk/application/x-%{name}.desktop
+%{_datadir}/mime/packages/astah.xml
 %{_pixmapsdir}/%{name}.png
 
+%dir %{_examplesdir}/%{name}-%{version}
+%{_examplesdir}/%{name}-%{version}/Welcome.asta
+%{_examplesdir}/%{name}-%{version}/Sample.asta
+%lang(ja) %{_examplesdir}/%{name}-%{version}/Welcome_ja.asta
+
+%if %{with javadoc}
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{name}-%{version}
+%ghost %{_javadocdir}/%{name}
+%endif
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.24  2010/11/05 12:16:26  glen
+- project got renamed to astash, update to 6.2.1
+- drop legacy mimelnk, add mime.xml instead
+- javadoc subpackage for english apidocs
+
 Revision 1.23  2010/05/16 14:14:11  sparky
 - BR: unzip
 

================================================================
Index: packages/astah/astah.xml
diff -u /dev/null packages/astah/astah.xml:1.1
--- /dev/null	Fri Nov  5 13:16:31 2010
+++ packages/astah/astah.xml	Fri Nov  5 13:16:26 2010
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+	<mime-type type="application/x-astah">
+		<comment xml:lang="en">Astah* Document</comment>
+		<glob pattern="*.asta"/>
+		<icon name="astah" />
+		<sub-class-of type="application/zip" />
+		<!-- backward compat with jude -->
+		<glob pattern="*.jude"/>
+		<alias type="application/x-jude"/>
+	</mime-type>
+</mime-info>
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/astah/astah.desktop?r1=1.7&r2=1.8&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/astah/astah.spec?r1=1.23&r2=1.24&f=u



More information about the pld-cvs-commit mailing list