rpms/cwirc/F-9 cwirc-makefile-fix.patch, NONE, 1.1 cwirc-rcfile.patch, NONE, 1.1 cwirc.spec, NONE, 1.1

Randy Berry dp67 at fedoraproject.org
Fri Jan 9 07:44:14 UTC 2009


Author: dp67

Update of /cvs/pkgs/rpms/cwirc/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28234

Added Files:
	cwirc-makefile-fix.patch cwirc-rcfile.patch cwirc.spec 
Log Message:

Package Setup


cwirc-makefile-fix.patch:

--- NEW FILE cwirc-makefile-fix.patch ---
diff -up cwirc-2.0.0/Makefile.orig cwirc-2.0.0/Makefile
--- cwirc-2.0.0/Makefile.orig	2006-05-20 17:28:07.000000000 -0400
+++ cwirc-2.0.0/Makefile	2008-09-28 12:45:27.000000000 -0400
@@ -103,11 +103,11 @@ FRONTEND_OBJS=		frontend.o					\
 
 $(PLUGIN):		$(PLUGIN_OBJS)
 			$(CC) -shared $(LDFLAGS) -o $@ $(PLUGIN_OBJS)
-			$(STRIP) $@
+			# $(STRIP) $@
 
 $(FRONTEND):		$(FRONTEND_OBJS)
 			$(CC) $(LDFLAGS) $(GTK_LDFLAGS) -o $@ $(FRONTEND_OBJS)
-			$(STRIP) $@
+	        	# $(STRIP) $@
 
 plugin.shared.o:	plugin.c					\
 			$(XCHAT_PLUGIN_INCLUDE_PATH)/xchat-plugin.h	\

cwirc-rcfile.patch:

--- NEW FILE cwirc-rcfile.patch ---
diff -up cwirc-2.0.0/rcfile.c.orig cwirc-2.0.0/rcfile.c
--- cwirc-2.0.0/rcfile.c.orig	2004-06-13 17:09:43.000000000 -0400
+++ cwirc-2.0.0/rcfile.c	2008-09-28 02:24:28.000000000 -0400
@@ -26,10 +26,10 @@
 #define DEFAULT_CWINPUT				"mouse"
 #define DEFAULT_CWOUTPUT			"soundcard"
 #define DEFAULT_CWSOUND				"beeps"
-#ifdef LINUX
+/* #ifdef LINUX */
 #define DEFAULT_SNDDEV				"/dev/dsp"
 #define DEFAULT_SERIALDEV			"/dev/ttyS0"
-#endif
+/* #endif */
 #ifdef FREEBSD
 #define DEFAULT_SNDDEV				"/dev/dsp0.0"
 #define DEFAULT_SERIALDEV			"/dev/cuaa0"


--- NEW FILE cwirc.spec ---
Name:       cwirc
Summary:    X-Chat Morse plugin
Version:    2.0.0
Release:    4%{?dist}

URL:        http://myspace.voo.be/pcoupard/cwirc/
Source:     http://myspace.voo.be/pcoupard/cwirc/download/%{name}-%{version}.tar.gz
Patch0:     cwirc-rcfile.patch
Patch1:     cwirc-makefile-fix.patch
License:    GPLv2
Group:      Applications/Internet
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: gtk2-devel
 
Requires: xchat >= 2.0.2

%description
X-Chat plugin for sending and receiving raw morse code over IRC.

%prep
%setup -q



# Fix the encoding on LISEZMOI (French Manual) to be UTF-8
recode()
{
        iconv -f "$2" -t utf-8 < "$1" > "${1}_"
        touch -r "$1" "${1}_"
        mv -f "${1}_" "$1"
}
for f in `find LISEZMOI`
 do recode $f iso-8859-15
done

%patch0 -p1 -b %{name}-rcfile.patch
%patch1 -p1 -b %{name}-makefile-fix.patch

%build

make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" TARGET_OS=LINUX PLUGIN_INSTALL_DIRECTORY=dummy\
     FRONTEND_INSTALL_DIRECTORY=dummy\
     CWIRC_EXTENSIONS_DIRECTORY=%{_libdir}/cwirc/extensions
     
%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/xchat/plugins
mkdir -p $RPM_BUILD_ROOT/%{_bindir}/
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/cwirc/extensions
cp cwirc.so $RPM_BUILD_ROOT/%{_libdir}/xchat/plugins
cp cwirc_frontend $RPM_BUILD_ROOT/%{_bindir}/

# No need for a .desktop file since it launches from within Xchat

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_libdir}/xchat/plugins/cwirc.so
%{_bindir}/cwirc_frontend
%{_libdir}/cwirc/extensions
%doc README LISEZMOI Changelog COPYING schematics/cw_oscillator.jpg schematics/rs232_key_connection.jpg


%changelog
* Sun Sep 28 2008 Randall J. Berry 'Dp67' <randyn3lrx at gmail.com> 2.0.0-4
- Edit spec per review (added release numbers)
- Changed coding of LISEZMOI to UTF-8 while preserving original date
- Add patch to makefile removing strip to generate debug file

* Sun Sep 28 2008 Randall J. Berry 'Dp67' <randyn3lrx at gmail.com> 2.0.0-3
- Edit spec per review
- Changed coding of LISEZMOI to UTF-8
- Further edit to quiet rpmlint
- Patch added to allow {?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" per review

* Tue Sep 23 2008 Randll J. Berry 'Dp67' <randyn3lrx at gmail.com> 2.0.0-2
- Edit spec for Fedora standards
- Check against rpmlint
- rpm build / mock build
- submit for review

* Mon Jan 12 2004 P.P. Coupard <pcoupard at easyconnect.fr> 2.0.0
- First draft of the spec file




More information about the fedora-extras-commits mailing list