1 |
%define name source-highlight |
2 |
%define version 3.1.3 |
3 |
%define release %mkrel 4 |
4 |
|
5 |
%define major 3 |
6 |
%define libname %mklibname %name %major |
7 |
%define develname %mklibname -d %name |
8 |
%define staticname %mklibname -s -d %name |
9 |
Summary: Produces a document with syntax highlighting |
10 |
Name: %{name} |
11 |
Version: %{version} |
12 |
Release: %{release} |
13 |
Group: Development/Other |
14 |
License: GPLv3+ |
15 |
Source: ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz |
16 |
URL: http://www.gnu.org/software/src-highlite/ |
17 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
18 |
Obsoletes: java2html |
19 |
Obsoletes: cpp2html |
20 |
Provides: java2html |
21 |
Provides: cpp2html |
22 |
|
23 |
BuildRequires: bison |
24 |
BuildRequires: flex |
25 |
BuildRequires: boost-devel |
26 |
BuildRequires: ctags help2man |
27 |
Requires: ctags help2man |
28 |
|
29 |
%description |
30 |
GNU Source-highlight produces a document with syntax highlighting |
31 |
when given a source file. It handles many languages, e.g., Java, |
32 |
C/C++, Prolog, Perl, PHP3, Python, Flex, HTML, and other formats, |
33 |
e.g., ChangeLog and log files, as source languages and HTML, XHTML, |
34 |
DocBook, ANSI color escapes, LaTeX, and Texinfo as output formats. |
35 |
Input and output formats can be specified with a regular expression- |
36 |
oriented syntax. |
37 |
|
38 |
%package -n %libname |
39 |
Group: System/Libraries |
40 |
Summary:Produces a document with syntax highlighting |
41 |
|
42 |
%description -n %libname |
43 |
GNU Source-highlight produces a document with syntax highlighting |
44 |
when given a source file. It handles many languages, e.g., Java, |
45 |
C/C++, Prolog, Perl, PHP3, Python, Flex, HTML, and other formats, |
46 |
e.g., ChangeLog and log files, as source languages and HTML, XHTML, |
47 |
DocBook, ANSI color escapes, LaTeX, and Texinfo as output formats. |
48 |
Input and output formats can be specified with a regular expression- |
49 |
oriented syntax. |
50 |
|
51 |
%package -n %develname |
52 |
Group: Development/C |
53 |
Summary:Produces a document with syntax highlighting |
54 |
Provides: lib%name-devel = %version-%release |
55 |
Requires: %libname = %version-%release |
56 |
|
57 |
%description -n %develname |
58 |
GNU Source-highlight produces a document with syntax highlighting |
59 |
when given a source file. It handles many languages, e.g., Java, |
60 |
C/C++, Prolog, Perl, PHP3, Python, Flex, HTML, and other formats, |
61 |
e.g., ChangeLog and log files, as source languages and HTML, XHTML, |
62 |
DocBook, ANSI color escapes, LaTeX, and Texinfo as output formats. |
63 |
Input and output formats can be specified with a regular expression- |
64 |
oriented syntax. |
65 |
|
66 |
%package -n %staticname |
67 |
Group: Development/C |
68 |
Summary:Produces a document with syntax highlighting |
69 |
Provides: lib%name-static-devel = %version-%release |
70 |
Requires: %develname = %version-%release |
71 |
|
72 |
%description -n %staticname |
73 |
GNU Source-highlight produces a document with syntax highlighting |
74 |
when given a source file. It handles many languages, e.g., Java, |
75 |
C/C++, Prolog, Perl, PHP3, Python, Flex, HTML, and other formats, |
76 |
e.g., ChangeLog and log files, as source languages and HTML, XHTML, |
77 |
DocBook, ANSI color escapes, LaTeX, and Texinfo as output formats. |
78 |
Input and output formats can be specified with a regular expression- |
79 |
oriented syntax. |
80 |
|
81 |
%prep |
82 |
%setup -q |
83 |
|
84 |
%build |
85 |
%configure2_5x --disable-dependency-tracking \ |
86 |
--with-boost-libdir=%_libdir |
87 |
%make |
88 |
|
89 |
%install |
90 |
rm -rf $RPM_BUILD_ROOT |
91 |
%makeinstall_std |
92 |
|
93 |
rm -fr $RPM_BUILD_ROOT%{_datadir}/doc/ |
94 |
|
95 |
%post |
96 |
%_install_info %{name}.info |
97 |
|
98 |
%postun |
99 |
%_remove_install_info %{name}.info |
100 |
|
101 |
%clean |
102 |
rm -rf $RPM_BUILD_ROOT |
103 |
|
104 |
%files |
105 |
%defattr (-,root,root) |
106 |
%doc AUTHORS README CREDITS NEWS TODO.txt THANKS |
107 |
%{_bindir}/* |
108 |
%{_datadir}/%{name} |
109 |
%{_mandir}/man1/* |
110 |
%{_infodir}/* |
111 |
%{_sysconfdir}/bash_completion.d/* |
112 |
|
113 |
%files -n %libname |
114 |
%defattr (-,root,root) |
115 |
%_libdir/lib%{name}.so.%{major}* |
116 |
|
117 |
%files -n %develname |
118 |
%defattr (-,root,root) |
119 |
%doc ChangeLog |
120 |
%_libdir/lib%{name}.la |
121 |
%_libdir/lib%{name}.so |
122 |
%_datadir/aclocal/*.m4 |
123 |
%_libdir/pkgconfig/*.pc |
124 |
%_includedir/srchilite/ |
125 |
|
126 |
%files -n %staticname |
127 |
%defattr (-,root,root) |
128 |
%_libdir/lib%{name}.a |
129 |
|
130 |
|