# 使用 Homebrew, apk, MacPorts, zypper 安装 libxspf

查看 libxspf 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:libxspf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libxspf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libxspf
```

  证据: MacPorts ports tree: devel/libxspf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libxspf
```

  证据: Alpine Linux edge package indexes: libxspf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- zypper (92%):

```sh
sudo zypper install libxspf-devel
```

  证据: openSUSE Tumbleweed package metadata: libxspf-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:libxspf
- **软件包管理器:** Homebrew
- **版本:** 1.2.1
- **来源摘要:** C++ library for XSPF playlist reading and writing
- **主页:** <https://libspiff.sourceforge.net/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- xspf_check (别名)
- xspf_strip (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.2.1
## 项目历史与用法

libxspf is a small Xiph.Org C++ library for reading and writing XSPF playlists, the XML Shareable Playlist Format pronounced spiff.

### 项目历史

XSPF was standardized as an open XML playlist format under the Xiph.Org umbrella. The specification describes a format intended to avoid every music player inventing its own XML playlist vocabulary.

The library was first developed as libSpiff and reached 1.0.0 on September 21, 2008. On February 21, 2009, the 1.1.0 release renamed libSpiff to libxspf, added a pkg-config file, and reorganized the Autotools build.

### 采用历史

libxspf served the practical side of XSPF adoption: it gave media applications a parser, writer, C bindings, examples, and validation-oriented command-line tools for XSPF versions 0 and 1. Its releases mostly track ABI, build-system, compiler, and documentation polish rather than a broad application platform.

### 使用方式

The project README presents libxspf as an integration library for applications that need to read or write XSPF playlist files. The generated documentation walks through reading playlists and receiving playlist and track callbacks, while the Homebrew package exposes xspf_check and xspf_strip for validation and cleanup workflows.

### 为什么软件包爱好者会关心

libxspf is niche, but it is a classic package-manager fossil from the XML media-format era: a small C++ library built around Expat, uriparser, pkg-config, Doxygen docs, and a named open format from Xiph rather than a player-specific playlist file.

### 时间线

- 2005-01: XSPF Version 1 was published by the Playlist Ad-Hoc Group under the Xiph.Org XSPF site.
- 2008-09-21: libSpiff 1.0.0 was released.
- 2009-02-21: Version 1.1.0 renamed libSpiff to libxspf.
- 2009-03-07: Version 1.2.0 added xspf_parse_memory to the C bindings.
- 2021-05-29: Version 1.2.1 refreshed build-system compatibility and fixed compiler issues.

### Related projects

- XSPF is the format that libxspf implements. Xiph.Org hosts the project. Expat and uriparser are important dependencies in the library history, and libcpptest appears in its test-suite history.

### 来源

- <https://gitlab.xiph.org/xiph/libxspf/-/raw/master/ChangeLog>
- <https://gitlab.xiph.org/xiph/libxspf/-/raw/master/README>
- <https://libspiff.sourceforge.net/doc/html/>
- <https://www.xspf.org/spec>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 其他软件包管理器记录

- apk - libxspf - 1.2.1-r3: normalized package name match | Alpine Linux edge package indexes: libxspf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Brings XSPF playlist reading and writing support to C++ application | https://libspiff.sourceforge.net/
- apk - libxspf-dev - 1.2.1-r3: normalized package name match | Alpine Linux edge package indexes: libxspf-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Brings XSPF playlist reading and writing support to C++ application (development files) | https://libspiff.sourceforge.net/
- zypper - libxspf-devel - 1.2.1-2.4: normalized package name match | openSUSE Tumbleweed package metadata: libxspf-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Brings XSPF playlist read and write support to C++ apps | http://libspiff.sourceforge.net/
- zypper - libxspf4 - 1.2.1-2.4: normalized package name match | openSUSE Tumbleweed package metadata: libxspf4 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Provides XSPF playlist reading and writing support | http://libspiff.sourceforge.net/
- MacPorts - libxspf: normalized package name match | MacPorts ports tree: devel/libxspf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/libxspf.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libxspf.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
