]> git.pld-linux.org Git - packages/doxygen.git/blob - doxygen.spec
- fix 64-bits issue, release 4.
[packages/doxygen.git] / doxygen.spec
1 #
2 # Conditional build:
3 %bcond_without  qt      # without doxywizard (qt-based)
4 #
5 Summary:        Doxygen is the documentation system for C/C++
6 Summary(es):    Doxygen es el sistema de documentación para C/C++
7 Summary(pl):    System dokumentowania dla C/C++
8 Summary(pt_BR): Um sistema de documentação para C/C++
9 Summary(ru):    óÉÓÔÅÍÁ ÄÏËÕÍÅÎÔÉÒÏ×ÁÎÉÑ ÄÌÑ C ÔÁ C++
10 Summary(uk):    óÉÓÔÅÍÁ ÄÏËÕÍÅÎÔÕ×ÁÎÎÑ ÄÌÑ C ÔÁ C++
11 Name:           doxygen
12 Version:        1.5.1
13 Release:        4
14 Epoch:          1
15 License:        GPL
16 Group:          Development/Tools
17 Source0:        ftp://ftp.stack.nl/pub/users/dimitri/%{name}-%{version}.src.tar.gz
18 # Source0-md5:  43b8e58e5ca70cb8f1285c35a171014e
19 Patch0:         %{name}-system-libpng.patch
20 Patch1:         %{name}-qt-dirs.patch
21 Patch2:         %{name}-lib64.patch
22 Patch3:         %{name}-qt-thread.patch
23 Patch4:         %{name}-64bit.patch
24 URL:            http://www.doxygen.org/
25 BuildRequires:  flex
26 BuildRequires:  ghostscript
27 BuildRequires:  ghostscript-fonts-std
28 BuildRequires:  libpng-devel
29 BuildRequires:  libstdc++-devel
30 BuildRequires:  python
31 %{?with_qt:BuildRequires:       qt-devel >= 2.1.0}
32 BuildRequires:  tetex-format-latex >= 1:3.0-2
33 BuildRequires:  tetex-format-pdflatex >= 1:3.0-2
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 # because of qt
37 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
38
39 %description
40 Doxygen is a documentation system for C, C++ and IDL. It can generate
41 an on-line class browser (in HTML) and/or an off-line reference manual
42 (in LaTeX) from a set of documented source files. There is also
43 support for generating man pages and for converting the generated
44 output into Postscript, hyperlinked PDF or compressed HTML. The
45 documentation is extracted directly from the sources.
46
47 Doxygen can also be configured to extract the code-structure from
48 undocumented source files. This can be very useful to quickly find
49 your way in large source distributions.
50
51 %description -l es
52 Doxygen es un sistema de documentación para C, C++ e IDL. Es capaz de
53 generar un navegador on-line entre clases (en HTML) y-o un manual
54 off-line de referencia (en LaTeX) a partir de un conjunto de ficheros
55 de código fuente documentados. También hay soporte para generar
56 páginas man y para convertir la generada salida an Postscript, PDF con
57 hiperenlaces o HTML comprimido. La documentación se extrae
58 directamente de los fuentes.
59
60 Doxygen puede también ser configurado a extraer la estructura del
61 código de código fuente que carece de documentación. Eso puede ser muy
62 útil para orientarse rápidamente en distribuciones grandes de código
63 fuente.
64
65 %description -l pl
66 Doxygen to system dokumentowania dla C, C++ i IDL. Mo¿e generowaæ
67 dokumentacjê klas on-line (w HTML-u) lub podrêcznik off-line (w
68 LaTeXu) z zestawu udokumentowanych plików ¼ród³owych. Ma tak¿e
69 mo¿liwo¶æ generowania stron man i konwersji na Postscript, PDF z
70 hiper³±czami oraz skompresowany HTML. Dokumentacja jest wyci±gana
71 bezpo¶rednio ze ¼róde³.
72
73 Doxygen mo¿e byæ skonfigurowany tak¿e do wyci±gania struktury kodu z
74 nieudokumentowanych plików ¼ród³owych. Mo¿e byæ to przydatne do
75 szybkiego odnalezienia siê w du¿ych ¼ród³ach.
76
77 %description -l pt_BR
78 Doxygen é uma sistema de documentação para C e C++ que gera um class
79 browser on-line (em HTML) e/ou um manual de referencia off-line (em
80 LaTeX) a partir de um conjunto de fontes documentados. A documentação
81 é extraida diretamente a partir dos fontes.
82
83 %description -l ru
84 Doxygen - ÜÔÏ ÓÉÓÔÅÍÁ ÄÏËÕÍÅÎÔÉÒÏ×ÁÎÉÑ ÄÌÑ C, C++ É IDL. ïÎÁ ÍÏÖÅÔ
85 ÓÏÚÄÁÔØ ÏÎÌÁÊÎÏ×ÙÊ ÂÒÏÕÚÅÒ ËÌÁÓÓÏ× (× HTML) É/ÉÌÉ ÏÆÆÌÁÊÎÏ×ÙÊ
86 ÓÐÒÁ×ÏÞÎÉË (× LaTeX) ÉÚ ÎÁÂÏÒÁ ÄÏËÕÍÅÎÔÉÒÏ×ÁÎÎÙÈ ÆÁÊÌÏ×. åÓÔØ ÔÁËÖÅ
87 ÐÏÄÄÅÒÖËÁ ÓÏÚÄÁÎÉÑ man-ÓÔÒÁÎÉàɠËÏÎ×ÅÒÔÁÃÉÉ ÓÇÅÎÅÒÉÒÏ×ÁÎÎÏÇÏ ×Ù×ÏÄÁ ×
88 Postscript, PDF Ó ÇÉÐÅÒÓÓÙÌËÁÍÉ É ËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÙÊ HTML. äÏËÕÍÅÎÔÁÃÉÑ
89 ÉÚ×ÌÅËÁÅÔÓÑ ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ÉÚ ÉÓÈÏÄÎÙÈ ÆÁÊÌÏ×.
90
91 Doxygen ÍÏÖÎÏ ÔÁËÖÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÄÌÑ ÐÏÌÕÞÅÎÉÑ ÓÔÒÕËÔÕÒÙ ËÏÄÁ ÉÚ
92 ÎÅÌÏËÕÍÅÎÔÉÒÏ×ÁÎÎÙÈ ÉÓÈÏÄÎÙÈ ÆÁÊÌÏ×. üÔÏ ÍÏÖÅÔ ÂÙÔØ ÏÞÅÎØ ÐÏÌÅÚÎÙÍ ÄÌÑ
93 ÔÏÇÏ, ÞÔÏÂÙ ÂÙÓÔÏ ÒÁÚÏÂÒÁÔØÓÑ × ÂÏÌØÛÏÍ ÐÒÏÅËÔÅ.
94
95 %description -l uk
96 Doxygen - ÃÅ ÓÉÓÔÅÍÁ ÄÏËÕÍÅÎÔÕ×ÁÎÎÑ ÄÌÑ C, C++ ÔÁ IDL. ÷ÏÎÁ ÍÏÖÅ
97 ÓÔ×ÏÒÉÔÉ ÏÎÌÁÊÎÏ×ÉÊ ÂÒÏÕÚÅÒ ËÌÁӦנ(× HTML) ÔÁ/ÞÉ ÏÆÆÌÁÊÎÏ×ÉÊ ÄÏצÄÎÉË
98 (× LaTeX) Ú ÎÁÂÏÒÕ ÄÏËÕÍÅÎÔÏ×ÁÎÉÈ ×ÉȦÄÎÉÈ ÆÁÊ̦×. ´ ÔÁËÏ֠ЦÄÔÒÉÍËÁ
99 ÄÌÑ ÓÔ×ÏÒÅÎÎÑ man-ÓÔÏÒ¦ÎÏË ÔÁ ËÏÎ×ÅÒÔÁ槠ÚÇÅÎÅÒÏ×ÁÎÏÇÏ ×É×ÏÄÕ ×
100 Postscript, PDF Ú Ç¦ÐÅÒ̦ÎËÁÍÉ ÔÁ ËÏÍÐÒÅÓÏ×ÁÎÉÊ HTML. äÏËÕÍÅÎÔÁæÑ
101 ×ÉÄÏÂÕ×Á¤ÔØÓÑ ÂÅÚÐÏÓÅÒÄÎØÏ Ú ×ÉȦÄÎÉÈ ÆÁÊ̦×.
102
103 Doxygen ÍÏÖÎÁ ÔÁËÏÖ ÚËÏÎƦÇÕÒÕ×ÁÔÉ ÄÌÑ ÏÔÒÉÍÁÎÎÑ ÓÔÒÕËÔÕÒÉ ËÏÄÕ Ú
104 ÎÅÄÏËÕÍÅÎÔÏ×ÁÎÉÈ ×ÉȦÄÎÉÈ ÆÁÊ̦×. ãÅ ÍÏÖÅ ÂÕÔÉ ÄÕÖÅ ËÏÒÉÓÎÉÍ ÄÌÑ ÔÏÇÏ,
105 ÝÏ Û×ÉÄËÏ ÒÏÚ¦ÂÒÁÔÉÓÑ Õ ×ÅÌÉËÏÍÕ ÐÒÏÅËÔ¦.
106
107 %package doxywizard
108 Summary:        A GUI front-end for creating and editing configuration files
109 Summary(es):    Un front-end GUI para crear y editar ficheros de configuración
110 Summary(pl):    GUI do tworzenia i edycji plików konfiguracyjnych
111 Summary(pt_BR): Wizard gráfico para o Doxygen
112 Group:          X11/Applications
113 Requires:       %{name} = %{epoch}:%{version}-%{release}
114 Requires:       qt >= 2.1.0
115
116 %description doxywizard
117 Doxywizard is a GUI front-end for creating and editing configuration
118 files that are used by doxygen.
119
120 %description doxywizard -l es
121 Doxywizard es un front-end GUI para crear y editar los ficheros de
122 configuración que son usados por doxygen.
123
124 %description doxywizard -l pl
125 Doxywizard to frontend z graficznym interfejsem do tworzenia i edycji
126 plików konfiguracyjnych u¿ywanych przez doxygen.
127
128 %description doxywizard -l pt_BR
129 Wizard gráfico para o Doxygen.
130
131 %prep
132 %setup -q
133 %patch0 -p1
134 %patch1 -p1
135 %if "%{_lib}" == "lib64"
136 %patch2 -p1
137 %endif
138 %patch3 -p1
139
140 rm -rf libpng src/unistd.h
141
142 %build
143 export QTDIR=%{_prefix}
144 # don't change it to %%configure, not autoconf-generated!
145 ./configure \
146         --prefix %{_prefix} \
147         --perl %{__perl} \
148         --install %{_bindir}/install \
149         %{?with_qt:--with-doxywizard}
150
151 %{__make} \
152         CC="%{__cc}" \
153         CXX="%{__cxx}" \
154         QTDIR="%{_prefix}" \
155         CFLAGS="%{rpmcflags}" \
156         CXXFLAGS="%{rpmcxxflags} -DQT_NO_CODECS -DQT_LITE_UNICODE -fno-rtti -fno-exceptions"
157
158 %{__make} docs
159 #%%{__make} pdf
160
161 %install
162 rm -rf $RPM_BUILD_ROOT
163 install -d $RPM_BUILD_ROOT%{_bindir}
164
165 install bin/doxy* $RPM_BUILD_ROOT%{_bindir}
166
167 %clean
168 rm -rf $RPM_BUILD_ROOT
169
170 %files
171 %defattr(644,root,root,755)
172 %doc html examples README
173 %attr(755,root,root) %{_bindir}/doxygen
174 %attr(755,root,root) %{_bindir}/doxytag
175
176 %if %{with qt}
177 %files doxywizard
178 %defattr(644,root,root,755)
179 %attr(755,root,root) %{_bindir}/doxywizard
180 %endif
This page took 0.051137 seconds and 3 git commands to generate.