Summary: UML 2 tool box to specify and generate code in C++, Java, IDL, PHP and Python Name: bouml Version: 4.3.5 %define file_project_version 4.3 %define bouml_doc_version 4.3.2 Release: %mkrel 4 License: GPLv2+ Group: Development/Other URL: http://bouml.free.fr Source0: http://bouml.free.fr/%{name}_%{version}.tar.gz Patch01: bouml-mandriva-doc-path-fix.patch Patch02: bouml-help-use-xdg-open.patch BuildRequires: gcc-c++ BuildRequires: qt3-devel %if %{mdkversion} < 200800 BuildRequires: desktop-file-utils %endif Requires: xdg-utils Suggests: bouml-doc >= 4.3.2-3 BuildRoot: %{_tmppath}/%{name}-buildroot %description BOUML is a free Unified Modeling Language (UML 2) tool box allowing you to specify and generate code in C++, Java, Idl, Php and Python. You can use it to create nearly all of UML diagrams. BOUML can generate code from those diagrams in C++, Java, IDL, PHP and Python, and can also reverse existing code. The program supports class diagrams, sequence diagrams, collaboration diagrams, object diagrams, use case diagrams, component diagrams, state diagrams, activity diagrams, component diagrams and deployment diagrams. %prep %setup -q -n %{name}_%{version} %patch01 -p1 -b .mandriva-doc-path-fix %patch02 -p1 -b .help-use-xdg-open %build %make QMAKE=%{qt3dir}/bin/qmake BOUML_LIB=%{_libdir}/%{name} %install rm -rf %{buildroot} %makeinstall BOUML_LIB=%{_libdir}/%{name} DESTDIR=%{buildroot} %if %{mdkversion} < 200800 desktop-file-install \ --vendor="" \ --add-category="X-MandrivaLinux-MoreApplications-Development" \ --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/* %endif cat > README.%{file_project_version}.upgrade.urpmi <<EOF Because the format of the BOUML files is changed in BOUML %{file_project_version}, the previous releases (BOUML < %{file_project_version}) cannot read a project saved with this version. Obviously this release is able to read the projects made by previous releases of BOUML. EOF %post %update_icon_cache hicolor %{update_menus} %postun %update_icon_cache hicolor %{clean_menus} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README README.*.upgrade.urpmi historic.html licence.txt %{_bindir}/%{name} %{_bindir}/projectControl %{_bindir}/projectSynchro %dir %{_libdir}/%{name} %{_libdir}/%{name}/* %{_datadir}/applications/*.desktop %{_iconsdir}/hicolor/16x16/apps/%{name}.png %{_iconsdir}/hicolor/16x16/apps/projectControl.png %{_iconsdir}/hicolor/16x16/apps/projectSynchro.png %{_iconsdir}/hicolor/32x32/apps/%{name}.png %{_iconsdir}/hicolor/32x32/apps/projectControl.png %{_iconsdir}/hicolor/32x32/apps/projectSynchro.png %{_iconsdir}/hicolor/48x48/apps/%{name}.png %{_iconsdir}/hicolor/48x48/apps/projectControl.png %{_iconsdir}/hicolor/48x48/apps/projectSynchro.png %{_iconsdir}/hicolor/64x64/apps/%{name}.png %{_iconsdir}/hicolor/64x64/apps/projectControl.png %{_iconsdir}/hicolor/64x64/apps/projectSynchro.png %changelog * Sun Jun 08 2008 Funda Wang <fundawang@mandriva.org> 4.3.5-4mdv2009.0 + Revision: 216917 - adopt to new doc file path * Sun Jun 08 2008 Funda Wang <fundawang@mandriva.org> 4.3.5-3mdv2009.0 + Revision: 216810 - add patch to comply mandriva doc path - use xdg-open to open help docs * Sat Jun 07 2008 Funda Wang <fundawang@mandriva.org> 4.3.5-2mdv2009.0 + Revision: 216666 - fix suggest of doc package * Sat Jun 07 2008 Funda Wang <fundawang@mandriva.org> 4.3.5-1mdv2009.0 + Revision: 216660 - New version 4.3.5 * Fri Mar 21 2008 Nicolas Vigier <nvigier@mandriva.com> 4.2-1mdv2009.0 + Revision: 189364 - Package updated by Luc Menut <Luc.Menut@supagro.inra.fr> - new version 4.2 - correct BuildRequires - desktop-file-utils is needed only for mdkversion < 200800 - add Suggests bouml-doc * Tue Feb 12 2008 Nicolas Vigier <nvigier@mandriva.com> 4.1-1mdv2008.1 + Revision: 166117 - new version * Wed Jan 23 2008 Nicolas Vigier <nvigier@mandriva.com> 3.5-1mdv2008.1 + Revision: 157013 - new version * Tue Jan 08 2008 Nicolas Vigier <nvigier@mandriva.com> 3.4.1-1mdv2008.1 + Revision: 146915 - import bouml * Wed Jan 02 2008 Luc Menut <Luc.Menut@supagro.inra.fr> 3.4.1-1mdv2008.1 - initial Mandriva package