]> git.pld-linux.org Git - packages/c2ps.git/blobdiff - c2ps.spec
- tabs in preamble
[packages/c2ps.git] / c2ps.spec
index 7814aa9da6b17b7a78948f6386947c5ac676c88b..364a4bf3712a0f9a632586393e2ea6d94efcc7f2 100644 (file)
--- a/c2ps.spec
+++ b/c2ps.spec
@@ -1,45 +1,52 @@
 Summary:       Tool for converting C/C++ sources to PostScript
-Summary(pl):   Narzêdzie do konwersji ¼róde³ C/C++ na PostScript
+Summary(pl.UTF-8):     Narzędzie do konwersji źródeł C/C++ na PostScript
 Name:          c2ps
 Version:       4.0
-Release:       1
-Group:         Utilities/Printing
-Group(pl):     Narzêdzia/Drukowanie
+Release:       3
 License:       GPL
+Group:         Applications/Printing
 Source0:       http://www.geocities.com/SiliconValley/Park/2055/%{name}-40.tgz
-Patch0:                c2ps-OPT_FLAGS.patch
+# Source0-md5: 195553258f2f18198f164ea8f66362dc
+Patch0:                %{name}-OPT_FLAGS.patch
+URL:           http://www.geocities.com/SiliconValley/Park/2055/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-
-%description -l pl
+This small utility converts C/C++ sources to PostScript. It performs
+syntax highlighting and can add many very useful informations to the
+printout, such as line numbers, headers and indexes of functions on
+each page. Great thing, if you waste too much time in traffic jams or
+public transport ;)
+
+%description -l pl.UTF-8
+To małe narzędzie konwertuje pliki źródłowe C/C++ do PostScriptu.
+Wykonuje wyróżnianie składni a także potrafi dodać do wydruku wiele
+bardzo użytecznych informacji, takich jak numery linii, nagłówki oraz
+indeksy funkcji znajdujących się na poszczególnych stronach. Świetna
+rzecz, jeśli tracisz zbyt dużo czasu stojąc w korkach, albo w
+komunikacji miejskiej ;)
 
 %prep
 %setup -q
 %patch0 -p1
 
 %build
-
-%{__make} OPT_FLAGS="$RPM_OPT_FLAGS"
+%{__make} \
+       CC="%{__cc}" \
+       OPT_FLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
 
 install c2ps   $RPM_BUILD_ROOT%{_bindir}
 install c2ps.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
-strip --strip-unneeded c2ps
-
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
-       README
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc README
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/*/*
-%doc README.gz
This page took 0.031642 seconds and 4 git commands to generate.