Skip to content

Commit

Permalink
Merge pull request #198 from ROunofF/Fix-rpm-build
Browse files Browse the repository at this point in the history
Fix RPMBUILDROOT
  • Loading branch information
armon committed May 21, 2016
2 parents 5200d04 + 57f2a45 commit e69cf74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,15 @@ install-sh
missing
stamp-h1

ac_config
autom4te.cache

.dirstamp
/dist/
/config.*

#OSX
.DS_Store

autom4te.cache/requests
config.guess
config.sub
config.log

Makefile.in
/Makefile
Expand Down
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ sdist: clean
cp -R . /tmp/statsite-@STATSITE_VERSION@
tar -zcv --exclude='.git' --exclude='.gitignore' -f statsite-@STATSITE_VERSION@.tar.gz -C /tmp statsite-@STATSITE_VERSION@

RPMBUILDROOT=/tmp/rpm-build
rpms: sdist build
mkdir -vp $(RPMBUILDROOT)
cp -v *.tar.gz $(RPMBUILDROOT)
Expand Down
6 changes: 3 additions & 3 deletions rpm/statsite.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Summary: A C implementation of statsd.
Group: Applications
License: See the LICENSE file.
URL: https://github.com/armon/statsite
Source0: statsite.tar.gz
Source0: %{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: scons check-devel %{?el7:systemd} %{?fedora:systemd}
AutoReqProv: No
Expand All @@ -26,7 +26,7 @@ getent passwd %{name} >/dev/null || \
exit 0

%prep
%setup -c %{name}-%{version}
%setup

%build
make %{?_smp_mflags}
Expand All @@ -48,7 +48,7 @@ install -m 644 rpm/statsite.tmpfiles.conf $RPM_BUILD_ROOT/etc/tmpfiles.d/statsit
install -m 755 rpm/statsite.initscript $RPM_BUILD_ROOT/etc/init.d/statsite
%endif

install -m 755 statsite $RPM_BUILD_ROOT/usr/sbin
install -m 755 src/statsite $RPM_BUILD_ROOT/usr/sbin
install -m 644 rpm/statsite.conf.example $RPM_BUILD_ROOT/etc/%{name}/statsite.conf
cp -a sinks $RPM_BUILD_ROOT/usr/libexec/%{name}

Expand Down

0 comments on commit e69cf74

Please sign in to comment.