LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File go-pqueue.spec of Package go-pqueue (Project devel:languages:go)

Name:           go-pqueue
Version:        0.1.2
Release:        0
Summary:        A simple min-heap priority queue
Group:          Development/Languages/Other
License:        BSD
URL:            http://github.com/gnanderson/pqueue
Source0:        go-pqueue-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  go-devel
Provides:       github.com/gnanderson/pqueue
%if 0%{?suse_version} >= 1100
Recommends:     go-pqueue-doc
%endif
%{go_provides}
%{go_requires}

%description
pqueue is a simple min-heap style priority queue for Go programming language. It
satisfies the standard library container/heap and sort interfaces.

%package doc
Summary:        API documenation
Group:          Documentation/Other
Requires:       %{name} = %{version}

%description doc
API, examples and documentation.

%prep
%setup -q -n pqueue

%build
%goprep github.com/gnanderson/pqueue
%gofix  github.com/gnanderson/pqueue
%gobuild

%install
%{go_disable_brp_strip_static_archive}

%goinstall
%godoc

%check
%gotest github.com/gnanderson/pqueue

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc README LICENSE doc/example.go
%{go_contribdir}/*

%files doc
%defattr(-,root,root,-)
%{go_contribsrcdir}/*

%changelog