[picocom] Create subdirectories for lockfiles under /run/lock/picocom/ (RHBZ 732360)
Kevin Fenzi
kevin at fedoraproject.org
Sun Jan 29 16:41:39 UTC 2012
commit 1c0f280c0d20bde63f194e5a572d3aac678ffd4b
Author: Kevin Fenzi <kevin at scrye.com>
Date: Sun Jan 29 09:41:32 2012 -0700
Create subdirectories for lockfiles under /run/lock/picocom/ (RHBZ 732360)
picocom.spec | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/picocom.spec b/picocom.spec
index 3891ea8..6ddc50c 100644
--- a/picocom.spec
+++ b/picocom.spec
@@ -1,14 +1,21 @@
Name: picocom
Version: 1.6
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Minimal serial communications program
Group: Applications/Communications
License: GPLv2+
URL: http://code.google.com/p/picocom/
Source0: http://picocom.googlecode.com/files/picocom-%{version}.tar.gz
+
+# filed upstream http://code.google.com/p/picocom/issues/detail?id=15
+Patch0: 0001-Makefile-factor-out-UUCP_LOCK_DIR-for-easy-overridin.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+# for groupadd
+Requires(pre): shadow-utils
+
%description
As its name suggests, [picocom] is a minimal dumb-terminal emulation
program. It is, in principle, very much like minicom, only it's "pico"
@@ -23,9 +30,10 @@ stripped).
%prep
%setup -q
+%patch0 -p1
%build
-make CC="%{__cc}" CFLAGS="$RPM_OPT_FLAGS" %{_smp_mflags}
+make CC="%{__cc}" CFLAGS="$RPM_OPT_FLAGS" %{_smp_mflags} UUCP_LOCK_DIR=/run/lock/picocom
%install
rm -rf $RPM_BUILD_ROOT
@@ -33,18 +41,26 @@ mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
install -m 755 picocom $RPM_BUILD_ROOT%{_bindir}/
install -m 644 picocom.8 $RPM_BUILD_ROOT%{_mandir}/man8/
+mkdir -p $RPM_BUILD_ROOT/run/lock/picocom
%clean
rm -rf $RPM_BUILD_ROOT
+%pre
+getent group dialout >/dev/null || groupadd -g 18 -r -f dialout
+exit 0
%files
%defattr(-,root,root,-)
%doc CHANGES CONTRIBUTORS LICENSE.txt NEWS README
+%dir %attr(0775,root,dialout) /run/lock/picocom
%{_bindir}/picocom
%{_mandir}/man8/*
%changelog
+* Sun Jan 29 2012 Scott Tsai <scottt.tw at gmail.com> 1.6-4
+- Create subdirectories for lockfiles under /run/lock/picocom/ (RHBZ 732360)
+
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list