bin_PROGRAMS = gvedit
+gveditdir = $(pkgdatadir)/gvedit
+
+gvedit_DATA = attrs.txt
+
gvedit_SOURCES = main.cpp csettings.cpp mainwindow.cpp imageviewer.cpp mdichild.cpp
noinst_HEADERS = csettings.h imageviewer.h mainwindow.h mdichild.h ui_settings.h
gvedit: main.cpp csettings.cpp mainwindow.cpp imageviewer.cpp mdichild.cpp qMakefile
$(MAKE) -f qMakefile prefix=${prefix} exec_prefix=${exec_prefix}
-install-data-hook:
- (cd $(DESTDIR)$(pkgdatadir)/gvedit; rm -f attrs.txt; $(LN_S) ../doc/infosrc/attrs attrs.txt;)
-
-uninstall-hook:
- (cd $(DESTDIR)$(pkgdatadir)/gvedit; rm -f attrs.txt;)
+attrs.txt: $(top_srcdir)/doc/infosrc/attrs
+ cp $(top_srcdir)/doc/infosrc/attrs attrs.txt
EXTRA_DIST = \
gvedit.pro.in gvedit.ncb gvedit.sln gvedit.vcproj gvedit.vcproj.RESEARCH.arif.user gvedit.vcproj.user \
mdi.pro mdi.qrc mdi.vcproj mdi.vcproj.RESEARCH.arif.user \
document1.png document2.png vc90.idb vc90.pdb
+DISTCLEAN = attrs.txt
echo " sfdp: $use_sfdp"
echo " shared: $use_shared"
echo " static: $use_static"
+echo " qt: $use_qt"
echo ""
echo "commands:"
echo " dot: Yes (always enabled)"
echo " gvmap: Yes (always enabled)"
echo " lefty: $use_lefty"
echo " smyrna: $use_smyrna"
+echo " gvedit: $use_qt"
echo ""
echo "plugin libraries:"
echo " dot_layout: Yes (always enabled)"
echo " rsvg: $use_rsvg"
echo " visio: $use_visio"
echo " xlib: $use_xlib"
-echo " qt: $use_qt"
echo ""
echo "language extensions:"
echo " gv_sharp: $use_sharp"
# Available features are:
# SHARP GHOSTSCRIPT GUILE _IO JAVA LUA OCAML ORTHO PERL PHP
# PYTHON RUBY R_LANG TCL IPSEPCOLA MYLIBGD PANGOCAIRO RSVG
-# GLITZ SMYRNA DEVIL MING GDK_PIXBUF QT
+# GLITZ SMYRNA DEVIL MING GDK_PIXBUF _QT
# SuSE uses a different mechanism to generate BuildRequires
# norootforbuild
BuildRequires: java-devel
%define PHP 1
BuildRequires: php-devel
-%define QT 1
+%define _QT 1
BuildRequires: qt-devel
%ifnarch ppc64
%define SHARP 1
%{_bindir}/*
%exclude %{_bindir}/diffimg
%exclude %{_bindir}/dot_builtins
+%if 0%{?_QT}
%exclude %{_bindir}/gvedit
+%endif
%dir %{_libdir}/graphviz
%{_libdir}/*.so.*
%{_libdir}/graphviz/*.so.*
%endif
#-- graphviz-qt rpm --------------------------------------------------
-%if 0%{?QT}
+%if 0%{?_QT}
%package qt
Group: Applications/Multimedia
-Summary: Graphviz applications using QT
+Summary: Graphviz applications using _QT
Requires: graphviz = %{version}-%{release}
%description qt
-Graphviz applications using QT - currently just gvedit
+Graphviz applications using _QT - currently just gvedit
%files qt
+%defattr(-,root,root,-)
%{_bindir}/gvedit
+%dir %{_datadir}/graphviz/gvedit
%{_datadir}/graphviz/gvedit/*
# %{_mandir}/man1/gvedit.1*
%endif
--with%{!?IPSEPCOLA:out}-ipsepcola \
--with%{!?LASI:out}-lasi \
--with%{!?MING:out}-ming \
- --with%{!?QT:out}-qt \
+ --with%{!?_QT:out}-qt \
--with%{!?PANGOCAIRO:out}-pangocairo \
- --with%{!?QT:out}-qt \
--with%{!?RSVG:out}-rsvg \
--with%{!?ORTHO:out}-ortho \
--with%{!?SFDP:out}-sfdp \