06e0cf
%global gitdate 20131022
06e0cf
%global gitfullrev 08767aa863cd27d1755ba0aff65b8cc1a0c1446a
06e0cf
%global gitrev %(c=%{gitfullrev}; echo ${c:0:6})
06e0cf
Name:           urlview
06e0cf
Version:        0.9
06e0cf
Release:        23.%{gitdate}git%{gitrev}%{?dist}
06e0cf
Summary:        URL extractor/launcher
06e0cf
06e0cf
Group:          Applications/Internet
06e0cf
License:        GPLv2+
06e0cf
URL:            https://github.com/sigpipe/urlview
06e0cf
Source0:        https://github.com/sigpipe/urlview/archive/%{gitrev}/urlview-%{gitrev}.tar.gz
06e0cf
06e0cf
BuildRequires:  ncurses-devel
06e0cf
06e0cf
# mutt packages before 5:1.5.16-2 included urlview
06e0cf
Conflicts:      mutt < 5:1.5.16-2
06e0cf
06e0cf
Patch1:         urlview-default.patch
06e0cf
06e0cf
%description
06e0cf
urlview is a screen oriented program for extracting URLs from text
06e0cf
files and displaying a menu from which you may launch a command to
06e0cf
view a specific item.
06e0cf
06e0cf
%prep
06e0cf
%setup -q -n %{name}-%{gitfullrev}
06e0cf
%patch1 -p1 -b .default
06e0cf
06e0cf
%build
06e0cf
%configure
06e0cf
make %{?_smp_mflags}
06e0cf
06e0cf
%install
06e0cf
mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_mandir}/man{1,5}}
06e0cf
install -p -m644 urlview.conf.suse $RPM_BUILD_ROOT%{_sysconfdir}/urlview.conf
06e0cf
install -p urlview url_handler.sh $RPM_BUILD_ROOT%{_bindir}
06e0cf
install -p -m644 urlview.man $RPM_BUILD_ROOT%{_mandir}/man1/urlview.1
06e0cf
echo '.so man1/urlview.1' > $RPM_BUILD_ROOT%{_mandir}/man5/urlview.conf.5
06e0cf
echo '.so man1/urlview.1' > $RPM_BUILD_ROOT%{_mandir}/man1/url_handler.sh.1
06e0cf
06e0cf
%files
06e0cf
%doc AUTHORS ChangeLog COPYING README sample.urlview
06e0cf
%config(noreplace) %{_sysconfdir}/urlview.conf
06e0cf
%{_bindir}/urlview
06e0cf
%{_bindir}/url_handler.sh
06e0cf
%{_mandir}/man1/urlview.1*
06e0cf
%{_mandir}/man1/url_handler.sh.1*
06e0cf
%{_mandir}/man5/urlview.conf.5*
06e0cf
06e0cf
%changelog
06e0cf
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-23.20131022git08767a
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
06e0cf
06e0cf
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-22.20131022git08767a
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
06e0cf
06e0cf
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-21.20131022git08767a
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
06e0cf
06e0cf
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-20.20131022git08767a
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
06e0cf
06e0cf
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-19.20131022git08767a
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
06e0cf
06e0cf
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-18.20131022git08767a
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
06e0cf
06e0cf
* Wed Apr 24 2015 Miroslav Lichvar <mlichvar@redhat.com> 0.9-17.20131022git08767a
06e0cf
- update to 20131022git08767a
06e0cf
06e0cf
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-16.20121210git6cfcad
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
06e0cf
06e0cf
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-15.20121210git6cfcad
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
06e0cf
06e0cf
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-14.20121210git6cfcad
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
06e0cf
06e0cf
* Fri May 24 2013 Miroslav Lichvar <mlichvar@redhat.com> 0.9-13.20121210git6cfcad
06e0cf
- add man page link for url_handler.sh
06e0cf
- fix default paths in man page
06e0cf
06e0cf
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-12.20121210git6cfcad
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
06e0cf
06e0cf
* Fri Dec 14 2012 Miroslav Lichvar <mlichvar@redhat.com> 0.9-11.20121210git6cfcad
06e0cf
- update to 20121210git6cfcad
06e0cf
- remove obsolete macros
06e0cf
06e0cf
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-10
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
06e0cf
06e0cf
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-9
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
06e0cf
06e0cf
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-8
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
06e0cf
06e0cf
* Tue Sep 29 2009 Miroslav Lichvar <mlichvar@redhat.com> 0.9-7
06e0cf
- add man page link for urlview.conf (#526162)
06e0cf
06e0cf
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-6
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
06e0cf
06e0cf
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-5
06e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
06e0cf
06e0cf
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9-4
06e0cf
- Autorebuild for GCC 4.3
06e0cf
06e0cf
* Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> 0.9-3
06e0cf
- update license tag
06e0cf
06e0cf
* Fri Jun 29 2007 Miroslav Lichvar <mlichvar@redhat.com> 0.9-2
06e0cf
- add conflict with mutt, fix URL (#245951)
06e0cf
06e0cf
* Wed Jun 27 2007 Miroslav Lichvar <mlichvar@redhat.com> 0.9-1
06e0cf
- split from mutt package