127 lines
4.5 KiB
RPMSpec
127 lines
4.5 KiB
RPMSpec
Name: xmlcopyeditor
|
|
Version: 1.2.0.4
|
|
Release: 13%{?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.2.0.4-gcc44.patch
|
|
|
|
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 .gcc44
|
|
|
|
# let's fix the compilation error
|
|
# housestyle.h:71:19: error: stray ',' at end of member declaration
|
|
sed -i 's|error,|error|g' src/housestyle.h
|
|
sed -i 's|aspellDataPath,|,aspellDataPath,|g' src/housestyle.h
|
|
|
|
%build
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
desktop-file-install --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
|
|
|
|
%post
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
%postun
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
%files
|
|
%doc AUTHORS COPYING NEWS
|
|
%{_bindir}/*
|
|
%{_datadir}/%{name}
|
|
%{_datadir}/applications/*
|
|
%{_datadir}/pixmaps/*
|
|
|
|
%changelog
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.4-13
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 1.2.0.4-12
|
|
- Rebuild for boost 1.57.0
|
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.4-11
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.4-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 1.2.0.4-9
|
|
- Rebuild for boost 1.55.0
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.4-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 1.2.0.4-7
|
|
- Rebuild for boost 1.54.0
|
|
|
|
* Sun Feb 10 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 1.2.0.4-6
|
|
- Add fix in spec file only for failed compilation
|
|
|
|
* Sun Feb 10 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 1.2.0.4-5
|
|
- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077
|
|
- Cleanup spec as per recently changed packaging guidelines
|
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.4-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 1.2.0.4-3
|
|
- Rebuild against PCRE 8.30
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.4-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Fri May 20 2011 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 1.2.0.4-1
|
|
- Upstream update
|
|
|
|
* Thu Mar 10 2011 Kalev Lember <kalev@smartlink.ee> - 1.2.0.2-5
|
|
- Rebuilt with xerces-c 3.1
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.2-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Wed Jul 14 2010 Dan Horák <dan@danny.cz> - 1.2.0.2-3
|
|
- rebuilt against wxGTK-2.8.11-2
|
|
|
|
* Sat Sep 12 2009 Caolán McNamara <caolanm@redhat.com> 1.2.0.2-2
|
|
- Resolves: rhbz#508867 rhbz#511552 FTBFS
|
|
|
|
* Thu Feb 05 2009 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 1.2.0.2-1
|
|
- Upstream update (http://sourceforge.net/news/?group_id=141776)
|
|
|
|
* Wed Feb 13 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 1.1.0.6-4
|
|
- Fixed build under GCC 4.3
|
|
|
|
* 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
|