]> git.pld-linux.org Git - packages/doxygen.git/blob - doxygen.spec
8c32c1e140846ac3e6d1eaea9b3de2e4cde87d67
[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.UTF-8):      Doxygen es el sistema de documentación para C/C++
7 Summary(pl.UTF-8):      System dokumentowania dla C/C++
8 Summary(pt_BR.UTF-8):   Um sistema de documentação para C/C++
9 Summary(ru.UTF-8):      Система документирования для C та C++
10 Summary(uk.UTF-8):      Система документування для C та C++
11 Name:           doxygen
12 Version:        1.7.4
13 Release:        2
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:  ff908759ff7cd9464424b04ae6c68e48
19 Patch0:         %{name}-qt-dirs.patch
20 URL:            http://www.doxygen.org/
21 %{?with_qt:BuildRequires:       QtGui-devel >= 4.3}
22 %{?with_qt:BuildRequires:       QtXml-devel >= 4.3}
23 BuildRequires:  bison
24 BuildRequires:  flex
25 BuildRequires:  ghostscript
26 BuildRequires:  ghostscript-fonts-std
27 BuildRequires:  libpng-devel
28 BuildRequires:  libstdc++-devel
29 BuildRequires:  perl-base
30 %{?with_qt:BuildRequires:       qt4-build >= 4.3}
31 %{?with_qt:BuildRequires:       qt4-qmake >= 4.3}
32 %if "%{pld_release}" == "ti"
33 BuildRequires:  tetex-format-latex >= 1:3.0-2
34 BuildRequires:  tetex-format-pdflatex >= 1:3.0-2
35 %else
36 BuildRequires:  texlive-latex
37 BuildRequires:  texlive-pdftex
38 %endif
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 # because of qt
42 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
43
44 %description
45 Doxygen is a documentation system for C, C++ and IDL. It can generate
46 an on-line class browser (in HTML) and/or an off-line reference manual
47 (in LaTeX) from a set of documented source files. There is also
48 support for generating man pages and for converting the generated
49 output into Postscript, hyperlinked PDF or compressed HTML. The
50 documentation is extracted directly from the sources.
51
52 Doxygen can also be configured to extract the code-structure from
53 undocumented source files. This can be very useful to quickly find
54 your way in large source distributions.
55
56 %description -l es.UTF-8
57 Doxygen es un sistema de documentación para C, C++ e IDL. Es capaz de
58 generar un navegador on-line entre clases (en HTML) y-o un manual
59 off-line de referencia (en LaTeX) a partir de un conjunto de ficheros
60 de código fuente documentados. También hay soporte para generar
61 páginas man y para convertir la generada salida an Postscript, PDF con
62 hiperenlaces o HTML comprimido. La documentación se extrae
63 directamente de los fuentes.
64
65 Doxygen puede también ser configurado a extraer la estructura del
66 código de código fuente que carece de documentación. Eso puede ser muy
67 útil para orientarse rápidamente en distribuciones grandes de código
68 fuente.
69
70 %description -l pl.UTF-8
71 Doxygen to system dokumentowania dla C, C++ i IDL. Może generować
72 dokumentację klas on-line (w HTML-u) lub podręcznik off-line (w
73 LaTeXu) z zestawu udokumentowanych plików źródłowych. Ma także
74 możliwość generowania stron man i konwersji na Postscript, PDF z
75 hiperłączami oraz skompresowany HTML. Dokumentacja jest wyciągana
76 bezpośrednio ze źródeł.
77
78 Doxygen może być skonfigurowany także do wyciągania struktury kodu z
79 nieudokumentowanych plików źródłowych. Może być to przydatne do
80 szybkiego odnalezienia się w dużych źródłach.
81
82 %description -l pt_BR.UTF-8
83 Doxygen é uma sistema de documentação para C e C++ que gera um class
84 browser on-line (em HTML) e/ou um manual de referencia off-line (em
85 LaTeX) a partir de um conjunto de fontes documentados. A documentação
86 é extraida diretamente a partir dos fontes.
87
88 %description -l ru.UTF-8
89 Doxygen - это система документирования для C, C++ и IDL. Она может
90 создать онлайновый броузер классов (в HTML) и/или оффлайновый
91 справочник (в LaTeX) из набора документированных файлов. Есть также
92 поддержка создания man-страниц и конвертации сгенерированного вывода в
93 Postscript, PDF с гиперссылками и компрессированный HTML. Документация
94 извлекается непосредственно из исходных файлов.
95
96 Doxygen можно также сконфигурировать для получения структуры кода из
97 нелокументированных исходных файлов. Это может быть очень полезным для
98 того, чтобы бысто разобраться в большом проекте.
99
100 %description -l uk.UTF-8
101 Doxygen - це система документування для C, C++ та IDL. Вона може
102 створити онлайновий броузер класів (в HTML) та/чи оффлайновий довідник
103 (в LaTeX) з набору документованих вихідних файлів. Є також підтримка
104 для створення man-сторінок та конвертації згенерованого виводу в
105 Postscript, PDF з гіперлінками та компресований HTML. Документація
106 видобувається безпосердньо з вихідних файлів.
107
108 Doxygen можна також зконфігурувати для отримання структури коду з
109 недокументованих вихідних файлів. Це може бути дуже корисним для того,
110 щоб швидко розібратися у великому проекті.
111
112 %package doxywizard
113 Summary:        A GUI front-end for creating and editing configuration files
114 Summary(es.UTF-8):      Un front-end GUI para crear y editar ficheros de configuración
115 Summary(pl.UTF-8):      GUI do tworzenia i edycji plików konfiguracyjnych
116 Summary(pt_BR.UTF-8):   Wizard gráfico para o Doxygen
117 Group:          X11/Applications
118 Requires:       %{name} = %{epoch}:%{version}-%{release}
119
120 %description doxywizard
121 Doxywizard is a GUI front-end for creating and editing configuration
122 files that are used by doxygen.
123
124 %description doxywizard -l es.UTF-8
125 Doxywizard es un front-end GUI para crear y editar los ficheros de
126 configuración que son usados por doxygen.
127
128 %description doxywizard -l pl.UTF-8
129 Doxywizard to frontend z graficznym interfejsem do tworzenia i edycji
130 plików konfiguracyjnych używanych przez doxygen.
131
132 %description doxywizard -l pt_BR.UTF-8
133 Wizard gráfico para o Doxygen.
134
135 %prep
136 %setup -q
137 %patch0 -p1
138
139 %{__rm} addon/doxywizard/Makefile.doxywizard
140
141 %build
142 # don't change it to %%configure, not autoconf-generated!
143 ./configure \
144         --prefix %{_prefix} \
145         --perl %{__perl} \
146         --install %{_bindir}/install \
147         %{?with_qt:--with-doxywizard}
148
149 %{__make} \
150         CC="%{__cc}" \
151         CXX="%{__cxx}" \
152         LINK="%{__cxx}" \
153         QTDIR="%{_prefix}" \
154         CFLAGS="%{rpmcflags}" \
155         CXXFLAGS="%{rpmcxxflags} -DQT_LITE_UNICODE -DNODEBUG -fno-rtti -fno-exceptions" \
156         LFLAGS="%{rpmldflags}"
157
158 %{__make} docs
159 #%%{__make} pdf
160
161 %install
162 rm -rf $RPM_BUILD_ROOT
163 %{__make} install DESTDIR=$RPM_BUILD_ROOT
164
165 %clean
166 rm -rf $RPM_BUILD_ROOT
167
168 %files
169 %defattr(644,root,root,755)
170 %doc html examples README
171 %attr(755,root,root) %{_bindir}/doxygen
172 %attr(755,root,root) %{_bindir}/doxytag
173 %{_mandir}/man1/doxygen.1*
174 %{_mandir}/man1/doxytag.1*
175
176 %if %{with qt}
177 %files doxywizard
178 %defattr(644,root,root,755)
179 %attr(755,root,root) %{_bindir}/doxywizard
180 %{_mandir}/man1/doxywizard.1*
181 %endif
This page took 0.238568 seconds and 2 git commands to generate.