Skip to content

Commit

Permalink
[spec] initial package revision
Browse files Browse the repository at this point in the history
  • Loading branch information
gicmo committed Feb 27, 2017
1 parent 69a5afa commit 8973a62
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions 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 <christian@kellner.me>
- Initial package

0 comments on commit 8973a62

Please sign in to comment.