First import
This commit is contained in:
parent
2359f0d0a5
commit
2f90e7bd66
4 changed files with 67 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/emacs-dockerfile-mode-1.2.tar.gz
|
||||
18
dockerfile-mode-init.el
Normal file
18
dockerfile-mode-init.el
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
(autoload 'dockerfile-build-buffer "dockerfile-mode" "\
|
||||
Build an image called IMAGE-NAME based upon the buffer.
|
||||
If prefix arg NO-CACHE is set, don't cache the image.
|
||||
|
||||
\(fn IMAGE-NAME &optional NO-CACHE)" t nil)
|
||||
|
||||
(autoload 'dockerfile-build-no-cache-buffer "dockerfile-mode" "\
|
||||
Build an image called IMAGE-NAME based upon the buffer without cache.
|
||||
|
||||
\(fn IMAGE-NAME)" t nil)
|
||||
|
||||
(autoload 'dockerfile-mode "dockerfile-mode" "\
|
||||
A major mode to edit Dockerfiles.
|
||||
\\{dockerfile-mode-map}
|
||||
|
||||
\(fn)" t nil)
|
||||
|
||||
(add-to-list 'auto-mode-alist '("Dockerfile\\(?:\\..*\\)?\\'" . dockerfile-mode))
|
||||
47
emacs-dockerfile-mode.spec
Normal file
47
emacs-dockerfile-mode.spec
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
%global pkg dockerfile-mode
|
||||
|
||||
Name: emacs-%{pkg}
|
||||
Version: 1.2
|
||||
Release: 1%{?dist}
|
||||
Summary: An emacs mode for handling Dockerfiles
|
||||
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/spotify/%{pkg}
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: %{pkg}-init.el
|
||||
|
||||
BuildRequires: emacs
|
||||
Requires: emacs(bin) >= %{_emacs_version}
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
This package provides a major mode `dockerfile-mode' for use with the standard
|
||||
`Dockerfile' file format. Additional convenience functions allow images to be
|
||||
built easily.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pkg}-%{version}
|
||||
|
||||
|
||||
%build
|
||||
%{_emacs_bytecompile} %{pkg}.el
|
||||
|
||||
|
||||
%install
|
||||
install -dm 0755 $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}/
|
||||
install -pm 0644 %{pkg}.el* -t $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}/
|
||||
|
||||
install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.el
|
||||
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_emacs_sitelispdir}/%{pkg}/
|
||||
%{_emacs_sitestartdir}/*.el
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Sep 03 2019 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.2-1
|
||||
- Initial RPM release
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
SHA512 (emacs-dockerfile-mode-1.2.tar.gz) = c956727645f5dec3af90a4c82cd623804e4a5a6ae4dfe8e812b6fe107065ff73c3cada47856d8c50989df054694f84c75f26fdcb8e584bfa7482b7abcd041bc9
|
||||
Loading…
Add table
Add a link
Reference in a new issue