This commit is contained in:
commit
03ef4a8943
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
|
3
libsndfile-1.0.17.tar.bz2
Normal file
3
libsndfile-1.0.17.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:76f7f9e8a9e81e63aa6581862cb44baa10dc91630957139be20bad473193038b
|
||||
size 627070
|
13
libsndfile-configure-fix.diff
Normal file
13
libsndfile-configure-fix.diff
Normal file
@ -0,0 +1,13 @@
|
||||
--- configure.ac-dist 2006-07-04 16:32:13.000000000 +0200
|
||||
+++ configure.ac 2006-07-04 16:32:47.000000000 +0200
|
||||
@@ -48,8 +48,8 @@
|
||||
AC_HEADER_SYS_WAIT
|
||||
|
||||
AC_CHECK_DECLS(S_IRGRP)
|
||||
-AC_DEFINE_UNQUOTED([HAVE_DECL_S_IRGRP],${HAVE_DECL_S_IRGRP},
|
||||
- [Set to 1 if S_IRGRP is defined.])
|
||||
+# AC_DEFINE_UNQUOTED([HAVE_DECL_S_IRGRP],${HAVE_DECL_S_IRGRP},
|
||||
+# [Set to 1 if S_IRGRP is defined.])
|
||||
|
||||
#====================================================================================
|
||||
# Check for support of the struct hack.
|
222
libsndfile.changes
Normal file
222
libsndfile.changes
Normal file
@ -0,0 +1,222 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 1 20:46:09 CEST 2006 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.17:
|
||||
* Add C++ wrapper sndfile.hh. Minor bug fixes and cleanups.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 4 16:35:22 CEST 2006 - tiwai@suse.de
|
||||
|
||||
- fix the build -- removed invalidly overridden HAVE_DECL_S_IRGRP
|
||||
definition in configure.ac.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 29 15:42:24 CEST 2006 - tiwai@suse.de
|
||||
|
||||
- added flac-devel to requires of devel sub package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 15 12:54:14 CEST 2006 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.16.
|
||||
* more format supports
|
||||
* code cleanups
|
||||
* fix memleaks
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:37:45 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 30 18:27:24 CEST 2005 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.12.
|
||||
- split example programs to progs sub-package.
|
||||
- added -fno-strict-aliasing.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 17 15:46:25 CET 2004 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.11.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 3 15:27:52 CEST 2004 - tiwai@suse.de
|
||||
|
||||
- removed python from neededforbuild.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 5 12:25:07 CEST 2004 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.10.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 26 12:29:53 CET 2004 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.7.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 10 17:13:28 CET 2004 - adrian@suse.de
|
||||
|
||||
- add %run_ldconfig
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 15 16:52:26 CEST 2003 - kukuk@suse.de
|
||||
|
||||
- Set x bit on directories
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 20 23:38:53 CEST 2003 - ro@suse.de
|
||||
|
||||
- added directories to filelist
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 6 15:35:57 CEST 2003 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.5.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 13 11:11:36 CEST 2003 - pthomas@suse.de
|
||||
|
||||
- Put Octave interface files into an own subpackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 13 15:39:36 CET 2003 - pthomas@suse.de
|
||||
|
||||
- Compile with all usefull warnings and fix all places where the
|
||||
compiler warned.
|
||||
- Fix configure to use $libdir instead of $prefix/lib for reporting.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 4 12:34:39 CET 2003 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.4.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 17 16:01:25 CET 2003 - tiwai@suse.de
|
||||
|
||||
- added %run_ldconfig to %post.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 16 13:31:21 CET 2003 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.3.
|
||||
- added *.la to devel package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 25 15:21:43 CET 2002 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.2.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 20 17:31:18 CEST 2002 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.1.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 19 18:29:00 CEST 2002 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.0 final.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 2 14:46:34 CEST 2002 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.0rc3.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 25 17:52:50 CEST 2002 - tiwai@suse.de
|
||||
|
||||
- updated to version 1.0.0rc2.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 12 16:16:58 CEST 2002 - tiwai@suse.de
|
||||
|
||||
- set %__libdir.
|
||||
- use make install as default instead of install-strip.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 7 11:23:10 CET 2002 - tiwai@suse.de
|
||||
|
||||
- fixed build on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 7 13:55:21 CET 2001 - tiwai@suse.de
|
||||
|
||||
- fixed group tag (System -> System Environment)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 6 17:44:35 CET 2001 - tiwai@suse.de
|
||||
|
||||
- removed binaries from alsa-devel examples directory.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 21 19:35:00 CET 2001 - tiwai@suse.de
|
||||
|
||||
- updated to ver.0.0.27.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 17 13:10:51 CEST 2001 - tiwai@suse.de
|
||||
|
||||
- updated to ver.0.0.26.
|
||||
+ Added sf_command () interface.
|
||||
+ Added support for IRCAM files.
|
||||
+ Minor bug fixes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 28 17:49:52 CEST 2001 - tiwai@suse.de
|
||||
|
||||
- updated to ver.0.0.24.
|
||||
+ Added support for 32 bit floating point AIFC files, little endian AIFC
|
||||
files and 16, 24 and 32 bit Sphere NIST files.
|
||||
+ Massive refactoring of internal code.
|
||||
+ Added read and write handling of PEAK chunks on AIFF and WAV files.
|
||||
+ Added read support for REX files (Propellerheads Reason).
|
||||
+ Added sf_read_float () and sf_write_float () interfaces.
|
||||
+ Minor bug fixes.
|
||||
- changed group tag to System/Libraries
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 3 12:03:42 CEST 2001 - tiwai@suse.de
|
||||
|
||||
- fixed compile on s390.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 7 11:45:19 CEST 2001 - tiwai@suse.de
|
||||
|
||||
- fixed compile with the latest libtool & autoconf.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 3 14:17:33 CEST 2001 - kukuk@suse.de
|
||||
|
||||
- move *.so files into devel package
|
||||
- Remove kernel_header requires
|
||||
- Fix glibc-devel dependencies
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 13 14:24:47 CET 2000 - tiwai@suse.de
|
||||
|
||||
- fixed compile on ia64.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 2 15:25:52 CET 2000 - ro@suse.de
|
||||
|
||||
- changed Group to Development/Libraries (old group did not exist)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 2 13:44:50 CET 2000 - tiwai@suse.de
|
||||
|
||||
- Updated to 0.0.22.
|
||||
- Changed for long package-name support (libsnd -> libsndfile,
|
||||
libsndd -> libsndfile-devel).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 26 18:54:27 CEST 2000 - tiwai@suse.de
|
||||
|
||||
- changed to bzip2.
|
||||
- added suse_update_config.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 6 13:10:25 CEST 2000 - tiwai@suse.de
|
||||
|
||||
- Initial version: 0.0.21.
|
||||
|
249
libsndfile.spec
Normal file
249
libsndfile.spec
Normal file
@ -0,0 +1,249 @@
|
||||
#
|
||||
# spec file for package libsndfile (Version 1.0.17)
|
||||
#
|
||||
# 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: libsndfile
|
||||
BuildRequires: alsa-devel flac-devel gcc-c++ libstdc++-devel pkgconfig sqlite-devel
|
||||
Summary: A Library to Handle Various Audio File Formats
|
||||
Version: 1.0.17
|
||||
Release: 1
|
||||
License: LGPL
|
||||
Group: System/Libraries
|
||||
Obsoletes: libsnd
|
||||
Provides: libsnd
|
||||
Source: libsndfile-%{version}.tar.bz2
|
||||
Patch: libsndfile-configure-fix.diff
|
||||
URL: http://www.mega-nerd.com/libsndfile/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Libsndfile is a C library for reading and writing sound files, such as
|
||||
AIFF, AU, and WAV files, through one standard interface. It can
|
||||
currently read and write 8, 16, 24, and 32-bit PCM files as well as
|
||||
32-bit floating point WAV files and a number of compressed formats.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
|
||||
%package devel
|
||||
Summary: Development package for the libsndfile library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version} glibc-devel flac-devel
|
||||
Obsoletes: libsndd
|
||||
Provides: libsndd
|
||||
|
||||
%description devel
|
||||
This package contains the files needed to compile programs that use the
|
||||
libsndfile library.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
|
||||
%package progs
|
||||
Summary: Example Programs for libsndfile
|
||||
Group: System/Libraries
|
||||
|
||||
%description progs
|
||||
This package includes the example programs for libsndfile.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
|
||||
%package octave
|
||||
Summary: A library to handle various audio file formats
|
||||
Group: System/Libraries
|
||||
Requires: %{name} octave
|
||||
|
||||
%description octave
|
||||
The libsndfile is a C library for reading and writing sound files such
|
||||
as AIFF, AU and WAV iles through one standard interface. It can
|
||||
currently read/write 8, 16, 24 and 32-bit PCM files as well as 32-bit
|
||||
floating point WAV files and a number of compressed formats.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
|
||||
%prep
|
||||
%setup
|
||||
# %patch
|
||||
|
||||
%build
|
||||
%define warn_flags -W -Wall -Wstrict-prototypes -Wpointer-arith -Wno-unused-parameter
|
||||
autoreconf --force --install
|
||||
%{?suse_update_config:%{suse_update_config -f}}
|
||||
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing %{warn_flags}"
|
||||
export CFLAGS
|
||||
./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir}
|
||||
make
|
||||
|
||||
%install
|
||||
make DESTDIR="$RPM_BUILD_ROOT" install
|
||||
# remove binaries from examples directory
|
||||
make -C examples distclean
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libsndfile1-dev
|
||||
|
||||
%post
|
||||
%run_ldconfig
|
||||
|
||||
%postun
|
||||
%run_ldconfig
|
||||
|
||||
%clean
|
||||
test "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" && rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
|
||||
%doc doc/*.html doc/*.jpg doc/*.css doc/*.HOWTO
|
||||
%{_libdir}/libsndfile.so.*
|
||||
%{_mandir}/man?/*
|
||||
|
||||
%files progs
|
||||
%defattr(-, root, root)
|
||||
%{_bindir}/*
|
||||
|
||||
%files devel
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/libsndfile.so
|
||||
%{_libdir}/libsndfile.a
|
||||
%{_libdir}/libsndfile.la
|
||||
%{_includedir}/sndfile.h
|
||||
%{_includedir}/sndfile.hh
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%doc examples
|
||||
|
||||
%files octave
|
||||
%defattr(644, root, root, 755)
|
||||
%dir %{_datadir}/octave
|
||||
%dir %{_datadir}/octave/site
|
||||
%dir %{_datadir}/octave/site/m
|
||||
%{_datadir}/octave/site/m/sndfile_load.m
|
||||
%{_datadir}/octave/site/m/sndfile_play.m
|
||||
%{_datadir}/octave/site/m/sndfile_save.m
|
||||
|
||||
%changelog -n libsndfile
|
||||
* Fri Sep 01 2006 - tiwai@suse.de
|
||||
- updated to version 1.0.17:
|
||||
* Add C++ wrapper sndfile.hh. Minor bug fixes and cleanups.
|
||||
* Tue Jul 04 2006 - tiwai@suse.de
|
||||
- fix the build -- removed invalidly overridden HAVE_DECL_S_IRGRP
|
||||
definition in configure.ac.
|
||||
* Mon May 29 2006 - tiwai@suse.de
|
||||
- added flac-devel to requires of devel sub package.
|
||||
* Mon May 15 2006 - tiwai@suse.de
|
||||
- updated to version 1.0.16.
|
||||
* more format supports
|
||||
* code cleanups
|
||||
* fix memleaks
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Fri Sep 30 2005 - tiwai@suse.de
|
||||
- updated to version 1.0.12.
|
||||
- split example programs to progs sub-package.
|
||||
- added -fno-strict-aliasing.
|
||||
* Wed Nov 17 2004 - tiwai@suse.de
|
||||
- updated to version 1.0.11.
|
||||
* Fri Sep 03 2004 - tiwai@suse.de
|
||||
- removed python from neededforbuild.
|
||||
* Thu Aug 05 2004 - tiwai@suse.de
|
||||
- updated to version 1.0.10.
|
||||
* Thu Feb 26 2004 - tiwai@suse.de
|
||||
- updated to version 1.0.7.
|
||||
* Sat Jan 10 2004 - adrian@suse.de
|
||||
- add %%run_ldconfig
|
||||
* Mon Sep 15 2003 - kukuk@suse.de
|
||||
- Set x bit on directories
|
||||
* Fri Jun 20 2003 - ro@suse.de
|
||||
- added directories to filelist
|
||||
* Fri Jun 06 2003 - tiwai@suse.de
|
||||
- updated to version 1.0.5.
|
||||
* Tue May 13 2003 - pthomas@suse.de
|
||||
- Put Octave interface files into an own subpackage.
|
||||
* Thu Feb 13 2003 - pthomas@suse.de
|
||||
- Compile with all usefull warnings and fix all places where the
|
||||
compiler warned.
|
||||
- Fix configure to use $libdir instead of $prefix/lib for reporting.
|
||||
* Tue Feb 04 2003 - tiwai@suse.de
|
||||
- updated to version 1.0.4.
|
||||
* Fri Jan 17 2003 - tiwai@suse.de
|
||||
- added %%run_ldconfig to %%post.
|
||||
* Thu Jan 16 2003 - tiwai@suse.de
|
||||
- updated to version 1.0.3.
|
||||
- added *.la to devel package.
|
||||
* Mon Nov 25 2002 - tiwai@suse.de
|
||||
- updated to version 1.0.2.
|
||||
* Fri Sep 20 2002 - tiwai@suse.de
|
||||
- updated to version 1.0.1.
|
||||
* Mon Aug 19 2002 - tiwai@suse.de
|
||||
- updated to version 1.0.0 final.
|
||||
* Fri Aug 02 2002 - tiwai@suse.de
|
||||
- updated to version 1.0.0rc3.
|
||||
* Tue Jun 25 2002 - tiwai@suse.de
|
||||
- updated to version 1.0.0rc2.
|
||||
* Fri Apr 12 2002 - tiwai@suse.de
|
||||
- set %%__libdir.
|
||||
- use make install as default instead of install-strip.
|
||||
* Thu Feb 07 2002 - tiwai@suse.de
|
||||
- fixed build on s390x.
|
||||
* Fri Dec 07 2001 - tiwai@suse.de
|
||||
- fixed group tag (System -> System Environment)
|
||||
* Thu Dec 06 2001 - tiwai@suse.de
|
||||
- removed binaries from alsa-devel examples directory.
|
||||
* Wed Nov 21 2001 - tiwai@suse.de
|
||||
- updated to ver.0.0.27.
|
||||
* Wed Oct 17 2001 - tiwai@suse.de
|
||||
- updated to ver.0.0.26.
|
||||
+ Added sf_command () interface.
|
||||
+ Added support for IRCAM files.
|
||||
+ Minor bug fixes.
|
||||
* Tue Aug 28 2001 - tiwai@suse.de
|
||||
- updated to ver.0.0.24.
|
||||
+ Added support for 32 bit floating point AIFC files, little endian AIFC
|
||||
files and 16, 24 and 32 bit Sphere NIST files.
|
||||
+ Massive refactoring of internal code.
|
||||
+ Added read and write handling of PEAK chunks on AIFF and WAV files.
|
||||
+ Added read support for REX files (Propellerheads Reason).
|
||||
+ Added sf_read_float () and sf_write_float () interfaces.
|
||||
+ Minor bug fixes.
|
||||
- changed group tag to System/Libraries
|
||||
* Fri Aug 03 2001 - tiwai@suse.de
|
||||
- fixed compile on s390.
|
||||
* Thu Jun 07 2001 - tiwai@suse.de
|
||||
- fixed compile with the latest libtool & autoconf.
|
||||
* Tue Apr 03 2001 - kukuk@suse.de
|
||||
- move *.so files into devel package
|
||||
- Remove kernel_header requires
|
||||
- Fix glibc-devel dependencies
|
||||
* Wed Dec 13 2000 - tiwai@suse.de
|
||||
- fixed compile on ia64.
|
||||
* Thu Nov 02 2000 - ro@suse.de
|
||||
- changed Group to Development/Libraries (old group did not exist)
|
||||
* Thu Nov 02 2000 - tiwai@suse.de
|
||||
- Updated to 0.0.22.
|
||||
- Changed for long package-name support (libsnd -> libsndfile,
|
||||
libsndd -> libsndfile-devel).
|
||||
* Tue Sep 26 2000 - tiwai@suse.de
|
||||
- changed to bzip2.
|
||||
- added suse_update_config.
|
||||
* Wed Sep 06 2000 - tiwai@suse.de
|
||||
- Initial version: 0.0.21.
|
Loading…
x
Reference in New Issue
Block a user