rpms/boxes/devel boxes-fix_make.patch, NONE, 1.1 boxes.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Jakub Hrozek (jhrozek) fedora-extras-commits at redhat.com
Wed Jan 9 19:59:37 UTC 2008


Author: jhrozek

Update of /cvs/extras/rpms/boxes/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7186/devel

Modified Files:
	.cvsignore sources 
Added Files:
	boxes-fix_make.patch boxes.spec 
Log Message:
boxes: Initial cvs-import


boxes-fix_make.patch:

--- NEW FILE boxes-fix_make.patch ---
diff -up ./src/Makefile.fix_smp_flags ./src/Makefile
--- ./src/Makefile.fix_smp_flags	2006-07-23 20:03:43.000000000 +0200
+++ ./src/Makefile	2007-09-30 19:50:04.000000000 +0200
@@ -106,8 +106,8 @@ ALL_OBJ    = $(GEN_SRC:.c=.o) $(ORIG_NOR
 
 
 build:
-	$(MAKE) CFLAGS_ADDTL=-O boxes
-	strip boxes
+	$(MAKE) CFLAGS_ADDTL="${CFLAGS_ADTL}" boxes
+	#strip boxes
 debug:
 	$(MAKE) CFLAGS_ADDTL=-g boxes
 
diff -up ./Makefile.fix_smp_flags ./Makefile
--- ./Makefile.fix_smp_flags	2006-07-23 20:03:43.000000000 +0200
+++ ./Makefile	2007-09-30 19:48:19.000000000 +0200
@@ -85,10 +85,9 @@ RCS_FILES  = $(CL_FILES) Makefile doc/bo
 ALL_FILES  = COPYING README README.Win32.txt boxes-config Makefile
 DOC_FILES  = doc/boxes.1 doc/boxes.1.in doc/boxes.el
 
-
 build debug boxes: src/boxes.h doc/boxes.1
 	@echo For compilation info see the boxes website at http://boxes.thomasjensen.com/
-	$(MAKE) -C src $@
+	$(MAKE) CFLAGS_ADTL="${CFLAGS_ADTL}" -C src $@
 
 
 src/boxes.h: src/boxes.h.in src/regexp/regexp.h Makefile


--- NEW FILE boxes.spec ---
Name:           boxes
Version:        1.1
Release:        4%{?dist} 
Summary:        Draw any kind of box around some given text

Group:          Applications/Text
License:        GPLv2+
URL:            http://boxes.thomasjensen.com
Source0:        http://boxes.thomasjensen.com/download/%{name}-%{version}.src.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

# pass compile flags correctly, don't strip debuginfo automagically
Patch1:         boxes-fix_make.patch

BuildRequires:  bison
BuildRequires:  flex

%define boxfile %{_datadir}/%{name}/boxes

%description
"boxes" is a text filter which can draw ASCII art boxes around its input
text. These boxes may also be removed, even if they have been badly damaged
by editing of the text inside. Since boxes may be open on any side, boxes can
also be used to create regional comments in any programming language. With
the help of an editor macro or mapping, damaged boxes can easily be repaired.
This is useful for making the function headers in your programming language
look better, for spicing up your news postings and emails, or just for
decorating your documentation files.  New box designs of all sorts can
easily be added and shared by appending to a free format configuration
file. boxes was intended to be used with the vim(1) text editor, but can
be tied to any text editor which supports filters.


%prep
%setup -q
%patch1 -p1 -b .fix_make

%build
make GLOBALCONF=%{boxfile} CFLAGS_ADTL="%{optflags}" %{?_smp_mflags} 

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 

install -pm 0755 src/boxes      $RPM_BUILD_ROOT%{_bindir}
install -pm 0644 doc/boxes.1    $RPM_BUILD_ROOT%{_mandir}/man1
# the file that contains all the shapes
install -pm 0644 boxes-config   $RPM_BUILD_ROOT%{boxfile}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root, -)
%{_bindir}/boxes
%{_datadir}/%{name}/
%doc %{_mandir}/man1/boxes.1*
%doc COPYING README

%changelog
* Wed Jan 09 2008 Jakub Hrozek <jhrozek at redhat.com> - 1.1-4
- fix the license tag from GPL2 to GPL2+

* Sat Oct 13 2007 Jakub Hrozek <jhrozek at redhat.com> - 1.1-3
- More packaging fixes spotted in review (292121), especially:
- remove slashes between macros and buildroot
- set default permissions for directories in defattr
- fix whitespace change in the patch, rename for clarity
- drop the emacs helper

* Sun Sep 30 2007 Jakub Hrozek <jhrozek at redhat.com> - 1.1-2
- Fix packaging mistakes spotted in the review request, namely:
- patch makefile so that optflags are passed
- use macro for the boxfile location as it's used frequently
- fix rpmlint
- package emacs helper

* Sat Sep 15 2007 Jakub Hrozek <jhrozek at redhat.com> - 1.1-1
- initial packaging


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/boxes/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	9 Jan 2008 18:12:57 -0000	1.1
+++ .cvsignore	9 Jan 2008 19:58:54 -0000	1.2
@@ -0,0 +1 @@
+boxes-1.1.src.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/boxes/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	9 Jan 2008 18:12:57 -0000	1.1
+++ sources	9 Jan 2008 19:58:54 -0000	1.2
@@ -0,0 +1 @@
+d2ef9fa28a87bf32b3fe0c47ab82fa97  boxes-1.1.src.tar.gz




More information about the fedora-extras-commits mailing list