summaryrefslogtreecommitdiff
path: root/mkprintf.spec
blob: 5558b75a84317f89f0a263b3ebd7a0daa33c8636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Summary:	Wraps any text file to a C function that outputs the text
Summary(pl):	Zamienia plik tekstowy na funkcję C drukującą ten tekst
Name:		mkprintf
Version:	1.0
Release:	1
Group:		Development/Tools
License:	GPL
Source0:	ftp://sunsite.unc.edu/pub/Linux/devel/compiler-tools/%{name}-%{version}.tgz
BuildRequires:	flex
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Mkprintf reads the named input file (or standard input if no file is
named) and writes a C function that outputs the text of this file.
This is what lazy C programmers have been waiting for.

%description -l pl
Mkprintf wczytuje podany plik (lub standardowe wejście) i wypisuje
funkcję w C, która wypisze podany tekst. Typowe narzędzie dla leniwych
programistów.

%prep
%setup -q

%build
%{__make} CFLAGS="%{rpmcflags} -DVERSION=%{version}" \

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8}

install mkprintf $RPM_BUILD_ROOT%{_bindir}/mkprintf
install mkprintf.8 $RPM_BUILD_ROOT%{_mandir}/man8/mkprintf.8

gzip -9nf COPYING README

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*
%{_mandir}/*/*
%doc *.gz