Skip to content

Commit

Permalink
Modify default spec template (#10)
Browse files Browse the repository at this point in the history
Remove doc section, deprecated options, and use Arches from nodejs-packaging
  • Loading branch information
kasicka authored and dLobatog committed Aug 24, 2016
1 parent 7db2c72 commit 1e5c0c8
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions default.n2r
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,30 @@

%global npm_name $NAME

%global enable_tests 0

%{?nodejs_find_provides_and_requires}

Name: nodejs-%{npm_name}
Version: $VERSION
Release: $RELEASE%{?dist}
Summary: $SUMMARY
License: $LICENSE
Group: Development/Libraries
URL: $PROJECTURL
$SOURCES
Requires: nodejs(engine)
BuildRequires: nodejs-devel
BuildRequires: nodejs-packaging
BuildRequires: npm
BuildArch: noarch
BuildArch: noarch

%if 0%{?fedora} >= 19
ExclusiveArch: %{nodejs_arches} noarch
Provides: npm(%{npm_name}) = %{version}
%else
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%endif

$PROVIDES

%description
$DESCRIPTION

%package doc
Summary: Documentation for nodejs-%{npm_name}
Group: Documentation
Requires: nodejs-%{npm_name} = %{version}-%{release}
BuildArch: noarch

%description doc
This package contains documentation for nodejs-%{npm_name}
%{summary}

%prep
$SETUP
Expand All @@ -47,14 +43,16 @@ $BINSNIPPET

%nodejs_symlink_deps

%if 0%{?enable_tests}
%check
%{nodejs_symlink_deps} --check
#$CHECK
%endif

%files
%{nodejs_sitelib}/%{npm_name}
$FILESBINSNIPPET
$LICENSEFILE

%files doc
$DOCFILES

%changelog

0 comments on commit 1e5c0c8

Please sign in to comment.