packaging: Initial packaging
authorAnas Nashif <anas.nashif@intel.com>
Tue, 28 May 2013 03:12:35 +0000 (23:12 -0400)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 6 Jan 2015 11:28:36 +0000 (12:28 +0100)
Change-Id: Icd721f62dcdc6355598a535cb085393fdcfdd8f6
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/unifdef.spec [new file with mode: 0644]

diff --git a/packaging/unifdef.spec b/packaging/unifdef.spec
new file mode 100644 (file)
index 0000000..b5ec718
--- /dev/null
@@ -0,0 +1,39 @@
+Name:           unifdef
+Version:        2.8
+Release:        1
+License:        BSD
+Summary:        Removes ifdefs from C files
+Url:            http://dotat.at/prog/unifdef/
+Group:          Development/Tools
+Source:         http://dotat.at/prog/unifdef/%{name}-%{version}.tar.gz
+
+%description
+Unifdef is useful for removing ifdef'ed lines from a file while otherwise
+leaving the file alone.  Unifdef acts on #ifdef, #ifndef, #else, and #enĀ­
+dif lines, and it knows only enough about C to know when one of these is
+inactive because it is inside a comment, or a single or double quote.
+
+%track
+prog %{name} = {
+       url = http://dotat.at/prog/unifdef/
+       version = %{version}
+       regex = %{name}-(__VER__)\.tar\.gz
+}
+
+%prep
+%setup -q
+
+%build
+make %?_smp_mflags CC=gcc CFLAGS="%{optflags}"
+
+%install
+make install DESTDIR=%{buildroot} prefix=%{_prefix}
+
+%files
+%license COPYING
+%{_bindir}/unifdef
+%{_bindir}/unifdefall
+%{_mandir}/man1/unifdef.1*
+%{_mandir}/man1/unifdefall.1*
+
+%changelog