SHA256
1
0
forked from pool/dia
OBS User unknown 2007-01-23 00:13:58 +00:00 committed by Git OBS Bridge
parent eddb82d9ad
commit b30ddab390
2 changed files with 35 additions and 32 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jan 22 15:38:58 CET 2007 - sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
- Enabled GNOME print support.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 14 15:36:28 CET 2006 - sbrabec@suse.cz Tue Nov 14 15:36:28 CET 2006 - sbrabec@suse.cz

View File

@ -1,7 +1,7 @@
# #
# spec file for package dia (Version 0.95) # spec file for package dia (Version 0.95)
# #
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
# package are under the same license as the package itself. # package are under the same license as the package itself.
# #
@ -11,16 +11,15 @@
# norootforbuild # norootforbuild
Name: dia Name: dia
BuildRequires: docbook-toys docbook-xsl-stylesheets gcc-c++ gnome-patch-translation intltool libgnomeui-devel libxslt-devel mDNSResponder-devel perl-XML-Parser python-devel python-gtk-devel sgml-skel update-desktop-files BuildRequires: docbook-toys docbook-xsl-stylesheets gcc-c++ gnome-patch-translation intltool libgnomeprint-devel libgnomeui-devel libxslt-devel python-devel python-gtk-devel scrollkeeper sgml-skel update-desktop-files
%define prefix /opt/gnome
License: GNU General Public License (GPL) License: GNU General Public License (GPL)
Group: Productivity/Graphics/Other Group: Productivity/Graphics/Other
Requires: ghostscript-fonts-std python-gtk python-numeric Requires: ghostscript-fonts-std python-gtk python-numeric
Autoreqprov: on Autoreqprov: on
Summary: A Diagram Creation Program Summary: A Diagram Creation Program
Version: 0.95 Version: 0.95
Release: 23 Release: 38
Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/dia/dia-%{version}.tar.bz2 Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/dia/%{name}-%{version}.tar.bz2
Source1: font-test-japanese.dia Source1: font-test-japanese.dia
Source2: font-test-czech.dia Source2: font-test-czech.dia
Source3: font-test-german-euro.dia Source3: font-test-german-euro.dia
@ -57,7 +56,7 @@ Authors:
Alexander Larsson <alla@lysator.liu.se> Alexander Larsson <alla@lysator.liu.se>
%prep %prep
%setup %setup -q
gnome-patch-translation-prepare gnome-patch-translation-prepare
%patch -p1 %patch -p1
%patch3 %patch3
@ -75,44 +74,41 @@ gnome-patch-translation-update
cp $RPM_SOURCE_DIR/font-test*dia . cp $RPM_SOURCE_DIR/font-test*dia .
%build %build
autoconf autoreconf -f -i
export CFLAGS="$RPM_OPT_FLAGS" %configure\
export CXXFLAGS="$RPM_OPT_FLAGS" --enable-db2html\
export CPPFLAGS="$(pkg-config --cflags cairo)" --enable-gnome\
./configure --prefix=%prefix \ --with-python\
--mandir=%_mandir \ --with-cairo\
--sysconfdir=/etc%_prefix \ --with-gnomeprint
--libdir=%prefix/%_lib \ make docdir=%{_docdir}/%{name} %{?jobs:-j%jobs}
--enable-db2html \
--enable-gnome \
--with-python \
--with-cairo
make
%install %install
make DESTDIR=$RPM_BUILD_ROOT install %makeinstall docdir=%{_docdir}/%{name}
%suse_update_desktop_file -r -C "" -G "Diagram Editor" dia Office FlowChart GNOME %suse_update_desktop_file -r -C "" -G "Diagram Editor" dia Office FlowChart GNOME
%find_lang dia %find_lang dia
cp -a AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS NEWS README TODO samples/*.dia font-test*dia $RPM_BUILD_ROOT%{_docdir}/%{name}/
# 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
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files -f dia.lang %files -f dia.lang
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL %doc %{_docdir}/%{name}
%doc KNOWN_BUGS NEWS README TODO samples/*.dia %{_bindir}/*
%doc font-test*dia %{_libdir}/dia
%_mandir/man1/* %{_datadir}/applications/*.desktop
%prefix/bin/* %{_datadir}/dia
%prefix/%_lib/dia %{_datadir}/pixmaps/*
%prefix/share/dia %doc %{_mandir}/man1/*.*
%prefix/share/applications/*.desktop
#%prefix/share/gnome/help/*
%dir %prefix/share/gnome/help/dia/C
%prefix/share/mime-info/*
%prefix/share/pixmaps/*
%changelog -n dia %changelog -n dia
* Mon Jan 22 2007 - sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
- Enabled GNOME print support.
* Tue Nov 14 2006 - sbrabec@suse.cz * Tue Nov 14 2006 - sbrabec@suse.cz
- Re-enabled use of gnome-patch-translation. - Re-enabled use of gnome-patch-translation.
* Sun Nov 12 2006 - stbinner@suse.de * Sun Nov 12 2006 - stbinner@suse.de