Skip to content

Commit

Permalink
Merge branch 'hotfix-0.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
takama committed Oct 20, 2014
2 parents a2e4d4c + 8db8147 commit e31f950
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.

/*
Package daemon 0.2.0 for use with Go (golang) services.
Package daemon 0.2.1 for use with Go (golang) services.
Package daemon provides primitives for daemonization of golang services.
This package is not provide implementation of user daemon,
Expand Down
51 changes: 51 additions & 0 deletions daemon.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
%global go_import_path github.com/takama/daemon
%global rev 84a4013f96e01fdd14b65d260a78b543e3702ee1
%global shortrev %(r=%{rev}; echo ${r:0:12})
%define debug_package %{nil}

Name: daemon
Version: 0.2.1
Release: 1%{?dist}
Summary: A daemon package for use with Go (golang) services with no dependencies
License: MIT
URL: https://%{go_import_path}
Source0: https://%{go_import_path}/archive/%{version}.tar.gz
BuildRequires: golang

%description
%{summary}

%package devel
Requires: golang
Summary: A daemon package for use with Go (golang) services with no dependencies
Provides: golang(%{go_import_path}) = %{version}-%{release}

%description devel
%{summary}

%prep

%setup -n daemon-%{version}

%build

%install
install -d %{buildroot}/%{gopath}/src/%{go_import_path}
for i in `ls -1|egrep -iv 'license|readme'`; do
cp -ap $i %{buildroot}/%{gopath}/src/%{go_import_path}/
done

%check
#GOPATH=%{buildroot}/%{gopath} go test %{go_import_path}

%files devel
%defattr(-,root,root,-)
%doc README.md LICENSE
%dir %attr(755,root,root) %{gopath}/src/%{go_import_path}
%dir %attr(755,root,root) %{gopath}/src/%{go_import_path}/example
%{gopath}/src/%{go_import_path}/*.go
%{gopath}/src/%{go_import_path}/example/*.go

%changelog
* Mon Oct 20 2014 Igor Dolzhikov - 0.2.1
- add spec for rpm building

0 comments on commit e31f950

Please sign in to comment.