Skip to content

Commit

Permalink
add a spec for clap-info
Browse files Browse the repository at this point in the history
  • Loading branch information
ycollet committed Jan 22, 2024
1 parent d99c341 commit 766a40e
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 6 deletions.
2 changes: 0 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@
| LeGrandMechantLoop | https://github.com/benkuper/LeGrandMechantLoop |
| Wasted-Audio | https://github.com/Wasted-Audio |
| basic-pitch | https://github.com/spotify/basic-pitch
| clap-host | https://github.com/free-audio/clap-host |
| clap-info | https://github.com/free-audio/clap-info |

Check the following URL: https://github.com/forart/HyMPS

Expand Down
58 changes: 58 additions & 0 deletions clap/clap-info.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Tag: Tool
# Type: Devel
# Category: Tool

Summary: An automatic CLAP validation and testing tool
Name: clap-info
Version: 1.0.0
Release: 1%{?dist}
License: MIT
URL: https://github.com/free-audio/clap-info

Vendor: Audinux
Distribution: Audinux

# ./clap-source.sh <project> <tag>
# ./clap-source.sh clap-info v1.0.0

Source0: clap-info.tar.gz
Source1: clap-source.sh

BuildRequires: gcc gcc-c++
BuildRequires: cmake
BuildRequires: chrpath

%description
This is a CLAP information tool which simply loads a clap and allows you to print
a variety of information about the plugin. It prints the information in machine-readable (JSON) format.

%prep
%autosetup -n %{name}

sed -i -e "s/add_library(jsoncpp/add_library(jsoncpp STATIC/g" libs/CMakeLists.txt

%build

%cmake
%cmake_build

%install

install -m 755 -d %{buildroot}/%{_bindir}/
cp %{__cmake_builddir}/clap-info %{buildroot}/%{_bindir}/

install -m 755 -d %{buildroot}/%{_libdir}/
cp %{__cmake_builddir}/libclap-scanner.so %{buildroot}/%{_libdir}/

# chrpath --delete %{buildroot}/%{_libdir}/libclap-scanner.so
chrpath --delete %{buildroot}/%{_bindir}/clap-info

%files
%doc README.md
%license LICENSE.md
%{_bindir}/*
%{_libdir}/*

%changelog
* Mon Jan 22 2024 Yann Collette <ycollette dot nospam at free.fr> 1.0.0-1
- initial release
13 changes: 13 additions & 0 deletions clap/clap-source.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# ./clap-source.sh <project> <tag>
# ./clap-source.sh clap-plugins 1.0.1

git clone https://github.com/free-audio/$1
cd $1
git checkout $2
git submodule update --init --recursive --progress
find . -name .git -exec rm -rf {} \;
cd ..
tar cvfz $1.tar.gz $1/*
rm -rf $1
9 changes: 6 additions & 3 deletions clap/clap.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# Category: Programming

Summary: CLAP audio plugin API
Name: clap
Version: 1.1.10
Name: clap
Version: 1.2.0
Release: 1%{?dist}
License: MIT
URL: https://github.com/free-audio/clap
URL: https://github.com/free-audio/clap

Vendor: Audinux
Distribution: Audinux
Expand Down Expand Up @@ -55,5 +55,8 @@ Header files for CLAP.
%{_libdir}/pkgconfig/*

%changelog
* Mon Jan 22 2024 Yann Collette <ycollette dot nospam at free.fr> 1.2.0-1
- update to 1.2.0-1

* Fri Dec 08 2023 Yann Collette <ycollette dot nospam at free.fr> 1.1.10-1
- initial release
3 changes: 2 additions & 1 deletion scripts/repo_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,8 @@ https://github.com/brummer10/MelMatchEQ.lv2
https://github.com/SpotlightKid/sympathetic-string-resonator
https://github.com/falkTX/JackAss
https://github.com/free-audio/clap-plugins
https://github.com/free-audio/clap-validator"
https://github.com/free-audio/clap-validator
https://github.com/free-audio/clap-info"

# Missing repositories:
# https://github.com/giogramegna/mantra-master
Expand Down

0 comments on commit 766a40e

Please sign in to comment.