]> git.pld-linux.org Git - packages/source-highlight.git/blobdiff - source-highlight.spec
- updated to 2.5
[packages/source-highlight.git] / source-highlight.spec
index 00ff52df99b27023abd43b9fd981a587da3a7f57..1beff31601d3ab2c87742c78db1dd46f1993ab92 100644 (file)
@@ -1,11 +1,17 @@
 Summary:       GNU Source Highlight
-Summary(pl):   GNU Source Highlight
+Summary(pl):   Pod¶wietlanie sk³adni z projektu GNU
 Name:          source-highlight
-Version:       1.3
+Version:       2.5
 Release:       1
 License:       GPL
 Group:         Applications/Publishing
-Source0:       ftp://ftp.gnu.org/gnu/source-highlight/%{name}-%{version}.tar.gz
+Source0:       ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz
+# Source0-md5: 1d0b3d821e6102b24b2bff8a305ee8b5
+URL:           http://www.gnu.org/software/src-highlite/
+BuildRequires: automake
+BuildRequires: bison
+BuildRequires: boost-regex-devel
+BuildRequires: flex
 BuildRequires: libstdc++-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -13,36 +19,89 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 This program, given a source file, produces a document with syntax
 highlighting.
 
-At the moment this package can handle
+At the moment this package can handle:
 
-   * Java,
-   * C/C++,
-   * Prolog, new
-   * Perl new
+- Java
+- Javascript
+- C/C++
+- Prolog
+- Perl
+- Php3
+- Python
+- Flex
+- ChangeLog
+- Ruby
+- Lua
+- Caml
+- Sml
+- Log
 
-as source languages, and HTML as output format.
+as source languages, and
+
+- HTML
+- XHTML
+- ANSI color escape sequences (you can use this feature with less)
+
+as output formats.
+
+%description -l pl
+Ten program z pliku ¼ród³owego tworzy dokument z pod¶wietlon±
+sk³adni±.
+
+Aktualnie obs³ugiwane jêzyki ¼ród³owe to:
+
+- Java
+- Javascript
+- C/C++
+- Prolog
+- Perl
+- Php3
+- Python
+- Flex
+- ChangeLog
+- Ruby
+- Lua
+- Caml
+- Sml
+- Log
+
+a wynikiem mo¿e byæ:
+
+- HTML
+- XHTML
+- kolorowa sekwencja ANSI
 
 %prep
 %setup -q
 
 %build
-%configure2_13
+cp -f /usr/share/automake/config.sub .
+%configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf AUTHORS ChangeLog NEWS README THANKS TODO.txt
+mv -f $RPM_BUILD_ROOT%{_docdir}/%{name}/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
 %files
 %defattr(644,root,root,755)
-%doc *.gz doc/*.css
+%doc AUTHORS ChangeLog NEWS README THANKS TODO.txt doc/{*.css,*.html,*.java}
 %attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*.1.gz
-%{_datadir}/source-highlight/*.j2h
+%{_mandir}/man1/*.1*
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*
+%{_infodir}/source-highlight.info*
This page took 0.08137 seconds and 4 git commands to generate.