]> git.pld-linux.org Git - packages/boxes.git/blob - boxes.spec
- tabs in preamble
[packages/boxes.git] / boxes.spec
1 Summary:        Draw any kind of box around some given text
2 Summary(pl.UTF-8):      Rysowanie dowolnych ramek wokół podanego tekstu
3 Name:           boxes
4 Version:        1.1
5 Release:        1
6 License:        GPL
7 Group:          Applications/Text
8 Source0:        http://boxes.thomasjensen.com/download/%{name}-%{version}.src.tar.gz
9 # Source0-md5:  d2ef9fa28a87bf32b3fe0c47ab82fa97
10 Patch0:         %{name}-cflags.patch
11 URL:            http://boxes.thomasjensen.com/
12 BuildRequires:  bison
13 BuildRequires:  flex
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 "boxes" can draw all kinds of boxes around its input text, ranging
18 from a C comment box to complex ASCII art. These boxes may also be
19 removed, even if they have been badly damaged by editing of the text
20 inside. Since boxes may be open on any side, "boxes" can also be used
21 to create regional comments in any programming language. With the help
22 of an editor macro or mapping, damaged boxes can easily be repaired.
23 New box designs of all sorts can easily be added and shared by
24 appending to a free format configuration file.
25
26 %description -l pl.UTF-8
27 Za pomocą boxes można rysować różne ramki wokół podanego tekstu,
28 począwszy od komentarzy C a skończywszy na skomplikowanym ascii art.
29 Można również usuwać te ramki, nawet jeśli zostały poważnie uszkodzone
30 edycją znajdującego się w nich tekstu. Ponieważ mogą być otwarte z
31 każdej strony, można ich użyć do tworzenia lokalnych komentarzy w
32 jakimkolwiek języku programowania. Za pomocą edytora makr lub
33 mapowania można łatwo naprawić uszkodzone ramki. Można również łatwo
34 dodać nowe rodzaje ramek różnego rodzaju, dołączając je do pliku
35 konfiguracyjnego o otwartym formacie.
36
37 %prep
38 %setup -q
39 %patch0 -p1
40
41 %build
42 rm -f doc/boxes.1
43 rm -f src/boxes.h
44 %{__make} \
45         CC="%{__cc}" \
46         CFLAGS_ADDTL="%{rpmcflags}" \
47         GLOBALCONF="%{_sysconfdir}/boxes.conf"
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_sysconfdir}}
52
53 install src/boxes $RPM_BUILD_ROOT%{_bindir}
54 install doc/boxes.1 $RPM_BUILD_ROOT%{_mandir}/man1
55 install boxes-config $RPM_BUILD_ROOT%{_sysconfdir}/boxes.conf
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc README
63 %attr(755,root,root) %{_bindir}/*
64 %{_mandir}/man1/*
65 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
This page took 0.057745 seconds and 3 git commands to generate.