-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpinot.spec.in
49 lines (41 loc) · 1.15 KB
/
pinot.spec.in
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
%define name @PACKAGE@
%define version @VERSION@
%define release 1
Name : %{name}
Version : %{version}
Release : %{release}
Summary : A developer-centered fork of the Nano editor
License : GPL
Group : Applications/Editors
URL : http://github.com/pgengler
Source : http://github.com/pgengler
BuildRoot : %{_tmppath}/%{name}-%{version}-root
BuildRequires : autoconf, automake, gettext-devel, ncurses-devel, texinfo
Requires(post) : info
Requires(preun) : info
%description
pinot is a small and friendly text editor. It aims to emulate the
nano text editor while also offering a few enhancements.
%prep
%setup -q
%build
%configure --enable-all
make
%install
make DESTDIR="%{buildroot}" install
rm -f %{buildroot}%{_infodir}/dir
%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
%preun
if [ $1 = 0 ] ; then
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi
%files
%defattr(-,root,root)
%doc AUTHORS.nano COPYING ChangeLog INSTALL README THANKS TODO doc/faq.html doc/pinotrc.sample
%{_bindir}/*
%{_docdir}/pinot/*
%{_mandir}/man*/*
%{_infodir}/pinot.info*
%{_datadir}/locale/*/LC_MESSAGES/pinot.mo
%{_datadir}/pinot/*