blob: f6561b0cc5918307302f074d2e98137a03929885 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
%define pkg magit
%define pkgname Magit
%if %($(pkg-config emacs) ; echo $?)
%define emacs_version 22.1
%define emacs_lispdir %{_datadir}/emacs/site-lisp
%define emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d
%else
%define emacs_version %(pkg-config emacs --modversion)
%define emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
%define emacs_startdir %(pkg-config emacs --variable sitestartdir)
%endif
Name: emacs-%{pkg}
Version: 2.11.0
Release: 1%{?dist}
Summary: Emacs interface to the most common Git operations
Group: Applications/Editors
License: GPLv3+
URL: http://magit.vc
Source0: https://github.com/magit/magit/releases/download/%{version}/magit-%{version}.tar.gz
BuildArch: noarch
BuildRequires: emacs, emacs-dash, emacs-with-editor, git-core, texinfo
Requires: emacs(bin) >= %{emacs_version}
Requires: emacs-dash, emacs-with-editor
Obsoletes: emacs-%{pkg}-el < 2.3.1-1
Provides: emacs-%{pkg}-el < 2.3.1-1
%description
%{pkgname} is an add-on package for GNU Emacs. It is an interface to
the Git source-code management system that aims to make the most
common operations convenient.
%prep
%setup -q -n magit-%{version}
%build
make \
MAKEINFO='makeinfo --no-split' \
LOAD_PATH='-L %{emacs_lispdir}/dash -L %{emacs_lispdir}/with-editor -L %{_builddir}/magit-%{version}/lisp -L .'
%install
%make_install \
PREFIX=%{_prefix} docdir=%{_pkgdocdir} \
LOAD_PATH='-L %{emacs_lispdir}/dash -L %{emacs_lispdir}/with-editor -L %{_builddir}/magit-%{version}/lisp -L .'
# clean up after magit's installer's assumptions
mkdir -p $RPM_BUILD_ROOT%{emacs_startdir}
mv $RPM_BUILD_ROOT%{emacs_lispdir}/magit/magit-autoloads.el \
$RPM_BUILD_ROOT%{emacs_startdir}/emacs-magit-mode.el
gzip -9 $RPM_BUILD_ROOT%{_infodir}/magit.info
gzip -9 $RPM_BUILD_ROOT%{_infodir}/magit-popup.info
%post
/sbin/install-info /usr/share/info/magit.info.gz /usr/share/info/dir
/sbin/install-info /usr/share/info/magit-popup.info.gz /usr/share/info/dir
%preun
if [ "$1" = 0 ]; then
/sbin/install-info --delete /usr/share/info/magit.info.gz /usr/share/info/dir
/sbin/install-info --delete /usr/share/info/magit-popup.info.gz /usr/share/info/dir
fi
%files
%license COPYING
%doc README.md
%{emacs_lispdir}/%{pkg}/*.el
%{emacs_lispdir}/%{pkg}/*.elc
%{emacs_startdir}/emacs-magit-mode.el
%{_infodir}/magit.info.gz
%{_infodir}/magit-popup.info.gz
%dir %{emacs_lispdir}/%{pkg}
%{_pkgdocdir}/AUTHORS.md
%changelog
* Mon Oct 16 2017 Ting-Wei Lan <lantw44@gmail.com> - 2.11.0-1
- Update to upstream version 2.11.0
* Wed Mar 08 2017 Ting-Wei Lan <lantw44@gmail.com> - 2.10.3-1
- Update to upstream version 2.10.3
* Sat Dec 31 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.9.0-1
- Update to upstream version 2.9.0
* Fri Nov 04 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.8.0-1
- Update to upstream version 2.8.0
* Sat Sep 10 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.7.0-2
- Rebuilt for Fedora 25 and 26
* Tue Jun 21 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.7.0-1
- Update to upstream version 2.7.0
* Fri Apr 01 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.6.0-1
- Update to upstream version 2.6.0
* Thu Mar 03 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.5.0-1
- Update to upstream version 2.5.0
* Sat Nov 21 2015 Ting-Wei Lan <lantw44@gmail.com> - 2.3.1-1
- Update to upstream version 2.3.1
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sun Jan 4 2015 Jens Petersen <petersen@redhat.com> - 1.2.2-1
- update to 1.2.2 which works with emacs-24.4 (#1172690)
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Thu Jan 10 2013 Tom Moertel <tom@moertel.com> - 1.2.0-1
- Update to upstream version 1.2.0
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Wed Jan 25 2012 Tom Moertel <tom@moertel.com> - 1.1.1-1
- Update to upstream 1.1.1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Fri May 13 2011 Tom Moertel <tom@moertel.com> - 1.0.0-1
- Updated to upstream 1.0.0
* Wed Aug 4 2010 Tom Moertel <tom@moertel.com> - 0.8.2-1
- Updated to upstream 0.8.2
* Wed Aug 26 2009 Tom Moertel <tom@moertel.com> - 0.7-6
- Updated for Magit 0.7 final release (note: upstream removed FDL from tarball)
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-5.20090122git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-4.20090122git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu Jan 29 2009 <tom@moertel.com> - 0.7-3.20090122git
- Added missing build dependency: texinfo
* Tue Jan 27 2009 <tom@moertel.com> - 0.7-2.20090122git
- Made fixes per Fedora packaging review (thanks Jerry James)
* Fri Jan 23 2009 <tom@moertel.com> - 0.7-1.20090122git
- Initial packaging.
|