Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93c5054c14 | ||
|
|
565a8db374 | ||
|
|
f57a5999ae | ||
|
|
001b2cbc5b | ||
| 9c792418a2 |
7 changed files with 162 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
xmlcopyeditor-1.1.0.6.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: xmlcopyeditor
|
||||
# $Id$
|
||||
NAME := xmlcopyeditor
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
29350234faca3ad978ff74dbbf7f3ef5 xmlcopyeditor-1.1.0.6.tar.gz
|
||||
32
xmlcopyeditor-1.1.0.6-defaultbrowser.patch
Normal file
32
xmlcopyeditor-1.1.0.6-defaultbrowser.patch
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
diff -up xmlcopyeditor-1.1.0.6/src/xmlcopyeditor.cpp.defaultbrowser xmlcopyeditor-1.1.0.6/src/xmlcopyeditor.cpp
|
||||
--- xmlcopyeditor-1.1.0.6/src/xmlcopyeditor.cpp.defaultbrowser 2008-01-28 02:38:06.000000000 -0500
|
||||
+++ xmlcopyeditor-1.1.0.6/src/xmlcopyeditor.cpp 2008-01-28 09:48:46.000000000 -0500
|
||||
@@ -1015,17 +1015,18 @@ MyFrame::~MyFrame()
|
||||
wxString MyFrame::getLinuxBrowser()
|
||||
{
|
||||
wxString s;
|
||||
- const int stringArrayLen = 9;
|
||||
+ const int stringArrayLen = 10;
|
||||
wxString stringArray[stringArrayLen];
|
||||
- stringArray[0] = _T ( "/usr/bin/firefox" );
|
||||
- stringArray[1] = _T ( "/usr/bin/mozilla" );
|
||||
- stringArray[2] = _T ( "/usr/bin/opera" );
|
||||
- stringArray[3] = _T ( "/usr/bin/dillo" );
|
||||
- stringArray[4] = _T ( "/opt/gnome/bin/epiphany" );
|
||||
- stringArray[5] = _T ( "/opt/gnome/bin/galeon" );
|
||||
- stringArray[6] = _T ( "/opt/kde/bin/konqueror" );
|
||||
- stringArray[7] = _T ( "/opt/mozilla/bin/firefox" );
|
||||
- stringArray[8] = wxEmptyString; // empty option is safe
|
||||
+ stringArray[0] = _T ( "/usr/bin/xdg-open" );
|
||||
+ stringArray[1] = _T ( "/usr/bin/htmlview" );
|
||||
+ stringArray[2] = _T ( "/usr/bin/galeon" );
|
||||
+ stringArray[3] = _T ( "/usr/bin/epiphany" );
|
||||
+ stringArray[4] = _T ( "/usr/bin/firefox" );
|
||||
+ stringArray[5] = _T ( "/usr/bin/mozilla" );
|
||||
+ stringArray[6] = _T ( "/usr/bin/konqueror" );
|
||||
+ stringArray[7] = _T ( "/usr/bin/opera" );
|
||||
+ stringArray[8] = _T ( "/usr/bin/dillo" );
|
||||
+ stringArray[9] = wxEmptyString; // empty option is safe
|
||||
|
||||
for ( int i = 0; i < stringArrayLen; i++ )
|
||||
{
|
||||
58
xmlcopyeditor-1.1.0.6-nuke.patch
Normal file
58
xmlcopyeditor-1.1.0.6-nuke.patch
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
diff -up xmlcopyeditor-1.1.0.6/src/Makefile.in.nuke xmlcopyeditor-1.1.0.6/src/Makefile.in
|
||||
--- xmlcopyeditor-1.1.0.6/src/Makefile.in.nuke 2008-01-29 03:03:11.000000000 -0500
|
||||
+++ xmlcopyeditor-1.1.0.6/src/Makefile.in 2008-01-29 03:03:59.000000000 -0500
|
||||
@@ -241,24 +241,7 @@ nobase_xmlcopyeditor_DATA = png/*.png \
|
||||
rng/modules/*.rng \
|
||||
xpm/*.xpm \
|
||||
templates/*.* \
|
||||
- help/*.* help/html/*.* \
|
||||
- copying/*.txt copying/boost_shared_ptr/* \
|
||||
- copying/Expat/* copying/libxml2/* copying/libxslt/* \
|
||||
- copying/PCRE/* copying/Scintilla/* \
|
||||
- copying/scowl/* \
|
||||
- copying/wxStyledTextCtrl/* copying/ximian/* \
|
||||
- copying/wxStEditor/* \
|
||||
- copying/xmlcopyeditor/* \
|
||||
- copying/Aspell/* \
|
||||
- copying/Apache/LICENSE-2.0 \
|
||||
- copying/Apache/LICENSE-2_files/* \
|
||||
- po/sk/messages.mo \
|
||||
- po/sv/messages.mo \
|
||||
- po/fr/messages.mo \
|
||||
- po/de/messages.mo \
|
||||
- po/zh_CN/messages.mo \
|
||||
- po/zh_TW/messages.mo \
|
||||
- po/en_us/messages.po
|
||||
+ help/*.* help/html/*.*
|
||||
|
||||
pixmap_DATA = xmlcopyeditor.png
|
||||
applications_DATA = xmlcopyeditor.desktop
|
||||
diff -up xmlcopyeditor-1.1.0.6/src/Makefile.am.nuke xmlcopyeditor-1.1.0.6/src/Makefile.am
|
||||
--- xmlcopyeditor-1.1.0.6/src/Makefile.am.nuke 2008-01-29 03:03:06.000000000 -0500
|
||||
+++ xmlcopyeditor-1.1.0.6/src/Makefile.am 2008-01-29 03:03:41.000000000 -0500
|
||||
@@ -50,25 +50,6 @@ nobase_xmlcopyeditor_DATA = png/*.png \
|
||||
templates/*.lzx \
|
||||
templates/*.xlf \
|
||||
help/*.* help/html/*.* \
|
||||
- copying/*.txt copying/boost_shared_ptr/* \
|
||||
- copying/Expat/* copying/libxml2/* copying/libxslt/* \
|
||||
- copying/PCRE/* copying/Scintilla/* \
|
||||
- copying/scowl/* \
|
||||
- copying/wxStyledTextCtrl/* copying/ximian/* \
|
||||
- copying/wxStEditor/* \
|
||||
- copying/xmlcopyeditor/* \
|
||||
- copying/Aspell/* \
|
||||
- copying/Apache/LICENSE-2.0 \
|
||||
- copying/Apache/LICENSE-2_files/* \
|
||||
- po/sk/messages.mo \
|
||||
- po/sv/messages.mo \
|
||||
- po/fr/messages.mo \
|
||||
- po/de/messages.mo \
|
||||
- po/zh_CN/messages.mo \
|
||||
- po/zh_TW/messages.mo \
|
||||
- po/uk_UA/messages.mo \
|
||||
- po/uk_UA/messages.mo \
|
||||
- po/en_us/messages.po \
|
||||
|
||||
pixmap_DATA = xmlcopyeditor.png
|
||||
|
||||
70
xmlcopyeditor.spec
Normal file
70
xmlcopyeditor.spec
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
Name: xmlcopyeditor
|
||||
Version: 1.1.0.6
|
||||
Release: 3%{?dist}
|
||||
Summary: A fast, free, validating XML editor
|
||||
|
||||
Group: Applications/Editors
|
||||
License: GPLv2
|
||||
URL: http://xml-copy-editor.sourceforge.net/
|
||||
Source0: http://prdownloads.sourceforge.net/xml-copy-editor/%name-%version.tar.gz
|
||||
Patch0: xmlcopyeditor-1.1.0.6-defaultbrowser.patch
|
||||
Patch1: xmlcopyeditor-1.1.0.6-nuke.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: wxGTK-devel >= 2.8 pcre-devel aspell-devel boost-devel
|
||||
BuildRequires: xerces-c-devel libxslt-devel expat-devel desktop-file-utils
|
||||
|
||||
%description
|
||||
XML Copy Editor is a fast, free, validating XML editor.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
find src -type f -print0 | xargs -0 chmod a-x
|
||||
tr -d '\r' < src/copying/gpl.txt > COPYING
|
||||
chmod a-x AUTHORS COPYING NEWS
|
||||
%patch0 -p 1 -b .defaultbrowser
|
||||
%patch1 -p 1 -b .nuke
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
desktop-file-install --vendor=fedora --remove-category Application \
|
||||
--delete-original \
|
||||
--dir=$RPM_BUILD_ROOT%{_datadir}/applications \
|
||||
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
|
||||
sed -i -e "s/\(Icon=[^.]\+\).[^.]\+/\1/" $RPM_BUILD_ROOT%{_datadir}/applications/*%{name}.desktop
|
||||
#rm -r $RPM_BUILD_ROOT%{_datadir}/%{name}/po
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
update-desktop-database &> /dev/null || :
|
||||
|
||||
%postun
|
||||
update-desktop-database &> /dev/null || :
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING NEWS
|
||||
%{_bindir}/*
|
||||
%{_datadir}/%{name}
|
||||
%{_datadir}/applications/*
|
||||
%{_datadir}/pixmaps/*
|
||||
|
||||
%changelog
|
||||
* Tue Jan 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 1.1.0.6-3
|
||||
- Removed locale files for now
|
||||
- Removed spurious license files
|
||||
- Fixed debuginfo permissions
|
||||
- Fixed desktop file handling
|
||||
|
||||
* Mon Jan 28 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 1.1.0.6-2
|
||||
- Changed search list of default browsers
|
||||
|
||||
* Sun Jan 27 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 1.1.0.6-1
|
||||
- Initial RPM release
|
||||
Loading…
Add table
Add a link
Reference in a new issue