From ee46b2bc308466136602c3879601430f09796e2c675c1b1633cba4acde1ae20f Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Jan 2007 23:07:49 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/compface?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + compface-1.5.2.diff | 54 ++++++++++++++++++++++++ compface-1.5.2.tar.gz | 3 ++ compface.changes | 67 ++++++++++++++++++++++++++++++ compface.spec | 95 +++++++++++++++++++++++++++++++++++++++++++ ready | 0 xbm2face | 16 ++++++++ 8 files changed, 259 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 compface-1.5.2.diff create mode 100644 compface-1.5.2.tar.gz create mode 100644 compface.changes create mode 100644 compface.spec create mode 100644 ready create mode 100644 xbm2face diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/compface-1.5.2.diff b/compface-1.5.2.diff new file mode 100644 index 0000000..35a1fd7 --- /dev/null +++ b/compface-1.5.2.diff @@ -0,0 +1,54 @@ +--- Makefile.in ++++ Makefile.in +@@ -77,10 +77,8 @@ + $(INSTALL_PROGRAM) -d $(BINDIR) $(LIBDIR) $(MAN1DIR) $(MAN3DIR) $(INCLUDEDIR) + $(INSTALL_PROGRAM) $(srcdir)/$(NAMEEXE) $(EXECUTABLE) + -chmod 0755 $(EXECUTABLE) +- -strip $(EXECUTABLE) + $(INSTALL_PROGRAM) $(srcdir)/$(UNNAMEEXE) $(UNEXECUTABLE) + -chmod 0755 $(UNEXECUTABLE) +- -strip $(UNEXECUTABLE) + $(INSTALL_DATA) $(srcdir)/$(NAME).1 $(MAN1DIR)/$(NAME).1 + cd $(MAN1DIR) && $(RM) ./$(UNNAME).1 && $(LN_S) $(NAME).1 $(UNNAME).1 + $(INSTALL_DATA) $(srcdir)/$(NAME).3 $(MAN3DIR)/$(NAME).3 +--- config.h ++++ config.h +@@ -30,3 +30,7 @@ + #endif + + #include ++ ++#ifdef HAVE_UNISTD_H ++#include ++#endif +--- configure.ac ++++ configure.ac +@@ -13,7 +13,7 @@ + + dnl Checks for header files. + AC_HEADER_STDC +-AC_CHECK_HEADERS(errno.h fcntl.h strings.h) ++AC_CHECK_HEADERS(errno.h fcntl.h strings.h unistd.h) + + dnl Checks for typedefs, structures, and compiler characteristics. + AC_CHECK_FUNCS(strerror) +--- file.c ++++ file.c +@@ -141,7 +141,7 @@ + t = fbuf; + bits = digits = words = i = 0; + if (compface_xbitmap) { +- sprintf(t,"#define noname_width 48\n#define noname_height 48\nstatic char noname_bits[] = {\n "); ++ strcpy(t,"#define noname_width 48\n#define noname_height 48\nstatic char noname_bits[] = {\n "); + while (*t) t++; + digsperword = 2; + wordsperline = 15; +@@ -189,7 +189,7 @@ + } + } + if (compface_xbitmap) { +- sprintf(t, "};\n"); ++ strcpy(t, "};\n"); + while (*t) t++; + } + *(t++) = '\0'; diff --git a/compface-1.5.2.tar.gz b/compface-1.5.2.tar.gz new file mode 100644 index 0000000..aa7d88e --- /dev/null +++ b/compface-1.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6998245f530217b800f33e01656be8d1f0445632295afa100e5c1611e4f6825 +size 46970 diff --git a/compface.changes b/compface.changes new file mode 100644 index 0000000..07d0f47 --- /dev/null +++ b/compface.changes @@ -0,0 +1,67 @@ +------------------------------------------------------------------- +Mon May 22 17:46:25 CEST 2006 - schwab@suse.de + +- Don't strip binaries. + +------------------------------------------------------------------- +Wed Jan 25 21:35:09 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Wed Oct 5 09:49:40 CEST 2005 - schwab@suse.de + +- Update to compface 1.5.2. + +------------------------------------------------------------------- +Mon Jan 10 15:34:06 CET 2005 - schwab@suse.de + +- Update to compface 1.5. + +------------------------------------------------------------------- +Sat Sep 11 20:19:52 CEST 2004 - schwab@suse.de + +- Update to compface 1.4. + +------------------------------------------------------------------- +Mon May 12 21:08:28 CEST 2003 - schwab@suse.de + +- Fix filelist. + +------------------------------------------------------------------- +Wed Apr 2 16:50:57 CEST 2003 - schwab@suse.de + +- Remove useless %ifarch ix86. + +------------------------------------------------------------------- +Wed Apr 2 10:04:31 CEST 2003 - sf@suse.de + +- add -fPIC for #ifnarch ix86 + +------------------------------------------------------------------- +Fri Nov 29 11:00:44 CET 2002 - schwab@suse.de + +- Fix use of errno. + +------------------------------------------------------------------- +Thu Apr 18 10:17:54 CEST 2002 - schwab@suse.de + +- Properly use %{_libdir}. + +------------------------------------------------------------------- +Tue Jan 29 21:08:16 CET 2002 - schwab@suse.de + +- Use %{_libdir}. + +------------------------------------------------------------------- +Mon Nov 26 14:39:54 CET 2001 - mfabian@suse.de + +- add two small utilities 'xbm2face' and 'xbm2xface.pl' to + create an X-Face: header from an xbm file +- bzip2 sources + +------------------------------------------------------------------- +Fri Sep 29 18:05:29 CEST 2000 - schwab@suse.de + +- Initial version 1.3. + diff --git a/compface.spec b/compface.spec new file mode 100644 index 0000000..3ebf128 --- /dev/null +++ b/compface.spec @@ -0,0 +1,95 @@ +# +# spec file for package compface (Version 1.5.2) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: compface +Summary: 48x48x1 Image Compression and Decompression +Version: 1.5.2 +Release: 12 +Group: Productivity/Graphics/Convertors +License: FSR, Other License(s), see package +Source: http://ftp.xemacs.org/pub/xemacs/aux/compface-%{version}.tar.gz +Source1: xbm2face +Patch: compface-%{version}.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +The programs compface and uncompface convert 48x48x1 images to and from +a compressed format. The purpose of the programs is to allow the +inclusion of face images within mail headers using the field name +"X-face:". They make use of a library that allows the compression and +decompression algorithms to be used in other programs, such as mail +dispatchers and mail notification daemons. + + + +Authors: +-------- + James Ashton + +%prep +%setup +%patch + +%build +autoreconf -fi +CFLAGS="$RPM_OPT_FLAGS -fPIC" INSTALL="install -D" \ +./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} +make + +%install +make install prefix=$RPM_BUILD_ROOT%{_prefix} \ + LIBDIR=$RPM_BUILD_ROOT%{_libdir} \ + MANDIR=$RPM_BUILD_ROOT%{_mandir} +sed -i 's/\r//' xbm2xface.pl +install -m 755 xbm2xface.pl $RPM_BUILD_ROOT%{_prefix}/bin/xbm2xface +install -m 755 $RPM_SOURCE_DIR/xbm2face $RPM_BUILD_ROOT%{_prefix}/bin + +%clean +rm -fr $RPM_BUILD_ROOT + +%files +%defattr(-, root, root) +%doc README +%{_prefix}/bin/* +%{_prefix}/include/* +%{_libdir}/lib* +%doc %{_mandir}/man?/* + +%changelog -n compface +* Mon May 22 2006 - schwab@suse.de +- Don't strip binaries. +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Wed Oct 05 2005 - schwab@suse.de +- Update to compface 1.5.2. +* Mon Jan 10 2005 - schwab@suse.de +- Update to compface 1.5. +* Sat Sep 11 2004 - schwab@suse.de +- Update to compface 1.4. +* Mon May 12 2003 - schwab@suse.de +- Fix filelist. +* Wed Apr 02 2003 - schwab@suse.de +- Remove useless %%ifarch ix86. +* Wed Apr 02 2003 - sf@suse.de +- add -fPIC for #ifnarch ix86 +* Fri Nov 29 2002 - schwab@suse.de +- Fix use of errno. +* Thu Apr 18 2002 - schwab@suse.de +- Properly use %%{_libdir}. +* Tue Jan 29 2002 - schwab@suse.de +- Use %%{_libdir}. +* Mon Nov 26 2001 - mfabian@suse.de +- add two small utilities 'xbm2face' and 'xbm2xface.pl' to + create an X-Face: header from an xbm file +- bzip2 sources +* Fri Sep 29 2000 - schwab@suse.de +- Initial version 1.3. diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/xbm2face b/xbm2face new file mode 100644 index 0000000..6884065 --- /dev/null +++ b/xbm2face @@ -0,0 +1,16 @@ +#!/bin/sh +# +# xbm2face +# convert an X11 bitmap to a Blit ikon bitmap, and then to a face +# compressed bitmap for use in the mail X-Face header. Requires some +# bitmap filters from the pbmplus package, and the compface program +# from the faces package. +# +# Anthony Thyssen 17 Dec 1993 anthony@cit.gu.edu.au +# +xbmtopbm "$@" | pbmtoicon | +sed -e 1,2d -e '$s/$/,/' | +tr -d '\011\012' | tr ',' '\012' | +pr -l1 -t -w22 -3 -s, | +sed -e 's/$/,/' -e 's/\(0x....\)\(0x....\)\(0x....\),/\1,\2,\3,/' | +compface