OBS User unknown 2007-01-15 23:12:29 +00:00 committed by Git OBS Bridge
commit e3c98fd08b
15 changed files with 4895 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

3
flac-1.1.2.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cff9aa4237cf2ba2f5495459f8869e05e28eb752bca293561f14761c4d682ed0
size 999135

3635
flac-bmp-plugin.diff Normal file

File diff suppressed because it is too large Load Diff

118
flac-compat.dif Normal file
View File

@ -0,0 +1,118 @@
--- src/libFLAC/Makefile.am-dist 2002-11-27 15:18:40.000000000 +0100
+++ src/libFLAC/Makefile.am 2002-11-27 15:22:49.000000000 +0100
@@ -63,4 +63,5 @@
seekable_stream_encoder.c \
stream_decoder.c \
stream_encoder.c \
- stream_encoder_framing.c
+ stream_encoder_framing.c \
+ compat.c
--- /dev/null 2002-11-27 15:24:34.000000000 +0100
+++ src/libFLAC/compat.c 2002-11-27 15:28:14.000000000 +0100
@@ -0,0 +1,64 @@
+/*
+ * compat functions
+ */
+
+#include "FLAC/file_decoder.h"
+
+#undef FLAC__stream_decoder_process_one_frame
+#undef FLAC__stream_decoder_process_metadata
+#undef FLAC__stream_decoder_process_whole_stream
+
+#undef FLAC__seekable_stream_decoder_process_one_frame
+#undef FLAC__seekable_stream_decoder_process_metadata
+#undef FLAC__seekable_stream_decoder_process_whole_stream
+
+#undef FLAC__file_decoder_process_one_frame
+#undef FLAC__file_decoder_process_metadata
+#undef FLAC__file_decoder_process_whole_file
+
+FLAC__bool FLAC__stream_decoder_process_one_frame(FLAC__StreamDecoder *decoder)
+{
+ return FLAC__stream_decoder_process_single(decoder);
+}
+
+FLAC__bool FLAC__stream_decoder_process_metadata(FLAC__StreamDecoder *decoder)
+{
+ return FLAC__stream_decoder_process_until_end_of_metadata(decoder);
+}
+
+FLAC__bool FLAC__stream_decoder_process_whole_stream(FLAC__StreamDecoder *decoder)
+{
+ return FLAC__stream_decoder_process_until_end_of_stream(decoder);
+}
+
+
+FLAC__bool FLAC__seekable_stream_decoder_process_one_frame(FLAC__SeekableStreamDecoder *decoder)
+{
+ return FLAC__seekable_stream_decoder_process_single(decoder);
+}
+
+FLAC__bool FLAC__seekable_stream_decoder_process_metadata(FLAC__SeekableStreamDecoder *decoder)
+{
+ return FLAC__seekable_stream_decoder_process_until_end_of_metadata(decoder);
+}
+
+FLAC__bool FLAC__seekable_stream_decoder_process_whole_stream(FLAC__SeekableStreamDecoder *decoder)
+{
+ return FLAC__seekable_stream_decoder_process_until_end_of_stream(decoder);
+}
+
+
+FLAC__bool FLAC__file_decoder_process_one_frame(FLAC__FileDecoder *decoder)
+{
+ return FLAC__file_decoder_process_single(decoder);
+}
+
+FLAC__bool FLAC__file_decoder_process_metadata(FLAC__FileDecoder *decoder)
+{
+ return FLAC__file_decoder_process_until_end_of_metadata(decoder);
+}
+
+FLAC__bool FLAC__file_decoder_process_whole_file(FLAC__FileDecoder *decoder)
+{
+ return FLAC__file_decoder_process_until_end_of_file(decoder);
+}
--- /dev/null 2002-11-27 15:24:28.000000000 +0100
+++ include/FLAC/compat.h 2002-11-27 15:28:38.000000000 +0100
@@ -0,0 +1,20 @@
+/*
+ * compatible wrappers with FLAC 1.0.3
+ */
+
+#ifndef FLAC_COMPAT_H
+#define FLAC_COMPAT_H
+
+#define FLAC__file_decoder_process_one_frame FLAC__file_decoder_process_single
+#define FLAC__file_decoder_process_metadata FLAC__file_decoder_process_until_end_of_metadata
+#define FLAC__file_decoder_process_whole_file FLAC__file_decoder_process_until_end_of_file
+
+#define FLAC__seekable_stream_decoder_process_one_frame FLAC__seekable_stream_decoder_process_single
+#define FLAC__seekable_stream_decoder_process_metadata FLAC__seekable_stream_decoder_process_until_end_of_metadata
+#define FLAC__seekable_stream_decoder_process_whole_stream FLAC__seekable_stream_decoder_process_until_end_of_stream
+
+#define FLAC__stream_decoder_process_one_frame FLAC__stream_decoder_process_single
+#define FLAC__stream_decoder_process_metadata FLAC__stream_decoder_process_until_end_of_metadata
+#define FLAC__stream_decoder_process_whole_stream FLAC__stream_decoder_process_until_end_of_stream
+
+#endif /* FLAC_COMPAT_H */
--- include/FLAC/stream_decoder.h-dist 2002-11-27 15:18:10.000000000 +0100
+++ include/FLAC/stream_decoder.h 2002-11-27 15:18:15.000000000 +0100
@@ -21,6 +21,7 @@
#define FLAC__STREAM_DECODER_H
#include "format.h"
+#include "compat.h"
#ifdef __cplusplus
extern "C" {
--- include/FLAC/Makefile.am-dist 2002-11-27 15:25:31.000000000 +0100
+++ include/FLAC/Makefile.am 2002-11-27 15:29:17.000000000 +0100
@@ -29,4 +29,5 @@
seekable_stream_decoder.h \
seekable_stream_encoder.h \
stream_decoder.h \
- stream_encoder.h
+ stream_encoder.h \
+ compat.h

10
flac-no-xmms.diff Normal file
View File

@ -0,0 +1,10 @@
--- configure.in-dist 2005-02-25 12:32:54.000000000 +0100
+++ configure.in 2005-02-25 12:33:45.000000000 +0100
@@ -156,7 +156,6 @@
AC_DEFINE(FLAC__HAS_OGG)
fi
-AM_PATH_XMMS(0.9.5.1, , AC_MSG_WARN([*** XMMS >= 0.9.5.1 not installed - xmms support will not be built]))
AM_CONDITIONAL(FLaC__HAS_XMMS, test x$XMMS_INPUT_PLUGIN_DIR != x)
dnl check for i18n(internationalization); these are from libiconv/gettext

24
flac-plugin-split.diff Normal file
View File

@ -0,0 +1,24 @@
--- src/plugin_xmms/Makefile.am-dist 2005-05-25 15:26:22.000000000 +0200
+++ src/plugin_xmms/Makefile.am 2005-05-25 15:28:51.000000000 +0200
@@ -61,8 +61,7 @@
$(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
$(top_builddir)/src/share/replaygain_synthesis/libreplaygain_synthesis.la \
$(top_builddir)/src/share/utf8/libutf8.la \
- $(top_builddir)/src/libFLAC/libFLAC.la \
- -L$(top_builddir)/src/libFLAC/.libs \
+ -lFLAC \
@XMMS_LIBS@ \
@LIBICONV@
libxmms_flac_la_LDFLAGS = -module -avoid-version
--- src/plugin_bmp/Makefile.am-dist 2005-05-25 15:43:23.000000000 +0200
+++ src/plugin_bmp/Makefile.am 2005-05-25 15:48:11.000000000 +0200
@@ -58,8 +58,7 @@
$(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
$(top_builddir)/src/share/replaygain_synthesis/libreplaygain_synthesis.la \
$(top_builddir)/src/share/utf8/libutf8.la \
- $(top_builddir)/src/libFLAC/libFLAC.la \
- -L$(top_builddir)/src/libFLAC/.libs \
+ -lFLAC \
@BMP_LIBS@ \
@LIBICONV@
libbmp_flac_la_LDFLAGS = -module -avoid-version

608
flac-prototypes.dif Normal file
View File

@ -0,0 +1,608 @@
--- src/metaflac/operations.c-dist 2005-05-25 16:20:02.000000000 +0200
+++ src/metaflac/operations.c 2005-05-25 16:20:09.000000000 +0200
@@ -26,7 +26,7 @@
#include <stdlib.h>
#include <string.h>
-static void show_version();
+static void show_version(void);
static FLAC__bool do_major_operation(const CommandLineOptions *options);
static FLAC__bool do_major_operation_on_file(const char *filename, const CommandLineOptions *options);
static FLAC__bool do_major_operation__list(const char *filename, FLAC__Metadata_Chain *chain, const CommandLineOptions *options);
@@ -83,7 +83,7 @@ FLAC__bool do_operations(const CommandLi
* local routines
*/
-void show_version()
+void show_version(void)
{
printf("metaflac %s\n", FLAC__VERSION_STRING);
}
--- src/plugin_xmms/plugin.c-dist 2005-05-25 16:25:03.000000000 +0200
+++ src/plugin_xmms/plugin.c 2005-05-25 16:25:34.000000000 +0200
@@ -109,14 +109,14 @@ typedef enum {
DECODER_HTTP
} decoder_t;
-static void FLAC_XMMS__init();
+static void FLAC_XMMS__init(void);
static int FLAC_XMMS__is_our_file(char *filename);
static void FLAC_XMMS__play_file(char *filename);
-static void FLAC_XMMS__stop();
+static void FLAC_XMMS__stop(void);
static void FLAC_XMMS__pause(short p);
static void FLAC_XMMS__seek(int time);
-static int FLAC_XMMS__get_time();
-static void FLAC_XMMS__cleanup();
+static int FLAC_XMMS__get_time(void);
+static void FLAC_XMMS__cleanup(void);
static void FLAC_XMMS__get_song_info(char *filename, char **title, int *length);
static void *play_loop_(void *arg);
@@ -128,7 +128,7 @@ static FLAC__StreamDecoderWriteStatus wr
static void metadata_callback_(const void *decoder, const FLAC__StreamMetadata *metadata, void *client_data);
static void error_callback_(const void *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data);
-static void init_decoder_func_tables();
+static void init_decoder_func_tables(void);
static decoder_t source_to_decoder_type (const char *source);
InputPlugin flac_ip =
@@ -181,7 +181,7 @@ static const decoder_funcs_t* DECODER_FU
static decoder_funcs_t const * decoder_func_table_;
-InputPlugin *get_iplugin_info()
+InputPlugin *get_iplugin_info(void)
{
flac_ip.description = g_strdup_printf("Reference FLAC Player v%s", FLAC__VERSION_STRING);
return &flac_ip;
@@ -194,7 +194,7 @@ void set_track_info(const char* title, i
}
}
-static gchar* homedir()
+static gchar* homedir(void)
{
gchar *result;
char *env_home = getenv("HOME");
@@ -212,7 +212,7 @@ static gchar* homedir()
return result;
}
-void FLAC_XMMS__init()
+void FLAC_XMMS__init(void)
{
ConfigFile *cfg;
FLAC__uint32 test = 1;
@@ -368,7 +368,7 @@ void FLAC_XMMS__play_file(char *filename
pthread_create(&decode_thread_, NULL, play_loop_, NULL);
}
-void FLAC_XMMS__stop()
+void FLAC_XMMS__stop(void)
{
if(file_info_.is_playing) {
file_info_.is_playing = false;
@@ -397,7 +397,7 @@ void FLAC_XMMS__seek(int time)
}
}
-int FLAC_XMMS__get_time()
+int FLAC_XMMS__get_time(void)
{
if(audio_error_)
return -2;
@@ -407,7 +407,7 @@ int FLAC_XMMS__get_time()
return flac_ip.output->output_time();
}
-void FLAC_XMMS__cleanup()
+void FLAC_XMMS__cleanup(void)
{
decoder_func_table_ -> safe_decoder_delete(decoder_);
decoder_ = 0;
@@ -668,7 +668,7 @@ static const decoder_funcs_t HTTP_DECODE
static decoder_funcs_t const *decoder_func_table_;
-static void init_decoder_func_tables()
+static void init_decoder_func_tables(void)
{
DECODER_FUNCS [DECODER_FILE] = & FILE_DECODER_FUNCTIONS;
DECODER_FUNCS [DECODER_HTTP] = & HTTP_DECODER_FUNCTIONS;
--- src/plugin_xmms/configure.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/plugin_xmms/configure.h 2005-05-25 16:07:27.000000000 +0200
@@ -69,7 +69,7 @@ typedef struct {
extern flac_config_t flac_cfg;
extern void FLAC_XMMS__configure(void);
-extern void FLAC_XMMS__aboutbox();
+extern void FLAC_XMMS__aboutbox(void);
#endif
--- src/plugin_xmms/fileinfo.c-dist 2005-05-25 16:24:26.000000000 +0200
+++ src/plugin_xmms/fileinfo.c 2005-05-25 16:24:33.000000000 +0200
@@ -136,7 +136,7 @@ static void get_entry_tag(GtkEntry * ent
free(utf8);
}
-static void show_tag()
+static void show_tag(void)
{
set_entry_tag(GTK_ENTRY(title_entry) , FLAC_plugin__tags_get_tag_utf8(tags_, "TITLE"));
set_entry_tag(GTK_ENTRY(artist_entry) , FLAC_plugin__tags_get_tag_utf8(tags_, "ARTIST"));
@@ -189,7 +189,7 @@ static void remove_tag(GtkWidget * w, gp
gtk_widget_destroy(window);
}
-static void show_file_info()
+static void show_file_info(void)
{
FLAC__StreamMetadata streaminfo;
struct stat _stat;
--- src/share/grabbag/file.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/share/grabbag/file.c 2005-05-25 16:07:27.000000000 +0200
@@ -109,7 +109,7 @@ FLAC__bool grabbag__file_remove_file(con
return grabbag__file_change_stats(filename, /*read_only=*/false) && 0 == unlink(filename);
}
-FILE *grabbag__file_get_binary_stdin()
+FILE *grabbag__file_get_binary_stdin(void)
{
/* if something breaks here it is probably due to the presence or
* absence of an underscore before the identifiers 'setmode',
@@ -125,7 +125,7 @@ FILE *grabbag__file_get_binary_stdin()
return stdin;
}
-FILE *grabbag__file_get_binary_stdout()
+FILE *grabbag__file_get_binary_stdout(void)
{
/* if something breaks here it is probably due to the presence or
* absence of an underscore before the identifiers 'setmode',
--- src/share/replaygain_synthesis/replaygain_synthesis.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/share/replaygain_synthesis/replaygain_synthesis.c 2005-05-25 16:07:27.000000000 +0200
@@ -86,7 +86,7 @@
* XORed values of both generators.
*/
-static unsigned int random_int_()
+static unsigned int random_int_(void)
{
static const unsigned char parity_[256] = {
0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,
--- src/libFLAC/metadata_iterators.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libFLAC/metadata_iterators.c 2005-05-25 16:07:27.000000000 +0200
@@ -339,7 +339,7 @@ FLAC_API const char * const FLAC__Metada
};
-FLAC_API FLAC__Metadata_SimpleIterator *FLAC__metadata_simple_iterator_new()
+FLAC_API FLAC__Metadata_SimpleIterator *FLAC__metadata_simple_iterator_new(void)
{
FLAC__Metadata_SimpleIterator *iterator = (FLAC__Metadata_SimpleIterator*)calloc(1, sizeof(FLAC__Metadata_SimpleIterator));
@@ -846,7 +846,7 @@ FLAC_API const char * const FLAC__Metada
};
-static FLAC__Metadata_Node *node_new_()
+static FLAC__Metadata_Node *node_new_(void)
{
return (FLAC__Metadata_Node*)calloc(1, sizeof(FLAC__Metadata_Node));
}
@@ -1308,7 +1308,7 @@ static FLAC__bool chain_rewrite_file_cb_
return true;
}
-FLAC_API FLAC__Metadata_Chain *FLAC__metadata_chain_new()
+FLAC_API FLAC__Metadata_Chain *FLAC__metadata_chain_new(void)
{
FLAC__Metadata_Chain *chain = (FLAC__Metadata_Chain*)calloc(1, sizeof(FLAC__Metadata_Chain));
@@ -1594,7 +1594,7 @@ FLAC_API void FLAC__metadata_chain_sort_
}
-FLAC_API FLAC__Metadata_Iterator *FLAC__metadata_iterator_new()
+FLAC_API FLAC__Metadata_Iterator *FLAC__metadata_iterator_new(void)
{
FLAC__Metadata_Iterator *iterator = (FLAC__Metadata_Iterator*)calloc(1, sizeof(FLAC__Metadata_Iterator));
--- src/libFLAC/file_encoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libFLAC/file_encoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -98,7 +98,7 @@ FLAC_API const char * const FLAC__FileEn
*
***********************************************************************/
-FLAC_API FLAC__FileEncoder *FLAC__file_encoder_new()
+FLAC_API FLAC__FileEncoder *FLAC__file_encoder_new(void)
{
FLAC__FileEncoder *encoder;
--- src/libFLAC/file_decoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libFLAC/file_decoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -51,7 +51,7 @@
***********************************************************************/
static void set_defaults_(FLAC__FileDecoder *decoder);
-static FILE *get_binary_stdin_();
+static FILE *get_binary_stdin_(void);
static FLAC__SeekableStreamDecoderReadStatus read_callback_(const FLAC__SeekableStreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
static FLAC__SeekableStreamDecoderSeekStatus seek_callback_(const FLAC__SeekableStreamDecoder *decoder, FLAC__uint64 absolute_byte_offset, void *client_data);
static FLAC__SeekableStreamDecoderTellStatus tell_callback_(const FLAC__SeekableStreamDecoder *decoder, FLAC__uint64 *absolute_byte_offset, void *client_data);
@@ -101,7 +101,7 @@ FLAC_API const char * const FLAC__FileDe
*
***********************************************************************/
-FLAC_API FLAC__FileDecoder *FLAC__file_decoder_new()
+FLAC_API FLAC__FileDecoder *FLAC__file_decoder_new(void)
{
FLAC__FileDecoder *decoder;
@@ -567,7 +567,7 @@ void set_defaults_(FLAC__FileDecoder *de
/*
* This will forcibly set stdin to binary mode (for OSes that require it)
*/
-FILE *get_binary_stdin_()
+FILE *get_binary_stdin_(void)
{
/* if something breaks here it is probably due to the presence or
* absence of an underscore before the identifiers 'setmode',
--- src/libFLAC/bitbuffer.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libFLAC/bitbuffer.c 2005-05-25 16:07:27.000000000 +0200
@@ -317,7 +317,7 @@ static FLAC__bool bitbuffer_read_from_cl
*
***********************************************************************/
-FLAC__BitBuffer *FLAC__bitbuffer_new()
+FLAC__BitBuffer *FLAC__bitbuffer_new(void)
{
FLAC__BitBuffer *bb = (FLAC__BitBuffer*)calloc(1, sizeof(FLAC__BitBuffer));
--- src/libFLAC/metadata_object.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libFLAC/metadata_object.c 2005-05-25 16:07:27.000000000 +0200
@@ -1236,7 +1236,7 @@ FLAC_API int FLAC__metadata_object_vorbi
return ok? (int)matching : -1;
}
-FLAC_API FLAC__StreamMetadata_CueSheet_Track *FLAC__metadata_object_cuesheet_track_new()
+FLAC_API FLAC__StreamMetadata_CueSheet_Track *FLAC__metadata_object_cuesheet_track_new(void)
{
return (FLAC__StreamMetadata_CueSheet_Track*)calloc(1, sizeof(FLAC__StreamMetadata_CueSheet_Track));
}
--- src/libFLAC/stream_encoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libFLAC/stream_encoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -454,7 +454,7 @@ FLAC_API const char * const FLAC__Stream
* Class constructor/destructor
*
*/
-FLAC_API FLAC__StreamEncoder *FLAC__stream_encoder_new()
+FLAC_API FLAC__StreamEncoder *FLAC__stream_encoder_new(void)
{
FLAC__StreamEncoder *encoder;
unsigned i;
--- src/libFLAC/stream_decoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libFLAC/stream_decoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -180,7 +180,7 @@ FLAC_API const char * const FLAC__Stream
* Class constructor/destructor
*
***********************************************************************/
-FLAC_API FLAC__StreamDecoder *FLAC__stream_decoder_new()
+FLAC_API FLAC__StreamDecoder *FLAC__stream_decoder_new(void)
{
FLAC__StreamDecoder *decoder;
unsigned i;
--- src/libFLAC/seekable_stream_encoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libFLAC/seekable_stream_encoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -110,7 +110,7 @@ FLAC_API const char * const FLAC__Seekab
*
***********************************************************************/
-FLAC_API FLAC__SeekableStreamEncoder *FLAC__seekable_stream_encoder_new()
+FLAC_API FLAC__SeekableStreamEncoder *FLAC__seekable_stream_encoder_new(void)
{
FLAC__SeekableStreamEncoder *encoder;
--- src/libFLAC/seekable_stream_decoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libFLAC/seekable_stream_decoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -135,7 +135,7 @@ FLAC_API const char * const FLAC__Seekab
*
***********************************************************************/
-FLAC_API FLAC__SeekableStreamDecoder *FLAC__seekable_stream_decoder_new()
+FLAC_API FLAC__SeekableStreamDecoder *FLAC__seekable_stream_decoder_new(void)
{
FLAC__SeekableStreamDecoder *decoder;
--- src/libFLAC/include/private/bitbuffer.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libFLAC/include/private/bitbuffer.h 2005-05-25 16:07:27.000000000 +0200
@@ -56,7 +56,7 @@ typedef struct FLAC__BitBuffer FLAC__Bit
/*
* construction, deletion, initialization, cloning functions
*/
-FLAC__BitBuffer *FLAC__bitbuffer_new();
+FLAC__BitBuffer *FLAC__bitbuffer_new(void);
void FLAC__bitbuffer_delete(FLAC__BitBuffer *bb);
FLAC__bool FLAC__bitbuffer_init(FLAC__BitBuffer *bb);
FLAC__bool FLAC__bitbuffer_init_from(FLAC__BitBuffer *bb, const FLAC__byte buffer[], unsigned bytes);
--- src/plugin_common/charset.h-dist 2005-05-25 16:06:18.000000000 +0200
+++ src/plugin_common/charset.h 2005-05-25 16:06:24.000000000 +0200
@@ -30,7 +30,7 @@
* Prototypes *
**************/
-char *FLAC_plugin__charset_get_current();
+char *FLAC_plugin__charset_get_current(void);
char *FLAC_plugin__charset_convert_string(const char *string, char *from, char *to);
/* returns 1 for success, 0 for failure or no iconv */
--- src/libOggFLAC/file_encoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libOggFLAC/file_encoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -100,7 +100,7 @@ OggFLAC_API const char * const OggFLAC__
*
***********************************************************************/
-OggFLAC_API OggFLAC__FileEncoder *OggFLAC__file_encoder_new()
+OggFLAC_API OggFLAC__FileEncoder *OggFLAC__file_encoder_new(void)
{
OggFLAC__FileEncoder *encoder;
--- src/libOggFLAC/file_decoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libOggFLAC/file_decoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -51,7 +51,7 @@
***********************************************************************/
static void set_defaults_(OggFLAC__FileDecoder *decoder);
-static FILE *get_binary_stdin_();
+static FILE *get_binary_stdin_(void);
static OggFLAC__SeekableStreamDecoderReadStatus read_callback_(const OggFLAC__SeekableStreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
static OggFLAC__SeekableStreamDecoderSeekStatus seek_callback_(const OggFLAC__SeekableStreamDecoder *decoder, FLAC__uint64 absolute_byte_offset, void *client_data);
static OggFLAC__SeekableStreamDecoderTellStatus tell_callback_(const OggFLAC__SeekableStreamDecoder *decoder, FLAC__uint64 *absolute_byte_offset, void *client_data);
@@ -101,7 +101,7 @@ OggFLAC_API const char * const OggFLAC__
*
***********************************************************************/
-OggFLAC_API OggFLAC__FileDecoder *OggFLAC__file_decoder_new()
+OggFLAC_API OggFLAC__FileDecoder *OggFLAC__file_decoder_new(void)
{
OggFLAC__FileDecoder *decoder;
@@ -558,7 +558,7 @@ void set_defaults_(OggFLAC__FileDecoder
/*
* This will forcibly set stdin to binary mode (for OSes that require it)
*/
-FILE *get_binary_stdin_()
+FILE *get_binary_stdin_(void)
{
/* if something breaks here it is probably due to the presence or
* absence of an underscore before the identifiers 'setmode',
--- src/libOggFLAC/stream_encoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libOggFLAC/stream_encoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -87,7 +87,7 @@ OggFLAC_API const char * const OggFLAC__
* Class constructor/destructor
*
*/
-OggFLAC_API OggFLAC__StreamEncoder *OggFLAC__stream_encoder_new()
+OggFLAC_API OggFLAC__StreamEncoder *OggFLAC__stream_encoder_new(void)
{
OggFLAC__StreamEncoder *encoder;
--- src/libOggFLAC/stream_decoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libOggFLAC/stream_decoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -86,7 +86,7 @@ OggFLAC_API const char * const OggFLAC__
* Class constructor/destructor
*
***********************************************************************/
-OggFLAC_API OggFLAC__StreamDecoder *OggFLAC__stream_decoder_new()
+OggFLAC_API OggFLAC__StreamDecoder *OggFLAC__stream_decoder_new(void)
{
OggFLAC__StreamDecoder *decoder;
--- src/libOggFLAC/seekable_stream_encoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libOggFLAC/seekable_stream_encoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -112,7 +112,7 @@ OggFLAC_API const char * const OggFLAC__
* Class constructor/destructor
*
*/
-OggFLAC_API OggFLAC__SeekableStreamEncoder *OggFLAC__seekable_stream_encoder_new()
+OggFLAC_API OggFLAC__SeekableStreamEncoder *OggFLAC__seekable_stream_encoder_new(void)
{
OggFLAC__SeekableStreamEncoder *encoder;
--- src/libOggFLAC/seekable_stream_decoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libOggFLAC/seekable_stream_decoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -129,7 +129,7 @@ OggFLAC_API const char * const OggFLAC__
*
***********************************************************************/
-OggFLAC_API OggFLAC__SeekableStreamDecoder *OggFLAC__seekable_stream_decoder_new()
+OggFLAC_API OggFLAC__SeekableStreamDecoder *OggFLAC__seekable_stream_decoder_new(void)
{
OggFLAC__SeekableStreamDecoder *decoder;
--- include/OggFLAC/file_encoder.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/OggFLAC/file_encoder.h 2005-05-25 16:07:27.000000000 +0200
@@ -162,7 +162,7 @@ typedef void (*OggFLAC__FileEncoderProgr
* \retval OggFLAC__FileEncoder*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-OggFLAC_API OggFLAC__FileEncoder *OggFLAC__file_encoder_new();
+OggFLAC_API OggFLAC__FileEncoder *OggFLAC__file_encoder_new(void);
/** Free an encoder instance. Deletes the object pointed to by \a encoder.
*
--- include/OggFLAC/file_decoder.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/OggFLAC/file_decoder.h 2005-05-25 16:07:27.000000000 +0200
@@ -183,7 +183,7 @@ typedef void (*OggFLAC__FileDecoderError
* \retval OggFLAC__FileDecoder*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-OggFLAC_API OggFLAC__FileDecoder *OggFLAC__file_decoder_new();
+OggFLAC_API OggFLAC__FileDecoder *OggFLAC__file_decoder_new(void);
/** Free a decoder instance. Deletes the object pointed to by \a decoder.
*
--- include/OggFLAC/stream_encoder.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/OggFLAC/stream_encoder.h 2005-05-25 16:07:27.000000000 +0200
@@ -183,7 +183,7 @@ typedef void (*OggFLAC__StreamEncoderMet
* \retval OggFLAC__StreamEncoder*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-OggFLAC_API OggFLAC__StreamEncoder *OggFLAC__stream_encoder_new();
+OggFLAC_API OggFLAC__StreamEncoder *OggFLAC__stream_encoder_new(void);
/** Free an encoder instance. Deletes the object pointed to by \a encoder.
*
--- include/OggFLAC/stream_decoder.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/OggFLAC/stream_decoder.h 2005-05-25 16:07:27.000000000 +0200
@@ -220,7 +220,7 @@ typedef void (*OggFLAC__StreamDecoderErr
* \retval OggFLAC__StreamDecoder*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-OggFLAC_API OggFLAC__StreamDecoder *OggFLAC__stream_decoder_new();
+OggFLAC_API OggFLAC__StreamDecoder *OggFLAC__stream_decoder_new(void);
/** Free a decoder instance. Deletes the object pointed to by \a decoder.
*
--- include/OggFLAC/seekable_stream_encoder.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/OggFLAC/seekable_stream_encoder.h 2005-05-25 16:07:27.000000000 +0200
@@ -251,7 +251,7 @@ typedef FLAC__StreamEncoderWriteStatus (
* \retval OggFLAC__SeekableStreamEncoder*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-OggFLAC_API OggFLAC__SeekableStreamEncoder *OggFLAC__seekable_stream_encoder_new();
+OggFLAC_API OggFLAC__SeekableStreamEncoder *OggFLAC__seekable_stream_encoder_new(void);
/** Free an encoder instance. Deletes the object pointed to by \a encoder.
*
--- include/OggFLAC/seekable_stream_decoder.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/OggFLAC/seekable_stream_decoder.h 2005-05-25 16:07:27.000000000 +0200
@@ -334,7 +334,7 @@ typedef void (*OggFLAC__SeekableStreamDe
* \retval OggFLAC__SeekableStreamDecoder*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-OggFLAC_API OggFLAC__SeekableStreamDecoder *OggFLAC__seekable_stream_decoder_new();
+OggFLAC_API OggFLAC__SeekableStreamDecoder *OggFLAC__seekable_stream_decoder_new(void);
/** Free a decoder instance. Deletes the object pointed to by \a decoder.
*
--- include/FLAC/metadata.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/FLAC/metadata.h 2005-05-25 16:07:27.000000000 +0200
@@ -295,7 +295,7 @@ extern FLAC_API const char * const FLAC_
* \retval FLAC__Metadata_SimpleIterator*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-FLAC_API FLAC__Metadata_SimpleIterator *FLAC__metadata_simple_iterator_new();
+FLAC_API FLAC__Metadata_SimpleIterator *FLAC__metadata_simple_iterator_new(void);
/** Free an iterator instance. Deletes the object pointed to by \a iterator.
*
@@ -652,7 +652,7 @@ extern FLAC_API const char * const FLAC_
* \retval FLAC__Metadata_Chain*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-FLAC_API FLAC__Metadata_Chain *FLAC__metadata_chain_new();
+FLAC_API FLAC__Metadata_Chain *FLAC__metadata_chain_new(void);
/** Free a chain instance. Deletes the object pointed to by \a chain.
*
@@ -899,7 +899,7 @@ FLAC_API void FLAC__metadata_chain_sort_
* \retval FLAC__Metadata_Iterator*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-FLAC_API FLAC__Metadata_Iterator *FLAC__metadata_iterator_new();
+FLAC_API FLAC__Metadata_Iterator *FLAC__metadata_iterator_new(void);
/** Free an iterator instance. Deletes the object pointed to by \a iterator.
*
@@ -1621,7 +1621,7 @@ FLAC_API int FLAC__metadata_object_vorbi
* \retval FLAC__StreamMetadata_CueSheet_Track*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-FLAC_API FLAC__StreamMetadata_CueSheet_Track *FLAC__metadata_object_cuesheet_track_new();
+FLAC_API FLAC__StreamMetadata_CueSheet_Track *FLAC__metadata_object_cuesheet_track_new(void);
/** Create a copy of an existing CUESHEET track object.
*
--- include/FLAC/file_encoder.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/FLAC/file_encoder.h 2005-05-25 16:07:27.000000000 +0200
@@ -190,7 +190,7 @@ typedef void (*FLAC__FileEncoderProgress
* \retval FLAC__FileEncoder*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-FLAC_API FLAC__FileEncoder *FLAC__file_encoder_new();
+FLAC_API FLAC__FileEncoder *FLAC__file_encoder_new(void);
/** Free an encoder instance. Deletes the object pointed to by \a encoder.
*
--- include/FLAC/file_decoder.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/FLAC/file_decoder.h 2005-05-25 16:07:27.000000000 +0200
@@ -229,7 +229,7 @@ typedef void (*FLAC__FileDecoderErrorCal
* \retval FLAC__FileDecoder*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-FLAC_API FLAC__FileDecoder *FLAC__file_decoder_new();
+FLAC_API FLAC__FileDecoder *FLAC__file_decoder_new(void);
/** Free a decoder instance. Deletes the object pointed to by \a decoder.
*
--- include/FLAC/stream_encoder.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/FLAC/stream_encoder.h 2005-05-25 16:07:27.000000000 +0200
@@ -366,7 +366,7 @@ typedef void (*FLAC__StreamEncoderMetada
* \retval FLAC__StreamEncoder*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-FLAC_API FLAC__StreamEncoder *FLAC__stream_encoder_new();
+FLAC_API FLAC__StreamEncoder *FLAC__stream_encoder_new(void);
/** Free an encoder instance. Deletes the object pointed to by \a encoder.
*
--- include/FLAC/stream_decoder.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/FLAC/stream_decoder.h 2005-05-25 16:07:27.000000000 +0200
@@ -396,7 +396,7 @@ typedef void (*FLAC__StreamDecoderErrorC
* \retval FLAC__StreamDecoder*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-FLAC_API FLAC__StreamDecoder *FLAC__stream_decoder_new();
+FLAC_API FLAC__StreamDecoder *FLAC__stream_decoder_new(void);
/** Free a decoder instance. Deletes the object pointed to by \a decoder.
*
--- include/FLAC/seekable_stream_encoder.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/FLAC/seekable_stream_encoder.h 2005-05-25 16:07:27.000000000 +0200
@@ -292,7 +292,7 @@ typedef FLAC__StreamEncoderWriteStatus (
* \retval FLAC__SeekableStreamEncoder*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-FLAC_API FLAC__SeekableStreamEncoder *FLAC__seekable_stream_encoder_new();
+FLAC_API FLAC__SeekableStreamEncoder *FLAC__seekable_stream_encoder_new(void);
/** Free an encoder instance. Deletes the object pointed to by \a encoder.
*
--- include/FLAC/seekable_stream_decoder.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/FLAC/seekable_stream_decoder.h 2005-05-25 16:07:27.000000000 +0200
@@ -392,7 +392,7 @@ typedef void (*FLAC__SeekableStreamDecod
* \retval FLAC__SeekableStreamDecoder*
* \c NULL if there was an error allocating memory, else the new instance.
*/
-FLAC_API FLAC__SeekableStreamDecoder *FLAC__seekable_stream_decoder_new();
+FLAC_API FLAC__SeekableStreamDecoder *FLAC__seekable_stream_decoder_new(void);
/** Free a decoder instance. Deletes the object pointed to by \a decoder.
*
--- include/share/grabbag/file.h-dist 2005-05-25 16:07:23.000000000 +0200
+++ include/share/grabbag/file.h 2005-05-25 16:07:27.000000000 +0200
@@ -44,8 +44,8 @@ FLAC__bool grabbag__file_change_stats(co
FLAC__bool grabbag__file_remove_file(const char *filename);
/* these will forcibly set stdin/stdout to binary mode (for OSes that require it) */
-FILE *grabbag__file_get_binary_stdin();
-FILE *grabbag__file_get_binary_stdout();
+FILE *grabbag__file_get_binary_stdin(void);
+FILE *grabbag__file_get_binary_stdout(void);
#ifdef __cplusplus
}

View File

@ -0,0 +1,23 @@
--- src/metaflac/options.c-dist 2005-05-25 16:23:34.000000000 +0200
+++ src/metaflac/options.c 2005-05-25 16:23:42.000000000 +0200
@@ -555,13 +555,14 @@ FLAC__bool parse_option(int option_index
FLAC__ASSERT(0 != violation);
fprintf(stderr, "ERROR (--%s): malformed seekpoint specification \"%s\",\n %s\n", opt, option_argument, violation);
ok = false;
+ } else {
+ op = find_shorthand_operation(options, OP__ADD_SEEKPOINT);
+ if(0 == op)
+ op = append_shorthand_operation(options, OP__ADD_SEEKPOINT);
+ local_strcat(&(op->argument.add_seekpoint.specification), spec);
+ local_strcat(&(op->argument.add_seekpoint.specification), ";");
+ free(spec);
}
- op = find_shorthand_operation(options, OP__ADD_SEEKPOINT);
- if(0 == op)
- op = append_shorthand_operation(options, OP__ADD_SEEKPOINT);
- local_strcat(&(op->argument.add_seekpoint.specification), spec);
- local_strcat(&(op->argument.add_seekpoint.specification), ";");
- free(spec);
}
else if(0 == strcmp(opt, "add-replay-gain")) {
(void) append_shorthand_operation(options, OP__ADD_REPLAY_GAIN);

34
flac-xmms-fix.diff Normal file
View File

@ -0,0 +1,34 @@
--- src/plugin_xmms/http.c-dist 2005-05-25 16:14:03.000000000 +0200
+++ src/plugin_xmms/http.c 2005-05-25 16:17:30.000000000 +0200
@@ -484,8 +484,8 @@ static int http_connect (gchar *url_, gb
flac_cfg.stream.use_udp_channel ? udpspace : "");
if (offset && !head) {
gchar *temp_dead = temp;
- temp = g_strconcat ("%sRange: %ll-\r\n", temp, offset);
+ temp = g_strdup_printf("%sRange: %llu-\r\n", temp, offset);
fprintf (stderr, "%s", temp);
g_free (temp_dead);
}
--- src/plugin_xmms/plugin.c-dist 2005-02-02 07:06:44.000000000 +0100
+++ src/plugin_xmms/plugin.c 2005-08-10 12:48:23.000000000 +0200
@@ -270,7 +270,7 @@ void FLAC_XMMS__init()
xmms_cfg_read_boolean(cfg, "flac", "stream.save_http_stream", &flac_cfg.stream.save_http_stream);
if (!xmms_cfg_read_string(cfg, "flac", "stream.save_http_path", &flac_cfg.stream.save_http_path) ||
! *flac_cfg.stream.save_http_path) {
- if (flac_cfg.stream.save_http_path)
+ if (flac_cfg.stream.save_http_path && *flac_cfg.stream.save_http_path)
g_free (flac_cfg.stream.save_http_path);
flac_cfg.stream.save_http_path = homedir();
}
--- src/plugin_xmms/configure.c-dist 2005-08-10 13:03:54.000000000 +0200
+++ src/plugin_xmms/configure.c 2005-08-10 14:34:39.000000000 +0200
@@ -179,7 +179,7 @@ static void flac_configurewin_ok(GtkWidg
flac_cfg.stream.save_http_stream = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(streaming_save_use));
- if (flac_cfg.stream.save_http_path)
+ if (flac_cfg.stream.save_http_path && *flac_cfg.stream.save_http_path)
g_free(flac_cfg.stream.save_http_path);
flac_cfg.stream.save_http_path = g_strdup(gtk_entry_get_text(GTK_ENTRY(streaming_save_entry)));

25
flac-xmms.changes Normal file
View File

@ -0,0 +1,25 @@
-------------------------------------------------------------------
Sat Oct 7 11:54:54 CEST 2006 - aj@suse.de
- Cleanup BuildRequires.
-------------------------------------------------------------------
Wed Jan 25 21:35:54 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Wed Aug 10 14:58:45 CEST 2005 - tiwai@suse.de
- fixed invalid g_free() in FLAC xmms/bmp plugins (#103091)
-------------------------------------------------------------------
Wed May 25 17:36:39 CEST 2005 - tiwai@suse.de
- updated to version 1.1.2.
-------------------------------------------------------------------
Fri Feb 25 12:04:36 CET 2005 - tiwai@suse.de
- split from flac to reduce the dependencies.

108
flac-xmms.spec Normal file
View File

@ -0,0 +1,108 @@
#
# spec file for package flac-xmms (Version 1.1.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: flac-xmms
BuildRequires: bmp-devel flac-devel gcc-c++ glitz-devel gtk2-devel id3lib-devel update-desktop-files xmms-devel
Summary: XMMS Input Plug-In for the FLAC Audio Format
Version: 1.1.2
Release: 23
License: GPL
Group: Productivity/Multimedia/Sound/Players
Requires: flac xmms
Url: http://flac.sourceforge.net/
Source: flac-%{version}.tar.bz2
Patch1: flac-prototypes.dif
Patch3: flac-compat.dif
Patch4: flac-uninitialized-fix.diff
Patch5: flac-bmp-plugin.diff
Patch6: flac-plugin-split.diff
Patch7: flac-xmms-fix.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
An XMMS input plug-in for the FLAC audio format.
Authors:
--------
Josh Coalson
%package -n flac-bmp
Summary: BMP Input Plug-In for the FLAC Audio Format
License: GPL
Group: Productivity/Multimedia/Sound/Players
Requires: flac bmp
%description -n flac-bmp
A BMP (Beep-Media-Player) input plug-in for the FLAC audio format.
Authors:
--------
Josh Coalson
%prep
%setup -n flac-%{version}
%patch1
%patch3
%patch4
%patch5
%patch6
%patch7
%{?suse_update_config:%{suse_update_config -f}}
%build
autoreconf --force --install
%define warn_flags -W -Wall -Wstrict-prototypes -Wformat-security
%ifarch ppc
extra_opts="--disable-asm-optimizations"
%endif
# force to add -fPIC -DPIC
CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC %{warn_flags} -fno-strict-aliasing" \
CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC %{warn_flags} -fno-strict-aliasing" \
./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} $extra_opts
make
%install
make DESTDIR="$RPM_BUILD_ROOT" install
rm -rf $RPM_BUILD_ROOT%{_bindir}
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.so*
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
rm -rf $RPM_BUILD_ROOT%{_includedir}
rm -rf $RPM_BUILD_ROOT%{_datadir}
rm -rf $RPM_BUILD_ROOT%{_mandir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_libdir}/xmms/Input/*.*
%files -n flac-bmp
%defattr(-, root, root)
%{_libdir}/bmp/Input/*.*
%changelog -n flac-xmms
* Sat Oct 07 2006 - aj@suse.de
- Cleanup BuildRequires.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Aug 10 2005 - tiwai@suse.de
- fixed invalid g_free() in FLAC xmms/bmp plugins (#103091)
* Wed May 25 2005 - tiwai@suse.de
- updated to version 1.1.2.
* Fri Feb 25 2005 - tiwai@suse.de
- split from flac to reduce the dependencies.

122
flac.changes Normal file
View File

@ -0,0 +1,122 @@
-------------------------------------------------------------------
Wed Jan 25 21:35:54 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Thu Jul 7 17:07:48 CEST 2005 - tiwai@suse.de
- fix Requires of devel subpackage.
-------------------------------------------------------------------
Wed May 25 16:47:59 CEST 2005 - tiwai@suse.de
- updated to version 1.1.2.
-------------------------------------------------------------------
Fri Feb 25 12:04:57 CET 2005 - tiwai@suse.de
- split flac-xmms and flac-bmp plugins to another spec file
to avoid too deep dependencies.
-------------------------------------------------------------------
Fri Jan 28 13:15:43 CET 2005 - tiwai@suse.de
- fix many compile warnings
- add BMP plugin support
-------------------------------------------------------------------
Fri Jan 21 12:59:02 CET 2005 - tiwai@suse.de
- updated to version 1.1.1.
-------------------------------------------------------------------
Tue Aug 24 11:36:39 CEST 2004 - tiwai@suse.de
- fixed neededforbuild for xmms.
-------------------------------------------------------------------
Tue Apr 27 01:28:19 CEST 2004 - ro@suse.de
- add -fno-strict-aliasing
-------------------------------------------------------------------
Wed Jan 21 18:50:47 CET 2004 - tiwai@suse.de
- fixed quoting in m4 files.
-------------------------------------------------------------------
Sat Jan 10 16:03:44 CET 2004 - adrian@suse.de
- add %run_ldconfig to %postun
-------------------------------------------------------------------
Wed May 28 00:44:04 CEST 2003 - ro@suse.de
- remove unpackaged files from buildroot
-------------------------------------------------------------------
Tue Apr 1 10:29:49 CEST 2003 - ro@suse.de
- added xmms-devel to neededforbuild
-------------------------------------------------------------------
Thu Feb 13 17:24:53 CET 2003 - tiwai@suse.de
- fixed the installation path of xmms plugin.
- added la file for plugin.
-------------------------------------------------------------------
Mon Jan 27 18:40:48 CET 2003 - tiwai@suse.de
- updated to version 1.1.0.
-------------------------------------------------------------------
Wed Nov 27 15:35:40 CET 2002 - tiwai@suse.de
- added the compatible layer for version 1.0.3 (flac-compat.dif).
-------------------------------------------------------------------
Mon Nov 25 15:51:37 CET 2002 - tiwai@suse.de
- updated to version 1.0.4.
- fixed neeededforbuild: xf86 -> x-devel-packages.
- added id3lib to neededforbuild.
- regenrated prototype patches. renamed the patch to avoid
name confliction.
-------------------------------------------------------------------
Tue Sep 17 17:57:32 CEST 2002 - pthomas@suse.de
- Add -lsdc++ to LIBADD in src/libFLAC++/Makefile.am to work
around a bug in libtool 1.4.2.
- Properly use (void) not () in prototypes.
- Omit -I/usr/include from LIBFLAC_CFLAGS in libFLAC.m4 as
it's searched by default.
- Omit -L/usr/lib from LIBFLAC_LIBS in libFLAC.m4
-------------------------------------------------------------------
Mon Jul 29 10:17:58 CEST 2002 - tiwai@suse.de
- added %run_ldconfig.
-------------------------------------------------------------------
Fri Jul 5 15:25:34 CEST 2002 - tiwai@suse.de
- updated to version 1.0.3.
-------------------------------------------------------------------
Mon Jun 24 12:41:27 CEST 2002 - tiwai@suse.de
- fixed file permission of xmms plugins.
-------------------------------------------------------------------
Tue May 21 17:39:00 CEST 2002 - tiwai@suse.de
- added missing *.so to the filelist.
-------------------------------------------------------------------
Tue May 21 17:02:20 CEST 2002 - tiwai@suse.de
- initial version: 1.0.2.

161
flac.spec Normal file
View File

@ -0,0 +1,161 @@
#
# spec file for package flac (Version 1.1.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: flac
BuildRequires: gcc-c++ libogg-devel
Summary: Free Lossless Audio Codec
Version: 1.1.2
Release: 21
License: GPL, LGPL
Group: System/Libraries
Source: %{name}-%{version}.tar.bz2
URL: http://flac.sourceforge.net/
Patch1: flac-prototypes.dif
Patch2: flac-no-xmms.diff
Patch3: flac-compat.dif
Patch4: flac-uninitialized-fix.diff
Patch7: flac-xmms-fix.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
FLAC is an open source lossless audio codec developed by Josh Coalson.
Authors:
--------
Josh Coalson
%package devel
Summary: FLAC Library Development Package
License: LGPL
Group: Development/Libraries/C and C++
Requires: flac = %{version}, glibc-devel, libstdc++-devel, libogg-devel
%description devel
This package contains the files needed to compile programs that use the
FLAC library.
Authors:
--------
Josh Coalson
%prep
%setup
%patch1
%patch2
%patch3
%patch4
%patch7
%{?suse_update_config:%{suse_update_config -f}}
%build
autoreconf --force --install
%define warn_flags -W -Wall -Wstrict-prototypes -Wformat-security
%ifarch ppc
extra_opts="--disable-asm-optimizations"
%endif
# force to add -fPIC -DPIC
CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC %{warn_flags} -fno-strict-aliasing" \
CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC %{warn_flags} -fno-strict-aliasing" \
./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} $extra_opts
make
%install
make DESTDIR="$RPM_BUILD_ROOT" install
# documents
mkdir -p $RPM_BUILD_ROOT%{_docdir}
mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_docdir}/%{name}
cp -a AUTHORS README COPYING.* $RPM_BUILD_ROOT%{_docdir}/%{name}
%post
%run_ldconfig
%postun
%run_ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc %{_docdir}/%{name}
%{_libdir}/lib*.so.*
%{_bindir}/*
%{_mandir}/man*/*
%files devel
%defattr(-, root, root)
%{_libdir}/lib*.so
%{_libdir}/lib*.*a
%{_includedir}/*
%{_datadir}/aclocal/*.m4
%changelog -n flac
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jul 07 2005 - tiwai@suse.de
- fix Requires of devel subpackage.
* Wed May 25 2005 - tiwai@suse.de
- updated to version 1.1.2.
* Fri Feb 25 2005 - tiwai@suse.de
- split flac-xmms and flac-bmp plugins to another spec file
to avoid too deep dependencies.
* Fri Jan 28 2005 - tiwai@suse.de
- fix many compile warnings
- add BMP plugin support
* Fri Jan 21 2005 - tiwai@suse.de
- updated to version 1.1.1.
* Tue Aug 24 2004 - tiwai@suse.de
- fixed neededforbuild for xmms.
* Tue Apr 27 2004 - ro@suse.de
- add -fno-strict-aliasing
* Wed Jan 21 2004 - tiwai@suse.de
- fixed quoting in m4 files.
* Sat Jan 10 2004 - adrian@suse.de
- add %%run_ldconfig to %%postun
* Wed May 28 2003 - ro@suse.de
- remove unpackaged files from buildroot
* Tue Apr 01 2003 - ro@suse.de
- added xmms-devel to neededforbuild
* Thu Feb 13 2003 - tiwai@suse.de
- fixed the installation path of xmms plugin.
- added la file for plugin.
* Mon Jan 27 2003 - tiwai@suse.de
- updated to version 1.1.0.
* Wed Nov 27 2002 - tiwai@suse.de
- added the compatible layer for version 1.0.3 (flac-compat.dif).
* Mon Nov 25 2002 - tiwai@suse.de
- updated to version 1.0.4.
- fixed neeededforbuild: xf86 -> x-devel-packages.
- added id3lib to neededforbuild.
- regenrated prototype patches. renamed the patch to avoid
name confliction.
* Tue Sep 17 2002 - pthomas@suse.de
- Add -lsdc++ to LIBADD in src/libFLAC++/Makefile.am to work
around a bug in libtool 1.4.2.
- Properly use (void) not () in prototypes.
- Omit -I/usr/include from LIBFLAC_CFLAGS in libFLAC.m4 as
it's searched by default.
- Omit -L/usr/lib from LIBFLAC_LIBS in libFLAC.m4
* Mon Jul 29 2002 - tiwai@suse.de
- added %%run_ldconfig.
* Fri Jul 05 2002 - tiwai@suse.de
- updated to version 1.0.3.
* Mon Jun 24 2002 - tiwai@suse.de
- fixed file permission of xmms plugins.
* Tue May 21 2002 - tiwai@suse.de
- added missing *.so to the filelist.
* Tue May 21 2002 - tiwai@suse.de
- initial version: 1.0.2.

0
ready Normal file
View File