packaging: Initial packaging
[platform/upstream/unifdef.git] / packaging / unifdef.spec
1 Name:           unifdef
2 Version:        2.8
3 Release:        1
4 License:        BSD
5 Summary:        Removes ifdefs from C files
6 Url:            http://dotat.at/prog/unifdef/
7 Group:          Development/Tools
8 Source:         http://dotat.at/prog/unifdef/%{name}-%{version}.tar.gz
9
10 %description
11 Unifdef is useful for removing ifdef'ed lines from a file while otherwise
12 leaving the file alone.  Unifdef acts on #ifdef, #ifndef, #else, and #enĀ­
13 dif lines, and it knows only enough about C to know when one of these is
14 inactive because it is inside a comment, or a single or double quote.
15
16 %track
17 prog %{name} = {
18         url = http://dotat.at/prog/unifdef/
19         version = %{version}
20         regex = %{name}-(__VER__)\.tar\.gz
21 }
22
23 %prep
24 %setup -q
25
26 %build
27 make %?_smp_mflags CC=gcc CFLAGS="%{optflags}"
28
29 %install
30 make install DESTDIR=%{buildroot} prefix=%{_prefix}
31
32 %files
33 %license COPYING
34 %{_bindir}/unifdef
35 %{_bindir}/unifdefall
36 %{_mandir}/man1/unifdef.1*
37 %{_mandir}/man1/unifdefall.1*
38
39 %changelog