Skip to content

Commit

Permalink
update with snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
waveclaw committed Aug 24, 2015
1 parent edfcf78 commit 3add839
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.7.1 - sneaky snippets
* add snippets for some annoying to remember patterns

## 0.7.0 - careful commands
* common commands detected
* %package sections stand out
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "language-rpm-spec",
"main": "./lib/language-rpm-spec",
"version": "0.7.0",
"version": "0.7.1",
"description": "Syntax highlighting for RPM Specfiles",
"keyswords": [
"rpm",
Expand All @@ -11,7 +11,7 @@
"specfile"
],
"engines": {
"atom": ">=1.0.0 <2.0.0",
"atom": ">=1.0.0",
"node": "*"
},
"homepage": "http://atom.github.io",
Expand Down
29 changes: 29 additions & 0 deletions snippets/rpm-spec.cson
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,32 @@
# Please submit bugfixes or comments via
# https://github.com/waveclaw/language-rpm-spec/issues
#
'.source.rpm-spec':
'subpackage':
'prefix': '%pack'
'body': """
%package $1
Group: foo
Summary: bar
%description $1
baz
%files $1
"""
'build':
'prefix': '%bld'
'body': """
%build
%configure
%if %{defined make_jobs}
%{make_jobs} %{?_smp_mflags}
%else
%{__make} %{?_smp_mflags}
%endif
"""
'install':
'prefix': '%inst'
'body': """
%install
%{__make} install DESTDIR=%{buildroot} %{?_smp_mflags}
"""

0 comments on commit 3add839

Please sign in to comment.