This commit is contained in:
commit
ee46b2bc30
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
54
compface-1.5.2.diff
Normal file
54
compface-1.5.2.diff
Normal file
@ -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 <stdio.h>
|
||||
+
|
||||
+#ifdef HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#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';
|
3
compface-1.5.2.tar.gz
Normal file
3
compface-1.5.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a6998245f530217b800f33e01656be8d1f0445632295afa100e5c1611e4f6825
|
||||
size 46970
|
67
compface.changes
Normal file
67
compface.changes
Normal file
@ -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.
|
||||
|
95
compface.spec
Normal file
95
compface.spec
Normal file
@ -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 <jaa@cs.su.oz.au>
|
||||
|
||||
%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.
|
16
xbm2face
Normal file
16
xbm2face
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user