From 8973a62f2b599b513647608cbc079d68f995657d Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Mon, 27 Feb 2017 18:12:48 +0100 Subject: [PATCH] [spec] initial package revision --- cdcc.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 cdcc.spec diff --git a/cdcc.spec b/cdcc.spec new file mode 100644 index 0000000..03b9fb8 --- /dev/null +++ b/cdcc.spec @@ -0,0 +1,46 @@ +Name: cdcc +Version: 0.1 +Release: 1%{?dist} +Summary: Compile flags database generating compiler wrapper + +License: GPL3 +URL: https://github.com/gicmo/cdcc +Source0: https://github.com/gicmo/cdcc/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(json-glib-1.0) +BuildRequires: sqlite-devel +Requires: gcc + +%description +A wrapper for C/C++ compilers, e.g. GCC and clang, that will collect the +compile flags used into a sqlite3 database, from which compile_commands.json +files can be generated. + +%prep +%setup -q -n cdcc-%{version} + +%build +mkdir -p build +cd build +%cmake .. \ + -DGLOBAL_INSTALL=YES \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release +make %{?_smp_mflags} + +%install +cd build +make install DESTDIR=%{buildroot} + +%files +# %license LICENSE +%doc README.md +%{_bindir}/cdcc-* + + +%changelog +* Mon Feb 27 2017 Chrisian Kellner +- Initial package