Skip to content

Commit 3add839

Browse files
committed
update with snippets
1 parent edfcf78 commit 3add839

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.7.1 - sneaky snippets
2+
* add snippets for some annoying to remember patterns
3+
14
## 0.7.0 - careful commands
25
* common commands detected
36
* %package sections stand out

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "language-rpm-spec",
33
"main": "./lib/language-rpm-spec",
4-
"version": "0.7.0",
4+
"version": "0.7.1",
55
"description": "Syntax highlighting for RPM Specfiles",
66
"keyswords": [
77
"rpm",
@@ -11,7 +11,7 @@
1111
"specfile"
1212
],
1313
"engines": {
14-
"atom": ">=1.0.0 <2.0.0",
14+
"atom": ">=1.0.0",
1515
"node": "*"
1616
},
1717
"homepage": "http://atom.github.io",

snippets/rpm-spec.cson

+29
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,32 @@
1313
# Please submit bugfixes or comments via
1414
# https://github.com/waveclaw/language-rpm-spec/issues
1515
#
16+
'.source.rpm-spec':
17+
'subpackage':
18+
'prefix': '%pack'
19+
'body': """
20+
%package $1
21+
Group: foo
22+
Summary: bar
23+
%description $1
24+
baz
25+
26+
%files $1
27+
"""
28+
'build':
29+
'prefix': '%bld'
30+
'body': """
31+
%build
32+
%configure
33+
%if %{defined make_jobs}
34+
%{make_jobs} %{?_smp_mflags}
35+
%else
36+
%{__make} %{?_smp_mflags}
37+
%endif
38+
"""
39+
'install':
40+
'prefix': '%inst'
41+
'body': """
42+
%install
43+
%{__make} install DESTDIR=%{buildroot} %{?_smp_mflags}
44+
"""

0 commit comments

Comments
 (0)