tmux/tmux.spec

138 lines
4.6 KiB
RPMSpec
Raw Normal View History

2009-11-01 17:36:46 +00:00
Name: tmux
2010-12-28 18:21:29 +00:00
Version: 1.4
Release: 4%{?dist}
2009-11-01 17:36:46 +00:00
Summary: A terminal multiplexer
Group: Applications/System
# Most of the source is ISC licensed; some of the files in compat/ are 2 and
# 3 clause BSD licensed.
License: ISC and BSD
URL: http://sourceforge.net/projects/tmux
Requires(pre): shadow-utils
2009-11-01 17:36:46 +00:00
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: %{name}-tmpfiles.conf
2009-11-01 17:36:46 +00:00
# This first patch creates MANDIR in the GNUmakefile. This has been sent
# upstream via email but upstream replied and said would not change.
Patch0: tmux-1.0-02_fix_wrong_location.diff
Patch1: tmux-1.0-03_proper_socket_handling.diff
2010-03-28 10:34:58 +00:00
# 2010-03-28: Submitted upstream:
# https://sourceforge.net/tracker/?func=detail&aid=2977950&group_id=200378&atid=973264
Patch2: tmux-1.0-04_dropping_unnecessary_privileges.diff
2010-03-28 10:09:39 +00:00
# 2010-03-28: Submitted upstream:
# https://sourceforge.net/tracker/?func=detail&aid=2977945&group_id=200378&atid=973264
Patch3: tmux-1.2-writehard.patch
2009-11-01 17:36:46 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ncurses-devel
2010-03-28 09:44:14 +00:00
BuildRequires: libevent-devel
2009-11-01 17:36:46 +00:00
%description
tmux is a "terminal multiplexer." It enables a number of terminals (or
windows) to be accessed and controlled from a single terminal. tmux is
intended to be a simple, modern, BSD-licensed alternative to programs such
as GNU Screen.
%prep
%setup -q
2011-04-10 08:38:56 +00:00
%patch0 -p1 -b .location
%patch1 -p1 -b .sockethandling
%patch2 -p1 -b .dropprivs
2010-03-28 10:09:39 +00:00
%patch3 -p1 -b .writehard
2009-11-01 17:36:46 +00:00
%build
%configure
make %{?_smp_mflags} LDFLAGS="%{optflags}"
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
make install DESTDIR=%{buildroot} INSTALLBIN="install -p -m 755" INSTALLMAN="install -p -m 644"
# Create the socket dir
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/%{name}
2009-11-01 17:36:46 +00:00
%clean
rm -rf %{buildroot}
%pre
getent group tmux >/dev/null || groupadd -r tmux
%post
# Make sure that /var/run/tmux is created after package install because
# otherwise tmux would only start to work after a reboot
mkdir /var/run/tmux
chown root.tmux /var/run/tmux
chmod 775 /var/run/tmux
2009-11-01 17:36:46 +00:00
%files
%defattr(-,root,root,-)
%doc CHANGES FAQ NOTES TODO examples/
%attr(2755,root,tmux) %{_bindir}/tmux
%{_mandir}/man1/tmux.1.*
%ghost %{_localstatedir}/run/tmux
%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
2009-11-01 17:36:46 +00:00
%changelog
* Sat Apr 16 2011 Sven Lankes <sven@lank.es> 1.4-4
- Add /var/run/tmp to tmpdir.d - fixes rhbz 656704 and 697134
2011-04-10 08:38:56 +00:00
* Sun Apr 10 2011 Sven Lankes <sven@lank.es> 1.4-3
- Fix CVE-2011-1496
- Fixes rhbz #693824
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2010-12-28 18:21:29 +00:00
* Tue Dec 28 2010 Filipe Rosset <rosset.filipe@gmail.com> 1.4-1
- New upstream release
2010-08-07 19:56:52 +00:00
* Fri Aug 06 2010 Filipe Rosset <filiperosset@fedoraproject.org> 1.3-2
- Rebuild for F-13
2010-07-19 05:13:34 +00:00
* Mon Jul 19 2010 Sven Lankes <sven@lank.es> 1.3-1
- New upstream release
2010-03-28 09:44:14 +00:00
* Sun Mar 28 2010 Sven Lankes <sven@lank.es> 1.2-1
- New upstream release
2010-03-28 10:09:39 +00:00
- rediff writehard patch
2010-03-28 09:44:14 +00:00
2009-11-09 21:27:51 +00:00
* Mon Nov 09 2009 Sven Lankes <sven@lank.es> 1.1-1
- New upstream release
* Sun Nov 01 2009 Sven Lankes <sven@lank.es> 1.0-2
- Add debian patches
- Add tmux group for improved socket handling
2009-11-01 17:36:46 +00:00
* Sat Oct 24 2009 Sven Lankes <sven@lank.es> 1.0-1
- New upstream release
* Mon Jul 13 2009 Chess Griffin <chess@chessgriffin.com> 0.9-1
- Update to version 0.9.
- Remove sed invocation as this was adopted upstream.
- Remove optflags patch since upstream source now uses ./configure and
detects the flags when passed to make.
* Tue Jun 23 2009 Chess Griffin <chess@chessgriffin.com> 0.8-5
- Note that souce is mostly ISC licensed with some 2 and 3 clause BSD in
compat/.
- Remove fixiquote.patch and instead use a sed invocation in setup.
* Mon Jun 22 2009 Chess Griffin <chess@chessgriffin.com> 0.8-4
- Add optimization flags by patching GNUmakefile and passing LDFLAGS
to make command.
- Use consistent macro format.
- Change examples/* to examples/ and add TODO to docs.
* Sun Jun 21 2009 Chess Griffin <chess@chessgriffin.com> 0.8-3
- Remove fixperms.patch and instead pass them at make install stage.
* Sat Jun 20 2009 Chess Griffin <chess@chessgriffin.com> 0.8-2
- Fix Source0 URL to point to correct upstream source.
- Modify fixperms.patch to set 644 permissions on the tmux.1.gz man page.
- Remove wildcards from 'files' section and replace with specific paths and
filenames.
* Mon Jun 15 2009 Chess Griffin <chess@chessgriffin.com> 0.8-1
- Initial RPM release.