baa602d
Name:           boxes
7df9c77
Version:        1.1.1
b3cdff0
Release:        7%{?dist}
baa602d
Summary:        Draw any kind of box around some given text
baa602d
baa602d
Group:          Applications/Text
baa602d
License:        GPLv2+
baa602d
URL:            http://boxes.thomasjensen.com
baa602d
Source0:        http://boxes.thomasjensen.com/download/%{name}-%{version}.src.tar.gz
baa602d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
baa602d
baa602d
# pass compile flags correctly, don't strip debuginfo automagically
baa602d
Patch1:         boxes-fix_make.patch
6c857a3
Patch2:         boxes-wformat-security.patch
baa602d
baa602d
BuildRequires:  bison
baa602d
BuildRequires:  flex
baa602d
baa602d
%define boxfile %{_datadir}/%{name}/boxes
baa602d
baa602d
%description
baa602d
"boxes" is a text filter which can draw ASCII art boxes around its input
baa602d
text. These boxes may also be removed, even if they have been badly damaged
baa602d
by editing of the text inside. Since boxes may be open on any side, boxes can
baa602d
also be used to create regional comments in any programming language. With
baa602d
the help of an editor macro or mapping, damaged boxes can easily be repaired.
baa602d
This is useful for making the function headers in your programming language
baa602d
look better, for spicing up your news postings and emails, or just for
baa602d
decorating your documentation files.  New box designs of all sorts can
baa602d
easily be added and shared by appending to a free format configuration
baa602d
file. boxes was intended to be used with the vim(1) text editor, but can
baa602d
be tied to any text editor which supports filters.
baa602d
baa602d
baa602d
%prep
baa602d
%setup -q
baa602d
%patch1 -p1 -b .fix_make
6c857a3
%patch2 -p1 -b .wformat
baa602d
baa602d
%build
baa602d
make GLOBALCONF=%{boxfile} CFLAGS_ADTL="%{optflags}" %{?_smp_mflags} 
baa602d
baa602d
%install
baa602d
rm -rf $RPM_BUILD_ROOT
baa602d
mkdir -p $RPM_BUILD_ROOT%{_bindir}
baa602d
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
baa602d
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 
baa602d
baa602d
install -pm 0755 src/boxes      $RPM_BUILD_ROOT%{_bindir}
baa602d
install -pm 0644 doc/boxes.1    $RPM_BUILD_ROOT%{_mandir}/man1
baa602d
# the file that contains all the shapes
baa602d
install -pm 0644 boxes-config   $RPM_BUILD_ROOT%{boxfile}
baa602d
baa602d
%clean
baa602d
rm -rf $RPM_BUILD_ROOT
baa602d
baa602d
%files
baa602d
%defattr(-, root, root, -)
baa602d
%{_bindir}/boxes
baa602d
%{_datadir}/%{name}/
baa602d
%doc %{_mandir}/man1/boxes.1*
baa602d
%doc COPYING README
baa602d
baa602d
%changelog
b3cdff0
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-7
b3cdff0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b3cdff0
3bc7904
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-6
3bc7904
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3bc7904
e70535c
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-5
e70535c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e70535c
Yaakov Selkowitz 8f7a7d9
* Mon Jun 30 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 1.1.1-4
Yaakov Selkowitz 8f7a7d9
- Fix race condition in parallel make (#1106015)
Yaakov Selkowitz 8f7a7d9
71316d1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-3
71316d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
71316d1
6c857a3
* Tue Dec  3 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.1.1-2
6c857a3
- Fix -Wformat-security compilation warning
6c857a3
7df9c77
* Wed Jul 31 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.1.1-1
7df9c77
- New upstream release 1.1.1
7df9c77
f9a0599
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-12
f9a0599
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f9a0599
b6ec082
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-11
b6ec082
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b6ec082
cafc3db
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-10
cafc3db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cafc3db
24e7caa
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-9
24e7caa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
24e7caa
51481c3
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-8
51481c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
51481c3
994d76f
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-7
994d76f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
994d76f
5b65e04
* Sun Feb 10 2008 Jakub Hrozek <jhrozek@redhat.com> - 1.1-6
5b65e04
- bump release
5b65e04
87aeaad
* Sun Feb 10 2008 Jakub Hrozek <jhrozek@redhat.com> - 1.1-5
87aeaad
- rebuild for GCC 4.3
87aeaad
baa602d
* Wed Jan 09 2008 Jakub Hrozek <jhrozek@redhat.com> - 1.1-4
baa602d
- fix the license tag from GPL2 to GPL2+
baa602d
baa602d
* Sat Oct 13 2007 Jakub Hrozek <jhrozek@redhat.com> - 1.1-3
baa602d
- More packaging fixes spotted in review (292121), especially:
baa602d
- remove slashes between macros and buildroot
baa602d
- set default permissions for directories in defattr
baa602d
- fix whitespace change in the patch, rename for clarity
baa602d
- drop the emacs helper
baa602d
baa602d
* Sun Sep 30 2007 Jakub Hrozek <jhrozek@redhat.com> - 1.1-2
baa602d
- Fix packaging mistakes spotted in the review request, namely:
baa602d
- patch makefile so that optflags are passed
baa602d
- use macro for the boxfile location as it's used frequently
baa602d
- fix rpmlint
baa602d
- package emacs helper
baa602d
baa602d
* Sat Sep 15 2007 Jakub Hrozek <jhrozek@redhat.com> - 1.1-1
baa602d
- initial packaging