rpms/lpsk31/F-10 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 12:32:45 UTC 2008
- Previous message (by thread): rpms/kdeaccessibility/devel .cvsignore, 1.33, 1.34 kdeaccessibility.spec, 1.66, 1.67 sources, 1.34, 1.35
- Next message (by thread): rpms/mod_auth_kerb/devel mod_auth_kerb-5.4-fixes.patch, NONE, 1.1 mod_auth_kerb-5.4-rcopshack.patch, NONE, 1.1 mod_auth_kerb.spec, 1.21, 1.22 mod_auth_kerb-5.0-exports.patch, 1.3, NONE mod_auth_kerb-5.1-fixes.patch, 1.2, NONE mod_auth_kerb-5.3-cache.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: sindrepb
Update of /cvs/pkgs/rpms/lpsk31/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10394
Modified Files:
lpsk31.spec
Added Files:
lpsk31-1.1-wrapper.in
Log Message:
--- 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/F-10/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 12:32:15 -0000 1.2
@@ -1,12 +1,13 @@
Name: lpsk31
Version: 1.1
-Release: 1%{?dist}
+Release: 4%{?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 default/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-4
+- 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/kdeaccessibility/devel .cvsignore, 1.33, 1.34 kdeaccessibility.spec, 1.66, 1.67 sources, 1.34, 1.35
- Next message (by thread): rpms/mod_auth_kerb/devel mod_auth_kerb-5.4-fixes.patch, NONE, 1.1 mod_auth_kerb-5.4-rcopshack.patch, NONE, 1.1 mod_auth_kerb.spec, 1.21, 1.22 mod_auth_kerb-5.0-exports.patch, 1.3, NONE mod_auth_kerb-5.1-fixes.patch, 1.2, NONE mod_auth_kerb-5.3-cache.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list