rpms/lpsk31/devel lpsk31-1.1-wrapper.in, NONE, 1.1 lpsk31.spec, 1.1, 1.2
Sindre Pedersen Bjørdal
sindrepb at fedoraproject.org
Thu Dec 11 11:51:37 UTC 2008
- Previous message (by thread): rpms/gawk/devel gawk-stable-tree.patch, NONE, 1.1 gawk-3.1.5-test-lc_num1.patch, 1.2, 1.3 gawk.spec, 1.55, 1.56
- Next message (by thread): rpms/ppp/devel ppp-2.4.4-bogus_dns_addr.patch, NONE, 1.1 ppp.spec, 1.46, 1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: sindrepb
Update of /cvs/pkgs/rpms/lpsk31/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv1034
Modified Files:
lpsk31.spec
Added Files:
lpsk31-1.1-wrapper.in
Log Message:
add wrapper script
--- NEW FILE lpsk31-1.1-wrapper.in ---
#!/bin/sh
#Wrapper script for lpsk31 to ensure that user configuration is present
lpsk31bin="/usr/libexec/lpsk31-bin"
if [ ! -f ~/lpsk31/lpsk31rc ]
then
echo "Creating user configuration in ~/lpsk31/lpsk31rc"
install -D -m 0644 /usr/share/lpsk31/lpsk31rc ~/lpsk31/lpsk31rc
$lpsk31bin $@
else
$lpsk31bin $@
fi
Index: lpsk31.spec
===================================================================
RCS file: /cvs/pkgs/rpms/lpsk31/devel/lpsk31.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- lpsk31.spec 2 Mar 2008 21:15:15 -0000 1.1
+++ lpsk31.spec 11 Dec 2008 11:51:06 -0000 1.2
@@ -1,12 +1,13 @@
Name: lpsk31
Version: 1.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A ncurses application for ham radio communications using PSK31 digital mode
Group: Applications/Communications
License: GPLv2+
URL: http://5b4az.chronos.org.uk/pages/digital.html
Source0: http://5b4az.chronos.org.uk/pkg/psk31/lpsk31/%{name}-%{version}.tar.gz
+Source1: lpsk31-1.1-wrapper.in
Patch0: lpsk31-1.1-makefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -31,8 +32,16 @@
%install
rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+#manual install
+#install binary too libexec for use in wrapper script
+install lpsk31 -D -p $RPM_BUILD_ROOT%{_libexecdir}/lpsk31-bin
+
+#install wrapper script
+install -m 0755 -D -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/lpsk31
+
+#include sample user configuration
+install -D -p -m 0644 Qdefault/lpsk31rc $RPM_BUILD_ROOT%{_datadir}/%{name}/lpsk31rc
%clean
rm -rf $RPM_BUILD_ROOT
@@ -42,9 +51,15 @@
#doesn't contain a copy of GPLv2 License, queried upstream
%defattr(-,root,root,-)
%doc AUTHORS README doc/*
-%{_bindir}/%{name}
+%{_bindir}/*
+%{_datadir}/%{name}
+%{_libexecdir}/*
%changelog
+* Thu Dec 11 2008 Sindre Pedersen Bjørdal <sindrepb at fedoraproject.org> - 1.1-2
+- Add wrapper script to ensure user configuration is present, #474835
+- Install sample user configuration
+
* Sat Mar 01 2008 Robert 'Bob' Jensen <bob at bobjensen.com> 1.1-1
- Initial SPEC
- Previous message (by thread): rpms/gawk/devel gawk-stable-tree.patch, NONE, 1.1 gawk-3.1.5-test-lc_num1.patch, 1.2, 1.3 gawk.spec, 1.55, 1.56
- Next message (by thread): rpms/ppp/devel ppp-2.4.4-bogus_dns_addr.patch, NONE, 1.1 ppp.spec, 1.46, 1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list