Skip to content
Permalink
Browse files

Add RPM specfile language (#327)

* Add RPM specfile language definition

* Correct syntax for hash inheritance

* Fix line count to avoid failed test
  • Loading branch information...
evitalis authored and XAMPPRocky committed Apr 14, 2019
1 parent 8b16ce6 commit b55653ba00cf452d72065053277f7ad19d98e79c
Showing with 49 additions and 0 deletions.
  1. +7 −0 languages.json
  2. +42 −0 tests/data/rpmspec.spec
@@ -1319,6 +1319,13 @@
"cshtml"
]
},
"RPMSpecfile":{
"name":"RPM Specfile",
"base":"hash",
"extensions":[
"spec"
]
},
"Ruby":{
"line_comment":[
"#"
@@ -0,0 +1,42 @@
# 42 lines 22 code 4 comments 16 blanks

Name: example
Version: 0.0.1
Release: 1%{?dist}
Summary: an example specfile

Group:
URL:
Source0:

# test comments for requirements
BuildRequires:
Requires:

%description


%prep
%setup -q


# build the project
%build
%configure
make build


# install the files here
%install
make install


%clean


%files
%defattr(-,root,root,-)
%doc


%changelog

0 comments on commit b55653b

Please sign in to comment.
You can’t perform that action at this time.