rpms/redet/EL-5 redet-8.22-makefilefixes.patch, NONE, 1.1 redet.desktop, NONE, 1.1 redet.png, NONE, 1.1 redet.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Nigel Jones (nigelj) fedora-extras-commits at redhat.com
Fri Jun 8 23:57:53 UTC 2007


Author: nigelj

Update of /cvs/extras/rpms/redet/EL-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3652/EL-5

Modified Files:
	.cvsignore sources 
Added Files:
	redet-8.22-makefilefixes.patch redet.desktop redet.png 
	redet.spec 
Log Message:
Import redet for EL-5

redet-8.22-makefilefixes.patch:

--- NEW FILE redet-8.22-makefilefixes.patch ---
diff -u redet-8.22.1/Makefile redet-8.22/Makefile
--- redet-8.22.1/Makefile	2007-05-23 16:15:39.000000000 +1200
+++ redet-8.22/Makefile	2007-05-23 16:19:15.000000000 +1200
@@ -13,7 +13,7 @@
 INCLUDEDIR     = ${PREFIX}/include
 OLDINCLUDEDIR  = /usr/include
 INFODIR        = ${PREFIX}/info
-MANDIR         = ${PREFIX}/man
+MANDIR         = ${DATADIR}/man
 MANSECTION=1
 
 WISH_NAME = Wish Shell
@@ -42,9 +42,9 @@
 
  
 install:	redet.tcl
-		install -D redet.tcl ${DESTDIR}${BINDIR}/redet
-		install -D -m 0644 redet.${MANSECTION} \
-		 ${DESTDIR}${MANDIR}/man${MANSECTION}/redet.${MANSECTION}
+		install -D -p redet.tcl ${DESTDIR}${BINDIR}/redet
+		install -D -p -m 0644 redet.${MANSECTION}.gz \
+		 ${DESTDIR}${MANDIR}/man${MANSECTION}/redet.${MANSECTION}.gz
  
 TAGS:	redet.tcl
 


--- NEW FILE redet.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=Redet
GenericName=Regular expression development and execution tool
Exec=redet
Icon=redet.png
Terminal=false
Type=Application
Categories=Development;
StartupNotify=true


--- NEW FILE redet.spec ---
Name:           redet
Version:        8.22
Release:        4%{?dist}
Summary:        Regular expression development and execution tool

Group:          Development/Tools
License:        GPL
URL:            http://www.billposer.org/Software/redet.html
Source0:        http://www.billposer.org/Software/Downloads/%{name}-%{version}.tar.bz2
Source1:        redet.desktop
Source2:        redet.png
Patch0:         redet-8.22-makefilefixes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  desktop-file-utils
Requires:       iwidgets

%description
Redet is a tool for developing and executing regular expressions using 
any of more than 50 search programs, editors, and programming languages, 
intended both for developing regular expressions for use elsewhere and 
as a search tool in its own right. 

Additional features include persistent history, extensive help, a 
variety of character entry tools, and the ability to change locale while 
running. 

%prep
%setup -q
%patch0 -p1

sed -i -e 's|set NonBinPath \[file join /usr local share Redet\];|set NonBinPath \[file join /usr share Redet\];|' redet.tcl

gzip redet.1

%build

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_usr}
desktop-file-install --vendor=""               \
  --dir=${RPM_BUILD_ROOT}%{_datadir}/applications         \
  %{SOURCE1}

mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/
install -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/

%clean
rm -rf $RPM_BUILD_ROOT

%post
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :

%postun
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :


%files
%defattr(-,root,root,-)
%doc README-General AUTHORS COPYING ChangeLog CREDITS NEWS
%{_bindir}/redet
%{_datadir}/applications/redet.desktop
%{_datadir}/icons/hicolor/48x48/apps/redet.png
%{_mandir}/man1/redet.1.gz

%changelog
* Sat Jun 09 2007 Nigel Jones <dev at nigelj.com> 8.22-4
- + Dep on desktop-file-utils
- Minor touch up for .desktop file

* Tue Jun 05 2007 Nigel Jones <dev at nigelj.com> 8.22-3
- Use kregexpeditor.png for now (until I find a better unique one)

* Fri Jun 01 2007 Nigel Jones <dev at nigelj.com> 8.22-2
- Add .desktop file

* Wed May 23 2007 Nigel Jones <dev at nigelj.com> 8.22-1
- Initial SPEC file


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/redet/EL-5/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	8 Jun 2007 20:07:23 -0000	1.1
+++ .cvsignore	8 Jun 2007 23:57:16 -0000	1.2
@@ -0,0 +1 @@
+redet-8.22.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/redet/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	8 Jun 2007 20:07:23 -0000	1.1
+++ sources	8 Jun 2007 23:57:16 -0000	1.2
@@ -0,0 +1 @@
+0b39caf4ba43be7980a0f54e4752abca  redet-8.22.tar.bz2




More information about the fedora-extras-commits mailing list