| 1 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
| 2 |
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
| 3 |
%{!?python_version: %define python_version %(%{__python} -c "from distutils.sysconfig import get_python_version; print get_python_version()")}
|
| 4 |
|
| 5 |
Summary: Check HTML documents for broken links
|
| 6 |
Name: linkchecker
|
| 7 |
Version: 4.7
|
| 8 |
Release: 16%{?dist}
|
| 9 |
License: GPLv2
|
| 10 |
Group: Development/Tools
|
| 11 |
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
| 12 |
Patch1: linkchecker-4.7-fedora-build.patch
|
| 13 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 14 |
Url: http://linkchecker.sourceforge.net/
|
| 15 |
BuildRequires: python-devel gettext
|
| 16 |
# Do not have one of these to test on:
|
| 17 |
# ExcludeArch: x86_64
|
| 18 |
|
| 19 |
%description
|
| 20 |
Linkchecker is a simple script that checks HTML documents for broken links.
|
| 21 |
|
| 22 |
%prep
|
| 23 |
%setup -q
|
| 24 |
%patch1 -p1 -b .fedora-build
|
| 25 |
|
| 26 |
# Fix character encoding
|
| 27 |
iconv -f iso-8859-1 -t utf-8 -o linkchecker-de.1 doc/de/linkchecker.1
|
| 28 |
mv linkchecker-de.1 doc/de/linkchecker.1
|
| 29 |
iconv -f iso-8859-1 -t utf-8 -o linkchecker-fr.1 doc/fr/linkchecker.1
|
| 30 |
mv linkchecker-fr.1 doc/fr/linkchecker.1
|
| 31 |
|
| 32 |
# Avoid docfile dependency
|
| 33 |
sed -i -e 's:#!/usr/bin/env python.*:#!%{__python}:' doc/rest2htmlnav
|
| 34 |
|
| 35 |
%build
|
| 36 |
CFLAGS="%{optflags}" %{__python} setup.py build
|
| 37 |
|
| 38 |
%install
|
| 39 |
rm -rf %{buildroot}
|
| 40 |
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
|
| 41 |
|
| 42 |
# The upstream installer does not seem to install these right:
|
| 43 |
%{__install} -D -m 0644 build/share/locale/de/LC_MESSAGES/linkchecker.mo %{buildroot}%{_datadir}/locale/de/LC_MESSAGES/linkchecker.mo
|
| 44 |
%{__install} -D -m 0644 build/share/locale/fr/LC_MESSAGES/linkchecker.mo %{buildroot}%{_datadir}/locale/fr/LC_MESSAGES/linkchecker.mo
|
| 45 |
%{__install} -D -m 0644 build/share/locale/es/LC_MESSAGES/linkchecker.mo %{buildroot}%{_datadir}/locale/es/LC_MESSAGES/linkchecker.mo
|
| 46 |
|
| 47 |
rm -f %{buildroot}%{python_sitearch}/linkchecker-4.7-py%{python_version}.egg-info
|
| 48 |
|
| 49 |
%find_lang %{name}
|
| 50 |
|
| 51 |
%clean
|
| 52 |
rm -rf %{buildroot}
|
| 53 |
|
| 54 |
%files -f %{name}.lang
|
| 55 |
%defattr(-,root,root,-)
|
| 56 |
%{_bindir}/linkchecker
|
| 57 |
%{python_sitearch}/linkcheck/
|
| 58 |
%{python_sitearch}/_linkchecker_configdata.*
|
| 59 |
%config(noreplace) %{_sysconfdir}/linkchecker
|
| 60 |
%{_mandir}/man1/linkchecker.1*
|
| 61 |
%lang(de) %{_mandir}/de/man1/linkchecker.1*
|
| 62 |
%lang(fr) %{_mandir}/fr/man1/linkchecker.1*
|
| 63 |
%doc TODO doc/en README COPYING
|
| 64 |
|
| 65 |
%changelog
|
| 66 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7-16
|
| 67 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 68 |
|
| 69 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7-15
|
| 70 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 71 |
|
| 72 |
* Sat Dec 12 2008 W. Michael Petullo <mike[at]flyn.org> - 4.7-14
|
| 73 |
- Dynamically discover version (for .egg-info), do not hard code.
|
| 74 |
|
| 75 |
* Sat Dec 12 2008 W. Michael Petullo <mike[at]flyn.org> - 4.7-13
|
| 76 |
- linkchecker-4.7-py2.5.egg-info -> 2.6.
|
| 77 |
|
| 78 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.7-12
|
| 79 |
- Rebuild for Python 2.6
|
| 80 |
|
| 81 |
* Wed Feb 13 2008 W. Michael Petullo <mike[at]flyn.org> - 4.7-11
|
| 82 |
- Don't install linkchecker-4.7-py2.5.egg-info.
|
| 83 |
|
| 84 |
* Mon Sep 10 2007 W. Michael Petullo <mike[at]flyn.org> - 4.7-10
|
| 85 |
- Bump version to retag with new sources.
|
| 86 |
|
| 87 |
* Mon Sep 10 2007 W. Michael Petullo <mike[at]flyn.org> - 4.7-9
|
| 88 |
- Rebuild for F8.
|
| 89 |
|
| 90 |
* Fri Jul 27 2007 W. Michael Petullo <mike[at]flyn.org> - 4.7-8
|
| 91 |
- On 64-bit platforms, everything is in %{python_sitearch}/linkcheck/.
|
| 92 |
|
| 93 |
* Wed Jul 25 2007 W. Michael Petullo <mike[at]flyn.org> - 4.7-7
|
| 94 |
- Install configuration files in /etc/linkchecker.
|
| 95 |
- Do not install examples.
|
| 96 |
|
| 97 |
* Tue Jul 24 2007 W. Michael Petullo <mike[at]flyn.org> - 4.7-6
|
| 98 |
- Install logging.conf again.
|
| 99 |
- Use %%find_lang.
|
| 100 |
|
| 101 |
* Sat Jul 21 2007 W. Michael Petullo <mike[at]flyn.org> - 4.7-5
|
| 102 |
- Simplify %%files.
|
| 103 |
- Don't install logging.conf because it is not documented.
|
| 104 |
- Install linkcheckerrc into /etc/linkchecker.
|
| 105 |
|
| 106 |
* Mon Jul 16 2007 W. Michael Petullo <mike[at]flyn.org> - 4.7-4
|
| 107 |
- Own %%{python_sitelib}/linkcheck/ and %%{python_sitearch}/linkcheck/.
|
| 108 |
- Include .1.gz-style man pages in %%files.
|
| 109 |
- Include _linkchecker_configdata.* instead of just .py.
|
| 110 |
|
| 111 |
* Sat Jul 14 2007 W. Michael Petullo <mike[at]flyn.org> - 4.7-3
|
| 112 |
- Use sitearch for .so, sitelib for .py, .pyo and .pyc.
|
| 113 |
- Clean up docs directory.
|
| 114 |
|
| 115 |
* Thu Jul 12 2007 W. Michael Petullo <mike[at]flyn.org> - 4.7-2
|
| 116 |
- Use sitearch instead of sitelib.
|
| 117 |
- Fix upstream source location.
|
| 118 |
- Simplify %%files.
|
| 119 |
|
| 120 |
* Wed Jul 11 2007 W. Michael Petullo <mike[at]flyn.org> - 4.7-1
|
| 121 |
- Rebuild for F7.
|
| 122 |
- Update to upstream 4.7.
|
| 123 |
|
| 124 |
* Thu Sep 07 2006 W. Michael Petullo <mike[at]flyn.org> - 3.3-11
|
| 125 |
- Rebuild for FC6.
|
| 126 |
|
| 127 |
* Wed Sep 06 2006 W. Michael Petullo <mike[at]flyn.org> - 3.3-10
|
| 128 |
- Package /usr/lib/python2.4/site-packages/_linkchecker_configdata.py*.
|
| 129 |
|
| 130 |
* Wed Sep 06 2006 W. Michael Petullo <mike[at]flyn.org> - 3.3-9
|
| 131 |
- Do not own %%{buildroot}%%{python_sitelib}.
|
| 132 |
|
| 133 |
* Wed Sep 06 2006 W. Michael Petullo <mike[at]flyn.org> - 3.3-8
|
| 134 |
- Remove %%ghost from .pyo files: new Fedora policy.
|
| 135 |
|
| 136 |
* Fri Jul 28 2006 W. Michael Petullo <mike[at]flyn.org> - 3.3-7
|
| 137 |
- Install /usr/lib/python2.4/site-packages/_linkchecker_configdata.pyc again.
|
| 138 |
|
| 139 |
* Fri Jul 28 2006 W. Michael Petullo <mike[at]flyn.org> - 3.3-6
|
| 140 |
- Add %%{buildroot} to previous.
|
| 141 |
|
| 142 |
* Fri Jul 28 2006 W. Michael Petullo <mike[at]flyn.org> - 3.3-5
|
| 143 |
- Do not install /usr/lib/python2.4/site-packages/_linkchecker_configdata.pyc
|
| 144 |
|
| 145 |
* Fri Jul 28 2006 W. Michael Petullo <mike[at]flyn.org> - 3.3-4
|
| 146 |
- Apply patch from Paul Howarth that fixes build on Rawhide (BZ
|
| 147 |
200282).
|
| 148 |
|
| 149 |
* Fri Feb 17 2006 W. Michael Petullo <mike[at]flyn.org> - 3.3-3
|
| 150 |
- Rebuild for Fedora Extras 5.
|
| 151 |
|
| 152 |
* Mon Jan 03 2006 W. Michael Petullo <mike[at]flyn.org> - 3.3-2
|
| 153 |
- Add some missing items to %%files.
|
| 154 |
|
| 155 |
* Mon Jan 03 2006 W. Michael Petullo <mike[at]flyn.org> - 3.3-1
|
| 156 |
- Update to linkchecker 3.3.
|
| 157 |
|
| 158 |
* Sun Jan 02 2006 W. Michael Petullo <mike[at]flyn.org> - 3.2-4
|
| 159 |
- Bump release number to re-import.
|
| 160 |
|
| 161 |
* Sun Jan 02 2006 W. Michael Petullo <mike[at]flyn.org> - 3.2-4
|
| 162 |
- ExcludeArch: x86_64. I don't have one to test on.
|
| 163 |
|
| 164 |
* Sun Oct 23 2005 W. Michael Petullo <mike[at]flyn.org> - 3.2-3
|
| 165 |
- %%dir appropriate directories.
|
| 166 |
|
| 167 |
* Mon Sep 26 2005 W. Michael Petullo <mike[at]flyn.org> - 3.2-2
|
| 168 |
- Include LICENSE.
|
| 169 |
- %%ghost .pyo files.
|
| 170 |
|
| 171 |
* Sat Sep 17 2005 W. Michael Petullo <mike[at]flyn.org> - 3.2-1
|
| 172 |
- No longer use record option to setup.py.
|
| 173 |
- Update to linkchecker 3.2.
|
| 174 |
|
| 175 |
* Sun Nov 21 2004 W. Michael Petullo <mike[at]flyn.org> - 2.0-0.fdr.0.1.rc2
|
| 176 |
- Initial Fedora RPM release candidate, based on upstream SRPM.
|