Accepting request 257726 from GNOME:Apps
1 OBS-URL: https://build.opensuse.org/request/show/257726 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dia?expand=0&rev=41
This commit is contained in:
commit
7a913ff957
36
dia.appdata.xml
Normal file
36
dia.appdata.xml
Normal file
@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Ryan Lerch <rlerch@redhat.com> -->
|
||||
|
||||
<!-- HOUSEKEEPING, REMOVE THIS COMMENT WHEN THIS GOES UPSTREAM
|
||||
BugReportURL: https://bugzilla.gnome.org/show_bug.cgi?id=710955
|
||||
SentUpstream: 2013-10-27
|
||||
-->
|
||||
|
||||
<application>
|
||||
<id type="desktop">dia.desktop</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<summary>Dia is a GTK+ based diagram creation program</summary>
|
||||
<description>
|
||||
<p>
|
||||
Dia is roughly inspired by the commercial Windows program 'Visio,' though
|
||||
more geared towards informal diagrams for casual use.
|
||||
It can be used to draw many different kinds of diagrams.
|
||||
It currently has special objects to help draw entity relationship diagrams,
|
||||
UML diagrams, flowcharts, network diagrams, and many other diagrams.
|
||||
It is also possible to add support for new shapes by writing simple XML files,
|
||||
using a subset of SVG to draw the shape.
|
||||
</p>
|
||||
<p>
|
||||
It can load and save diagrams to a custom XML format (gzipped by default,
|
||||
to save space), can export diagrams to a number of formats, including EPS,
|
||||
SVG, XFIG, WMF and PNG, and can print diagrams (including ones that span
|
||||
multiple pages).
|
||||
</p>
|
||||
</description>
|
||||
<url type="homepage">https://wiki.gnome.org/Apps/Dia</url>
|
||||
<screenshots>
|
||||
<screenshot type="default">https://wiki.gnome.org/Apps/Dia/Screenshots?action=AttachFile&do=get&target=dia-0.97-integrated-ui.png</screenshot>
|
||||
<screenshot>https://wiki.gnome.org/Apps/Dia/Screenshots?action=AttachFile&do=get&target=UML+properties.png</screenshot>
|
||||
</screenshots>
|
||||
<updatecontact>dia-list@gnome.org</updatecontact>
|
||||
</application>
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 19 10:44:44 UTC 2014 - dimstar@opensuse.org
|
||||
|
||||
- Add dia.appdata.xml: allow DIA to show up as an application in
|
||||
gnome-software (installation will abort when upstream ships the
|
||||
file).
|
||||
- Run spec-cleaner.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 17 23:44:48 UTC 2014 - dimstar@opensuse.org
|
||||
|
||||
|
75
dia.spec
75
dia.spec
@ -17,19 +17,30 @@
|
||||
|
||||
|
||||
Name: dia
|
||||
Version: 0.97.3
|
||||
Release: 0
|
||||
Summary: A Diagram Creation Program
|
||||
License: GPL-2.0+
|
||||
Group: Productivity/Graphics/Other
|
||||
Url: http://live.gnome.org/Dia
|
||||
Source0: http://download.gnome.org/sources/dia/0.97/%{name}-%{version}.tar.xz
|
||||
Source1: font-test-japanese.dia
|
||||
Source2: font-test-czech.dia
|
||||
Source3: font-test-german-euro.dia
|
||||
Source4: dia.appdata.xml
|
||||
# PATCH-FIX-OPENSUSE dia-0.92.2-no-strict-aliasing.patch
|
||||
Patch3: dia-0.92.2-no-strict-aliasing.patch
|
||||
# PATCH-FIX-OPENSUSE dia-remove-datetime.patch vuntz@novell.com -- Do not put date/time in the compiled binary (needed for build-compare)
|
||||
Patch17: dia-remove-datetime.patch
|
||||
# PATCH-FIX-UPSTREAM dia-libemf-64bit.patch bgo#675495 sbrabec@suse.cz -- Fix build with libEMF on 64-bit platforms.
|
||||
Patch20: dia-libemf-64bit.patch
|
||||
# PATCH-FIX-OPENSUSE dia-enable-html-doc.patch mgorse@suse.com -- Always enable html docs if xsltproc present.
|
||||
Patch23: dia-enable-html-doc.patch
|
||||
BuildRequires: docbook-toys
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: intltool
|
||||
%if 0%{?suse_version} > 1210
|
||||
BuildRequires: libEMF-devel
|
||||
%else
|
||||
%ifarch %ix86
|
||||
# libEMF was not on x86_64 before 12.2
|
||||
BuildRequires: libEMF-devel
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: libtool
|
||||
BuildRequires: libxslt-devel
|
||||
BuildRequires: python-devel
|
||||
@ -45,26 +56,16 @@ Requires: ghostscript-fonts-std
|
||||
Requires: python-gtk
|
||||
# for xdg-open
|
||||
Requires: xdg-utils
|
||||
Summary: A Diagram Creation Program
|
||||
License: GPL-2.0+
|
||||
Group: Productivity/Graphics/Other
|
||||
Version: 0.97.3
|
||||
Release: 0
|
||||
Source: http://download.gnome.org/sources/dia/0.97/%{name}-%{version}.tar.xz
|
||||
Source1: font-test-japanese.dia
|
||||
Source2: font-test-czech.dia
|
||||
Source3: font-test-german-euro.dia
|
||||
# PATCH-FIX-OPENSUSE dia-0.92.2-no-strict-aliasing.patch
|
||||
Patch3: dia-0.92.2-no-strict-aliasing.patch
|
||||
# PATCH-FIX-OPENSUSE dia-remove-datetime.patch vuntz@novell.com -- Do not put date/time in the compiled binary (needed for build-compare)
|
||||
Patch17: dia-remove-datetime.patch
|
||||
# PATCH-FIX-UPSTREAM dia-libemf-64bit.patch bgo#675495 sbrabec@suse.cz -- Fix build with libEMF on 64-bit platforms.
|
||||
Patch20: dia-libemf-64bit.patch
|
||||
# PATCH-FIX-OPENSUSE dia-enable-html-doc.patch mgorse@suse.com -- Always enable html docs if xsltproc present.
|
||||
Patch23: dia-enable-html-doc.patch
|
||||
Url: http://live.gnome.org/Dia
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Recommends: %{name}-lang
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} > 1210
|
||||
BuildRequires: libEMF-devel
|
||||
%else
|
||||
%ifarch %ix86
|
||||
# libEMF was not on x86_64 before 12.2
|
||||
BuildRequires: libEMF-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%description
|
||||
Dia is designed to be much like the commercial program 'Visio.' It can
|
||||
@ -80,6 +81,7 @@ formats, and can print diagrams (including ones that span multiple
|
||||
pages).
|
||||
|
||||
%lang_package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
translation-update-upstream
|
||||
@ -102,24 +104,30 @@ intltoolize --force
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
|
||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
%suse_update_desktop_file -r -N Dia -C "" -G "Diagram Editor" dia Office FlowChart
|
||||
%find_lang %{name} %{?no_lang_C}
|
||||
# No need for mime-info-to-mime, application/x-dia-diagram is defined in freedesktop.org.xml
|
||||
rm -r $RPM_BUILD_ROOT%{_datadir}/mime-info
|
||||
rm -r %{buildroot}%{_datadir}/mime-info
|
||||
rm samples/Makefile* samples/*png
|
||||
if [ -f %{buildroot}%{_datadir}/appdata/dia.appdata.xml ]; then
|
||||
echo "Please remove the added dia.appdata.xml file from the sources - the tarball installs it"
|
||||
false
|
||||
else
|
||||
mkdir -p %{buildroot}%{_datadir}/appdata
|
||||
cp %{S:4} %{buildroot}%{_datadir}/appdata/
|
||||
fi
|
||||
|
||||
%fdupes %{buildroot}%{_datadir}
|
||||
|
||||
%if 0%{?suse_version} > 1130
|
||||
|
||||
%post
|
||||
%desktop_database_post
|
||||
%icon_theme_cache_post
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} > 1130
|
||||
|
||||
%postun
|
||||
%desktop_database_postun
|
||||
%icon_theme_cache_postun
|
||||
@ -130,6 +138,8 @@ rm samples/Makefile* samples/*png
|
||||
%doc AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS NEWS README TODO samples/ font-test*dia
|
||||
%{_bindir}/*
|
||||
%{_libdir}/dia
|
||||
%dir %{_datadir}/appdata
|
||||
%{_datadir}/appdata/dia.appdata.xml
|
||||
%{_datadir}/applications/*.desktop
|
||||
%{_datadir}/dia
|
||||
%{_datadir}/icons/hicolor/*/apps/dia.*
|
||||
@ -138,5 +148,6 @@ rm samples/Makefile* samples/*png
|
||||
%doc %{_mandir}/fr/man1/*.*
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user