]> git.pld-linux.org Git - packages/dia.git/blob - dia.spec
- added automake patch.
[packages/dia.git] / dia.spec
1 Summary:        Dia - a gtk+ based diagram creation program
2 Summary(pl):    Dia - program do tworzenie diagramów
3 Name:           dia
4 Version:        0.86
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications/Graphics
8 Group(pl):      X11/Aplikacje/Grafika
9 Vendor:         James Henstridge <james@daa.com.au>
10 Source0:        ftp://ftp.gnome.org/pub/GNOME/stable/sources/dia/%{name}-%{version}.tar.gz
11 Patch0:         dia-automake.patch
12 URL:            http://www.lysator.liu.se/~alla/dia/dia.html
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  gettext-devel
16 BuildRequires:  gtk+-devel >= 1.2.0
17 BuildRequires:  imlib-devel
18 BuildRequires:  libxml-devel
19 BuildRequires:  zlib-devel
20 Requires:       gtk+ >= 1.2.0
21 Requires:       libxml >= 1.8.7
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _prefix         /usr/X11R6
25 %define         _mandir         %{_prefix}/man
26
27 %description
28 Dia is a program designed to be much like the Windows program 'Visio'.
29 It can be used to draw different kind of diagrams. In this first
30 version there is support for UML static structure diagrams (class
31 diagrams) and Network diagrams. It can currently load and save
32 diagrams to a custom fileformat and export to postscript.
33
34 %description -l pl
35 Dia jest programem zaprojektowanym tak by byæ podobnym do programu
36 'Visio' znanego z Windows. Dia mo¿e byæ u¿ywany do rysowania ró¿nego
37 rodzaju diagramów. W tej wersji znajduje siê wsparcie dla diagramów o
38 statycznej strukturze UML (diagramy klasowe) i dla diagramów
39 sieciowych. Aktualnie mo¿e on ³adowaæ i zapisywaæ diagramy we w³asnym
40 formacie oraz eksportowaæ je do postscriptu.
41
42 %prep
43 %setup -q
44 %patch -p1
45
46 %build
47 autoconf
48 automake
49 gettextize --copy --force
50 LDFLAGS="-s"; export LDFLAGS
51 %configure
52 %{__make}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT \
59         Applicationsdir=%{_applnkdir}/Graphics
60
61 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/dia/lib*.so
62
63 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
64
65 gzip -9nf AUTHORS NEWS README TODO
66
67 %find_lang %{name}
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files -f %{name}.lang
73 %defattr(644,root,root,755)
74 %doc *.gz
75 %{_applnkdir}/Graphics/dia.desktop
76 %attr(755,root,root) %{_bindir}/dia
77 %dir %{_libdir}/dia
78 %attr(755,root,root) %{_libdir}/dia/lib*.so
79 %attr(755,root,root) %{_libdir}/dia/lib*.la
80 %{_datadir}/dia
81 %{_datadir}/pixmaps/*
82 %{_mandir}/man1/*
This page took 0.073507 seconds and 4 git commands to generate.