Skip to content

Commit

Permalink
Fixed rpmbuild bin directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
n13l committed Sep 18, 2017
1 parent fa463b9 commit 5938a6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions rpm/openaaa.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ License: MIT
Group: Applications/System
Source0: %{name}-%{version}.tar.gz
URL: https://github.com/n13l/openaaa
BuildRequires: flex bison gperf pkgconfig swig java-1.8.0-openjdk-devel clang
BuildRequires: flex bison gperf pkgconfig swig java-1.8.0-openjdk-devel clang which

%define debug_package %{nil}

Expand Down Expand Up @@ -47,7 +47,9 @@ make defconfig -j1 CC=clang
make -j1 CC=clang

%install
make install INSTALL_PATH="%{buildroot}%" INSTALL_MOD_PATH="%{buildroot}%{_libdir}"
echo "INSTALL_PATH=%{buildroot}%"
echo "INSTALL_MOD_PATH=%{buildroot}%{_libdir}"
make install INSTALL_PATH="%{buildroot}/usr" INSTALL_MOD_PATH="%{buildroot}%{_libdir}"
make modules_install INSTALL_MOD_PATH="%{buildroot}%{_libdir}"
find %{buildroot}

Expand All @@ -62,6 +64,7 @@ rm -rf %{buildroot}
%files
%defattr(-, root, root)
%{_libdir}/*
%{_bindir}/*

%files java
%defattr(-, root, root)
Expand Down
7 changes: 5 additions & 2 deletions scripts/package/openaaa.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ License: MIT
Group: Applications/System
Source0: %{name}-%{version}.tar.gz
URL: https://github.com/n13l/openaaa
BuildRequires: flex bison gperf pkgconfig swig java-1.8.0-openjdk-devel clang
BuildRequires: flex bison gperf pkgconfig swig java-1.8.0-openjdk-devel clang which

%define debug_package %{nil}

Expand Down Expand Up @@ -47,7 +47,9 @@ make defconfig -j1 CC=clang
make -j1 CC=clang

%install
make install INSTALL_PATH="%{buildroot}%" INSTALL_MOD_PATH="%{buildroot}%{_libdir}"
echo "INSTALL_PATH=%{buildroot}%"
echo "INSTALL_MOD_PATH=%{buildroot}%{_libdir}"
make install INSTALL_PATH="%{buildroot}/usr" INSTALL_MOD_PATH="%{buildroot}%{_libdir}"
make modules_install INSTALL_MOD_PATH="%{buildroot}%{_libdir}"
find %{buildroot}

Expand All @@ -62,6 +64,7 @@ rm -rf %{buildroot}
%files
%defattr(-, root, root)
%{_libdir}/*
%{_bindir}/*

%files java
%defattr(-, root, root)
Expand Down

0 comments on commit 5938a6e

Please sign in to comment.